Re: [csswg-drafts] [css-variables?] Higher level custom properties that control multiple declarations (#5624)

> We'd relax all restrictions related to the proposed const-variables, since we wouldn't need to introduce them: `:const()` would refer to the existing custom properties. When matching selectors for a given element, the computed values of the parent/ancestor/preceding-sibling is already known*, so it should be fine-ish to depend on those computed values during selector matching of a subsequent element.

The main issue with this is that this would make DOM APIs like `.matches()` etc need to update style of all ancestors, etc, which would be a bit unfortunate, imo.

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


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

Received on Thursday, 22 April 2021 15:11:37 UTC