Skip to content

Commit

Permalink
[css-mixins-1][editorial] clean up markup
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Feb 7, 2025
1 parent f8b28b2 commit c18e729
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions css-mixins-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Editor: Miriam E. Suzanne, Invited Expert, http://miriamsuzanne.com/contact, w3c
Editor: Tab Atkins-Bittner, Google, http://xanthir.com/contact/, w3cid 42199
Abstract: This module provides the ability to define custom functional notations.
Default Highlight: css
Ignored Terms: cssText
</pre>

<pre class=link-defaults>
Expand All @@ -24,7 +25,7 @@ spec:css-properties-values-api; type:dfn;
text:supported syntax component name
text:syntax component
spec:css-syntax-3; type:dfn;
text:declaration
text:declaration; for:CSS
text:descriptor;
spec:css-values-4; type:dfn;
text:keyword;
Expand Down Expand Up @@ -241,7 +242,7 @@ Additionally, it accepts the following descriptors:
* The '@function/result' descriptor,
which determines the result of [=evaluating a custom function|evaluating the function=].
* [=Custom properties=],
providing [=local variables=].
providing <dfn>local variables</dfn>.

Unknown descriptors are invalid and ignored,
but do not make the ''@function'' rule itself invalid.
Expand All @@ -264,7 +265,7 @@ it can reference [=function parameters=], [=local variables=],
as well as other [=custom functions=] via <<dashed-function>>s.

The '@function/result' descriptor itself does not have a type,
but its [=resolved local value|resolved=] value is type checked
but its [=resolve function styles|resolved=] value is type checked
during the [=substitute a dashed function|substitution=] of a <<dashed-function>>.


Expand Down Expand Up @@ -373,10 +374,10 @@ with its [=function parameters=] overriding "inherited" custom properties of the
<div algorithm>
To <dfn>evaluate a custom function</dfn> |custom function|,
given a [=calling context=] |calling context|
and an [=argument list=] |arguments|,
and a list of CSS values |arguments|,
returning a CSS value:

1. If the number of values in |arguments|
1. If the number of items in |arguments|
is greater than the number of [=function parameters=] in |custom function|,
return the [=guaranteed-invalid value=].
2. Let |registrations| be an initially empty set of [=custom property registrations=].
Expand Down Expand Up @@ -429,7 +430,7 @@ with its [=function parameters=] overriding "inherited" custom properties of the
|el| is [=featureless=],
and only [=custom properties=]
and the '@function/result' descriptor apply to it.
2. Apply |rule| to |el| to the [=specified style=] stage,
2. Apply |rule| to |el| to the [=specified value=] stage,
with the following changes:

* Only the [=custom property registrations=] in |registrations| are visible;
Expand Down

0 comments on commit c18e729

Please sign in to comment.