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

I don't think it's so complicated tho, wouldn't:

```
--hairline: calc(1px / var(--device-pixel-ratio));
--border-width: max(var(--hairline), round(var(--css-width), var(--hairline)));
```

work for that use-case? Again not opposed to add a more general `border-round` for convenience, but I think `env(hairline)` unlocks most of the use-cases already, and we can resolve on `border-round` on a separate issue :)

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


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

Received on Monday, 6 October 2025 09:34:17 UTC