4 ms·
>The biggest problem is that it would completely kill all of the precomputation style engines do to make CSS matching fast which is why I specifically said it
by bryanrasmussen 4y ago
>The biggest problem is that it would completely kill all of the precomputation style engines do to make CSS matching fast
which is why I specifically said it wouldn't work because of performance issues? This part here at the end >it does seem like it would be expensive (for browser performance) to implement.
>The other issue is that custom properties inherit
I'm not sure I see the problem with that actually -
If I set a value on :root and then override it on .foo then I thought it only got overridden for the descendants of .foo?
on edit: ah no of course you mean that if I set --base-color on .foo it is also available for .foo, but in that case I would think the rules would mean that use in selector was outside the scope of the element, that is to say scoped to the parent.