Re: [csswg-drafts] [css-contain] future compatibility concerns with style queries (#9144)

Restricting to known idents isn't ideal because that also has compat issues.

Then your style queries would only work in browsers where the ident has meaning.  
Older browsers without support for a given ident (e.g. `balance`) wouldn't match the query.

----

Restricting to dashed idents only is also not ideal.
Then the custom property lose some of it's functionality.

Now you can mix style queries and assignment to a property with the same custom property.

----

Maybe the current approach is best and we just have to live with the possibility that future additions to CSS wide keywords will break sites?

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9144#issuecomment-1662936942 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 2 August 2023 20:39:34 UTC