Skip to content

Should text-decoration-thickness: auto and from-font round to device pixels and ensure >= 1px? #8768

Description

@Loirooriol

https://drafts.csswg.org/css-text-decor-4/#text-decoration-thickness-property says this for lengths and percentages:

The UA should round the actual value to the nearest integer device pixel, and ensure it is at least one device pixel.

However, I don't see anything similar for auto nor from-font.

In servo this means that the thickness can get below 1px and not be painted: servo/servo#29668

I think it would be good to do that for all values, not just lengths and percentages.

L3 doesn't have text-decoration-thickness and leaves it up to the UA, but could also round to >= 1device pixels.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Agenda+

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions