[csswg-drafts] [css-logical] Should the mapping for logical values depend on the element or containing block?

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-logical] Should the mapping for logical values depend on the element or containing block? ==
https://drafts.csswg.org/css-logical/#float-clear says

> The mapping on these properties uses the writing mode of the element’s containing block.

However, on Firefox the mapping depends on the writing mode of the element itself. I didn't read the spec carefully when implementing logical values in Blink, so I ended up copying the Firefox behavior. https://github.com/web-platform-tests/wpt/pull/12326 tests the implemented behavior and not the spec one.

Instead of fixing both implementations and WPT, maybe consider changing the spec?

This would be consistent with the previous change that made the mapping for logical properties depend on the writing mode of the element instead of the one of the parent element.
https://github.com/w3c/csswg-drafts/blob/206498e6bd16ad8dc00967a26607c72bdcd12dfa/css-logical-1/Overview.bs#L731

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3013 using your GitHub account

Received on Sunday, 12 August 2018 19:09:51 UTC