Re: [csswg-drafts] Introduce `self()` function [css-values] (#9459)

> Using inherit would require both the grandchild and child to use `inherit()` (afaik) to retrieve the grandparent value.

Nope. As long as the custom property is typed appropriately (and specified inheritable), all you need to pass it down to arbitrarily distant descendants is to set it once on the child of the element you’re querying.

> Yup! Declarative functions were just a strong use case for this feature, though I also see significant value elsewhere

I agree that declarative functions would be immensely useful, but let's try to keep the discussion about each feature in its own issue otherwise it becomes difficult to untangle.

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


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

Received on Saturday, 14 October 2023 01:18:29 UTC