Re: [csswg-drafts] [css-values-4] inherit() function: like var() for parent value, for any property (#2864)

@andruud 

Ok, if that's not possible and it can only look at immediate parent, that's still useful.
But to answer your question, these seem to be the main categories of these use cases, ordered by descending prevalence:

- Shadow DOM getting styles from shadow root
- Child being able to "circumvent" parent value and revert to grandparent value
- Getting property values from root

A lot of this can be worked around if we define `parent()` to expand to the equivalent token sequence at the point of use instead of being inherited as a `parent()` call. So, if I want to reference a grandparent value, I can just assign it to a custom property on the parent. Would this create the same issue?

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


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

Received on Saturday, 10 April 2021 20:33:10 UTC