Re: [csswg-drafts] [css-borders] Add a 'hairline' border-width value (#3720)

Okay, so new proposal:

* Add a `hairline` keyword to a few properties, which represents some fraction of a pixel that is still considered "visible", and it always ["snapped as a border width"](https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width) (so it's a positive integer number of device pixels, to the extent that makes sense).
* Introduce a `border-round()` function that takes a length (or the keyword `hairline`) and resolves to that length "snapped as a border width", so you can get this behavior for other properties that we don't define `hairline` for.

Properties that gain `hairline` are:
* 'border-width'
* 'column-rule-width'/'row-rule-width'
* 'outline'
* 'text-decoration-thickness'

Agenda+ to see if we can resolve on this.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3720#issuecomment-2666747777 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 18 February 2025 19:30:32 UTC