Skip to content

[css-text-decor] Rounding of text-decoration-thickness #12696

@emilio

Description

@emilio

It seems Chromium does some rounding to text decoration thickness. It's not clear to me if that rounds to CSS or device pixels, I assume the later.

The spec does say to round to the nearest device pixel: https://drafts.csswg.org/css-text-decor-4/#valdef-text-decoration-thickness-length

Someone sent a patch to do something similar in Firefox, but that raises the following questions:

  • At a glance, this seems similar to borders, why doesn't it use the same algorithm?

  • Should this rounding be done at computed-value time rather than used-value time like borders do? I don't feel super strongly since these don't affect layout, but worth raising.

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