-
Notifications
You must be signed in to change notification settings - Fork 715
[css-backgrounds-4] Added box-shadow-* longhand properties #6083
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
Conversation
d2895f7
to
2801e54
Compare
Given the resolution about linked list-valued properties in #7164, it looks like we can finally move forward with this PR. @fantasai As Lea seems to be extremely busy at the moment, is it possible that you do the review for this change? Sebastian |
2801e54
to
b0e7535
Compare
It's hard to review this properly because the entire text from backgrounds-3 is brought in and then edited, so it's hard to know what the delta is. The PR as it currently stands includes stuff about drawing shadows, which is not relevant to breaking down the syntax into longhands. Wrt to the longhands, some thoughts, not very organized:
|
16dcb76
to
e80195f
Compare
e80195f
to
1222ae2
Compare
I've removed the Background 3 parts now. So it should be easier to review the changes.
There are several reasons why I chose
I don't see a strong use case for having separate longhands for the two axes. And it seems @tabatkins agreed on that on a call:
But iff we add them, they have to be physical because the existing offsets in Backgrounds 3 are also physical. We might then add logical counterparts in addition to them, though.
I like the suggested name Anyway, bikeshedding the names can still be done after landing this patch. Sebastian |
Because there was no further feedback since my update ~5 months ago, @LeaVerou's feedback got addressed by me and to pave the way to split the spec. and also to finally start working on adding the Discussions on further improvements and on naming the properties can happen in separate issues. Sebastian |
This change adds the different longhand properties for the
box-shadow
property to the CSS Backgrounds and Borders Module Level 4. This is one part of #4431.The definition of the
box-shadow
property was taken from level 3 of the specification. Then the different longhand properties were created by splitting the syntax and value descriptions of thebox-shadow
property. Some additional descriptions were added and all the properties placed in a new section "Drop Shadows".