- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 07 May 2025 17:02:11 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-borders] Add a 'hairline' border-width value`. <details><summary>The full IRC log of that discussion</summary> <fantasai> TabAtkins: Discussed border-rounding behavior, where borders with nonzero width but less than a pixel will round to something visible<br> <fantasai> TabAtkins: lot of discussion<br> <fantasai> TabAtkins: conversation seemed to lean towards exposing a 'hairline' keyword for a few propoerties<br> <fantasai> TabAtkins: and maybe a rounding function that rounds like borders do, always away from zero<br> <fantasai> TabAtkins: since then, Oriol suggested 'hairline' as a unit<br> <fantasai> TabAtkins: maps to a number of device pixels<br> <fantasai> TabAtkins: can be used as a length unit anywhere lenghts are allowed<br> <fantasai> TabAtkins: avoids need for new rounding function<br> <fantasai> TabAtkins: also useful if you want another box to match the width of a box with hairline border<br> <fantasai> TabAtkins: could specify calc(100px + 2hairline)<br> <fantasai> TabAtkins: smfr concerned that larger multiples wouldn't be reasonable<br> <fantasai> TabAtkins: but use cases for small multiples<br> <emilio> q+<br> <fantasai> TabAtkins: so I suggest resolving on this approach<br> <fantasai> TabAtkins: a new unit that is 1px or less, but at least one device pixel<br> <Rossen5> ack emilio<br> <smfr> q+<br> <TabAtkins> emilio: one question, should we make it a keyword rather than a unit?<br> <TabAtkins> emilio: a unit that's such a mouthfull feels weird<br> <emeyer> q+<br> <flackr> q+<br> <dandclark> TabAtkins: A keyword either is not usable in calc, or is one of hte calc keywords, unless we do something to make it usable both ways<br> <TabAtkins> smfr: i wo9uldn't object to the unit, think ti's a bit weird tho<br> <dandclark> TabAtkins: Exactly what we do today with border witdths less than a pixel. We still have some def of what it means internally<br> <emeyer> q-<br> <TabAtkins> fantasai: i think making this a unit feels wrong, if you want the boxes to match you should use box-sizing<br> <Rossen5> ack smfr<br> <Rossen5> ack fantasai<br> <jfkthame> fantasai++<br> <TabAtkins> fantasai: people might start using the unit to reference device pixels in a way that's more fragile than we want<br> <TabAtkins> flackr: if an author wants something thicker than a hairline...?<br> <TabAtkins> TabAtkins: max(1hairline, .3px)<br> <Rossen5> ack flackr<br> <Rossen5> ack fantasai<br> <TabAtkins> fantasai: i think ahving a rounding function makes more sense<br> <emilio> fwiw, I think implementing it as a keyword seems trivial-ish as well (so that it works in calc() and other <length>s too)<br> <TabAtkins> TabAtkins: well this clearly wasn't doable in five minutes<br> <emeyer> I have concerns about device printing with a unit that yields a number of device pixels.<br> <emeyer> s/printing/fingerprinting/<br> <TabAtkins> emeyer, device pixel ratio is already exposed in numerous other ways<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3720#issuecomment-2859368894 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 7 May 2025 17:02:12 UTC