Skip to content

[css-text-decor-3] Clarify expected computed value for text-decoration and similar shorthands (can we omit resolved currentColor?) #12486

@vitorroriz

Description

@vitorroriz

As of right now, text-decoration computed WPT expects text-decoration: none to be serialized to the resolved value of currentColor.

However, since currentColor is the default value of text-decoration-color, one might expect that we should omit it and the computed value should be none, following canonical order and short serialization rule, since none is the default value for text-decoration-line, which is the first longhand in canonical order.

For another similar shorthand property, text-emphasis that also has as a value of one of its longhands, It seems that for text-emphasis computed WPT, Safari, Chrome and Firefox agree that text-emphasis: none should be serialized to none <resolved-value-for-current-color>

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