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

> If you have "access" to the declaration to set !inheritable, you can also just set a custom property and have it inherit and use that on the property as well.

@LeaVerou This is true except for the point I was trying to make above about the computed value which is not an issue when setting px but if you are using context-centric units like ems, becomes a concern.  I updated my comment to include a super basic codepen demonstrating this where we see the value of --size changes depending on where in the cascade the var is called.  `@property` may address this, I wasn't sure how far along that was though in being defined.

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


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

Received on Monday, 12 April 2021 16:14:23 UTC