W3C home > Mailing lists > Public > www-style@w3.org > August 2013

RE: [css-regions][css-values] font-size in em, and fragments

From: François REMY <francois.remy.dev@outlook.com>
Date: Thu, 8 Aug 2013 22:46:29 +0200
Message-ID: <DUB120-W48FA248D695B94AEB0082DA55F0@phx.gbl>
To: Andrei Bucur <abucur@adobe.com>
CC: www-style list <www-style@w3.org>
>> Now, it seems this has been "fixed" and the EM unit is relative to the DOM parent. That means that:
>>
>> - if you have a TEXTNODE directly poured into a flow, its FONT-SIZE WILL DEPEND ON THE REGION.
>> - if you have an ELEMENT directly poured into a a flow, its FONT-SIZE WILL NOT DEPEND ON THE REGION because the EM value will be computed on the basis on the DOM parent element.
>
> How can you flow a text node inside regions directly, without using flow-into on an element? Are you talking about the new flow-into: content value? 

Yes.




> The spec states the flow-into property doesn't affect the CSS cascade and I suppose this applies for the EM units resolution as well:
> "The ‘flow-into’ property does not affect the CSS cascade and inheritance for the elements on which it is specified. The ‘flow-into’ property does not affect the DOM position of an element or its contents. The ‘flow-into’ property affects the visual formatting of elements or contents placed into a named flowand of the region chain laying out content from a named flow."

Text nodes are not elements, however. 

And "flow-into" is not specified on them, either. 

But this could be clarified, I guess, to include the fact text nodes infer their styling form their parent element in the DOM. 		 	   		  
Received on Thursday, 8 August 2013 20:46:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC