-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-backgrounds] Specify exact pixel values for border-width: thin, medium, thick #7254
Comments
I suspect the current undefinedness was one of those things where browsers didn't agree when we were nailing down 2.1 and we weren't sure they could agree by our deadline. |
I think it was intentionally left UA-defined, just like the various font-size keywords. My suggestion would be to put “For Web compatibility, it is recommended that these keywords be mapped to 1px, 3px, and 5px, respectively.” or somesuch. |
The CSS Working Group just discussed
The full IRC log of that discussion<emeyer> Topic: [css-backgrounds] Specify exact pixel values for border-width: thin, medium, thick<emeyer> Github: https://github.com//issues/7254 <emeyer> TabAtkins: Was noticed that we still leave the keyword thicknesses undefined. But all browsers agree on widths at 1px, 3px, 5px. <emeyer> …Not sure of the exact history, but absent that, the widths are very consistent and don’t see a good reason to leave them undefined. <astearns> ack fantasai <emeyer> fantasai: Maybe it was that these were like font-size keywords and left open to interpretation. We should maybe recommend but not require specific widths. <fantasai> My suggested wording was “For Web compatibility, it is recommended that these keywords be mapped to 1px, 3px, and 5px, respectively.” <emeyer> TabAtkins: On the other hand, we specify a lot of things that could be adjusted by e-readers. I don’t know that this needs to be left undefined. <emeyer> …I argue we should go stronger than suggested. <astearns> ack dbaron <emeyer> dbaron: This is one of those things that was left up in the air in CSS1, and I don’t remember a proposal to define more precisely. I support the precise definition. <emeyer> fantasai: If everyone else agrees, that’s fine. <emeyer> RESOLVED: thin, medium, and thick will be defined as 1px, 3px, and 5px respectively. |
See this Twitter thread: https://twitter.com/tabatkins/status/1522261879762014223
Since browsers agree on 1px, 3px and 5px for border-width: thin, medium, and thick, respectively, it seems to me the spec could require this mapping for all UAs.
cc @tabatkins @bfgeek
The text was updated successfully, but these errors were encountered: