Re: [csswg-drafts] [css-pseudo] Custom properties on :root (#6641)

To summarize earlier discussions, the three options that @tabatkins and I considered were:

1. Have the root highlights inherit from :root
2. Inherit custom properties from the originating element, other properties from the highlight parent.
3. Ignore custom properties on the highlight, have var() look up values on the originating element.

The downsides to each are:
1. Doesn't adopt custom property changes in subtrees.
2. Dual-inheritance is hard to implement
3. Setting a custom property and using it in the same place doesn't work on highlights

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


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

Received on Wednesday, 25 January 2023 18:12:52 UTC