-
Notifications
You must be signed in to change notification settings - Fork 718
[css-backgrounds-4] Order of keywords in border-*-radius
shorthands
#8469
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
Comments
I really don't think they should follow the clockwise ordering. The clockwise ordering makes sense in the context of four values; if you're only specifying two values it's nonsense, because it gives opposite orders for opposite sides. top and bottom should definitely set the values left->right (or start->end), etc. |
start->end totally makes sense for logical shorthands. But do we have a precedent for assuming that physical left->right and top->bottom is the natural progression? |
Yes, any property with single-axis values uses that progression unless there's a good reason not to. See 'background-position', for instance - each axis's length is measured from the top/left, with larger values proceeding downward/rightward. (Note that some seeming exceptions, like the 'right' property, are not based on an axis, but rather on a side, and thus are measuring along an outside <-> inside dimension.) |
Mm, OK, in |
As it seems we agree on this now, let's make this official. Proposed resolution: Close this issue without changing the spec. I.e. the order for the Sebastian |
If there is no spec change, then we do not need a resolution. Particularly since you opened the issue @SebastianZ feel free to close no change and add a 'commenter satisfied' label. |
Thanks for the hint, @astearns! |
Currently, the order of the
border-*-radius
shorthand values is defined as top to bottom and left to right for the physical properties and start to end for the logical properties.Though @Loirooriol questioned this and proposed to rather follow the clockwise order used for the
border-radius
shorthand.So
border-radius: 1px 2px 3px 4px
would be equivalent toinstead of
The question is, do authors rather expect opposite sides to always follow one direction or have a clockwise order?
This question similarily applies to the logical shorthands. Should they always be start to end or should they map differently?
I tend to say one direction, though it also goes against
border-radius
.Sebastian
The text was updated successfully, but these errors were encountered: