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

> The fallback for `var(--foo)` is applied when `--foo` is initial

Ah, yes, that's because the initial value for unregistered custom properties is the guaranteed-invalid value, which is what triggers the fallback. But if you register the property with some other initial value, then `initial` doesn't trigger the fallback in `var()`, so I guess it shouldn't in `inherit()` either.

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


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

Received on Monday, 18 January 2021 16:27:23 UTC