Skip to content

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

@Loirooriol

Description

@Loirooriol

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. web-platform-tests/wpt#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.

<li>Making all properties cascade using the <a>writing mode</a> specified on the element, not on its parent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions