You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[css-mixins-1] Let 'inherit' work like 'inherit()' (#12387)
With @function, it becomes possible to have a "type mismatch"
between an "outer" custom property and an "inner" custom property:
@Property --x {
syntax: "auto | red";
/* ... */
}
@function --f(--x <color>: inherit) {
result: var(--x);
}
div {
--x: red;
--f(); /* => ? */
}
We have to address this somehow, and the obvious way seems to be
making 'inherit' behave like "a var(--x) that resolves in the parent
stack frame". This is essentially what inherit() does, which already
exists in the spec.
0 commit comments