Skip to content

[css-mixins-1] Let 'inherit' work like 'inherit()' #12387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions css-mixins-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,29 @@ with its [=function parameters=] overriding "inherited" custom properties of the
is the [=guaranteed-invalid value=].

* On custom properties,
the [=CSS-wide keywords=] ''initial'' and ''inherit'' have their usual effect;
all other [=CSS-wide keywords=] resolve to the [=guaranteed-invalid value=].
the [=CSS-wide keywords=] have the following effects:

<dl>
<dt>''initial''</dt>
<dd>
Resolves to the initial value of the custom property
within |registrations|.
</dd>

<dt>''inherit''</dt>
<dd>
Resolves like an ''inherit()'' function
with the custom property name as its one and only argument.

Note: This ensures that a [=function parameter=] defaulted to ''inherit''
is reinterpreted using the local [=parameter type=].
</dd>

<dt>any other [=CSS-wide keyword=]</dt>
<dd>
Resolves to the [=guaranteed-invalid value=].
</dd>
</dl>

Note: ''initial'' references the [=custom property registration=]
created from the [=function parameters=],
Expand Down