-
Notifications
You must be signed in to change notification settings - Fork 656
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-4] Can you chain border-area
and text
in background-clip
?
#10696
Comments
I think this is just two border-images:
|
Considering that the border gradient uses the same gradient as the text, and to avoid writing multiple cc @LeaVerou |
Agreed. Though my preference would be to not special case the combination of |
Feel free to reopen if you feel like this is a path exploring |
I guess that's a straight-forward change and all seem positive about it. So let's put it on the agenda. The two points to resolve on:
Regarding combinations, I don't see value in allowing all combinations. So I propose the syntax to be <bg-clip> = [ <visual-box> | border-area ] || text Or, if we believe there are use cases to combine styling the box areas with the border area, then <bg-clip> = <visual-box> || border-area || text Sebastian |
|
I have a preference for only supporting the reasonable values. The QA cost to checking invalid values are invalid is wayyy less than ensuring nonsensical values work correctly. |
#9456 added
background-clip: border-area
.I think it would be useful to support
background-clip: border-area text
in case you want your background to bleed through both the text and the border-area of an element.The new syntax would then be:
The text was updated successfully, but these errors were encountered: