-
Notifications
You must be signed in to change notification settings - Fork 636
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-anchor-position-1] Should custom property declarations be valid in @try
?
#9198
Comments
I don't see how this makes a difference. It still allows custom properties to set arbitrary other properties. |
Right, of course, you want fallbacks that can only change the position of the anchored element. You want to know if a fallback would make it overflow its containing block without re-computing styles of all elements. |
I hope it is ok if I re-open it, because custom properties are implicitly accepted in keyframe rules, so I think either CSS Anchor Position or CSS Animation should explicitly exclude or include them. From this IRC log:
But this does not seem to have been discussed further. Unless otherwise stated, I am goind to assume this is still not a good consideration. |
The spec excludes them by not including them in the list of things that are accepted. That seems good enough? |
Yes, my thinking was wrong. Sorry. Definitely closed. 🔒 |
I initially asked this in #9150.
@xiaochengh warned that accepting them would break anchor positioning entirely:
But I wonder if it would work if custom properties are accepted only if there is one or more declarations of the other accepted properties?
I do not have a strong opinion and I am only interested in disallowing custom properties, because
@try
is the only rule accepting property declarations that do not accept custom properties.The text was updated successfully, but these errors were encountered: