Re: [csswg-drafts] [css2?] Define when border rounding happens, and to which properties it applies (#5210)

The Chromium change that unifies the behavior with Gecko and WebKit is now complete, and we could update the spec to define the border-width rounding at computed value time.

A proposed wording for the spec definition could be:
```
The border-width length should be snapped to the nearest device pixel at computed value time
based on the following rounding formula:
  If the border-width length is greater than 0 device px and less than 1 device px
  it should be rounded up to 1 device px.

  If the border-width length is greater than 1 device px
  it should be floored down to the nearest device pixel.
```


The clarification of the rounding behavior has also been discussed in [issue 2114](https://github.com/w3c/csswg-drafts/issues/2114)


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


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

Received on Friday, 21 October 2022 01:39:07 UTC