Skip to content

[css-writing-modes][css-values] Font metrics calculation on elements which writing-mode doesn't apply to #1782

@upsuper

Description

@upsuper

I realized that this could be an issue when I was thinking about #1773.

There are some elements that writing-mode doesn't applied to, specifically, table row groups, table column groups, table rows, table columns, ruby base container, and ruby annotation container, per css-writing-modes spec. However, there are some font-relative units defined in css-values which depend on writing-mode property.

The question is, for an element which writing-mode doesn't apply to, should the font-relative units be computed based on the value of the computed (but not applied) writing-mode, or the used writing-mode (from some ancestor)? I guess the same question applies to logical properties as well.

The description of "Applies to" in CSS 2.1 says

All elements are considered to have all properties, but some properties have no rendering effect on some types of elements.

I guess it indicates that the computed value should probably be used? It also seems to me that it could be hard to have style computation based on used value, because that would create more complicated dependencies.

Probably the spec should mention that, although writing-mode doesn't apply to these elements, the style computation is still done based on the computed value of writing-mode of the same element.

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