Skip to content
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-1] position-fallback fails to cascade #9331

Closed
fantasai opened this issue Sep 9, 2023 · 3 comments
Closed

[css-anchor-1] position-fallback fails to cascade #9331

fantasai opened this issue Sep 9, 2023 · 3 comments

Comments

@fantasai
Copy link
Collaborator

fantasai commented Sep 9, 2023

Reading through the issues, apparently rules in the @try blocks apply “at used value time”, which means they don't fit into the cascade at all—even !important rules won't apply.

This is problematic to begin with, and it becomes more problematic the more properties you allow in @try.

@xiaochengh
Copy link
Contributor

In general, making @try rules cascadable (which I assume is equivant to applying them at computed value time) is very hard because we need to run layout to decide which fallback style to apply. Maybe we can postpone this to level 2.

But preventing them from overriding !important style should be implementable, and I agree that should be probably be done now for sanity.

@xiaochengh
Copy link
Contributor

Btw is this a duplicate of #9149?

@tabatkins
Copy link
Member

Yes, this is a #9149 dupe. (If I'm wrong, feel free to shout, @fantasai )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants