Re: [csswg-drafts] Query current element style just like container style queries (#9834)

That would be nice, but sadly it results in circularity. You are styling the same element that you are querying, and so styles that you apply can change the outcome of the query.

In the example you've shown, it seems simpler to use an attribute like `button-variant='primary'` in place of the custom properties?

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


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

Received on Tuesday, 23 January 2024 17:10:41 UTC