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

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

From: François REMY <francois.remy.dev@outlook.com>
Date: Tue, 6 Aug 2013 19:00:02 +0200
Message-ID: <DUB120-W48DB1597BFF3F115AC3F25A55D0@phx.gbl>
To: "www-style@w3.org" <www-style@w3.org>
Hi,

While I was working on some [css-regions] demo (1), I noticed that the "pull-quote text-negociation" didn't work anymore.

=======================

Use case: You have a region and you adjust its font-size to avoid it to overflow/overset. 

=======================

In previous versions of Blink/Webkit, it used to work because the EM unit was computed relatively to the layout tree (so fragments inside a region with "font-size: 2em" where actually bigger than those in a region with "font-size: 1em".

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.

This inconsistency is damageable, and I therefore propose to make sure the EM unit in a region fragment is relative to the region itself, not the actual DOM.





Thoughts?





(1) https://rawgithub.com/adobe-webplatform/css-regions-polyfill/master/playground/paginated-content/index.html
------ only works in Chrome Canary 
------ and with Experimental features enabled 		 	   		  
Received on Tuesday, 6 August 2013 17:00:30 UTC

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