@@ -11,6 +11,7 @@ Editor: Miriam E. Suzanne, Invited Expert, http://miriamsuzanne.com/contact, w3c
11
11
Editor : Tab Atkins-Bittner, Google, http://xanthir.com/contact/, w3cid 42199
12
12
Abstract : This module provides the ability to define custom functional notations.
13
13
Default Highlight : css
14
+ Ignored Terms : cssText
14
15
</pre>
15
16
16
17
<pre class=link-defaults>
@@ -24,7 +25,7 @@ spec:css-properties-values-api; type:dfn;
24
25
text:supported syntax component name
25
26
text:syntax component
26
27
spec:css-syntax-3; type:dfn;
27
- text:declaration
28
+ text:declaration; for:CSS
28
29
text:descriptor;
29
30
spec:css-values-4; type:dfn;
30
31
text:keyword;
@@ -241,7 +242,7 @@ Additionally, it accepts the following descriptors:
241
242
* The '@function/result' descriptor,
242
243
which determines the result of [=evaluating a custom function|evaluating the function=] .
243
244
* [=Custom properties=] ,
244
- providing [= local variables=] .
245
+ providing <dfn> local variables</dfn> .
245
246
246
247
Unknown descriptors are invalid and ignored,
247
248
but do not make the ''@function'' rule itself invalid.
@@ -264,7 +265,7 @@ it can reference [=function parameters=], [=local variables=],
264
265
as well as other [=custom functions=] via <<dashed-function>> s.
265
266
266
267
The '@function/result' descriptor itself does not have a type,
267
- but its [=resolved local value |resolved=] value is type checked
268
+ but its [=resolve function styles |resolved=] value is type checked
268
269
during the [=substitute a dashed function|substitution=] of a <<dashed-function>> .
269
270
270
271
@@ -373,10 +374,10 @@ with its [=function parameters=] overriding "inherited" custom properties of the
373
374
<div algorithm>
374
375
To <dfn>evaluate a custom function</dfn> |custom function|,
375
376
given a [=calling context=] |calling context|
376
- and an [=argument list=] |arguments|,
377
+ and a list of CSS values |arguments|,
377
378
returning a CSS value:
378
379
379
- 1. If the number of values in |arguments|
380
+ 1. If the number of items in |arguments|
380
381
is greater than the number of [=function parameters=] in |custom function|,
381
382
return the [=guaranteed-invalid value=] .
382
383
2. Let |registrations| be an initially empty set of [=custom property registrations=] .
@@ -429,7 +430,7 @@ with its [=function parameters=] overriding "inherited" custom properties of the
429
430
|el| is [=featureless=] ,
430
431
and only [=custom properties=]
431
432
and the '@function/result' descriptor apply to it.
432
- 2. Apply |rule| to |el| to the [=specified style =] stage,
433
+ 2. Apply |rule| to |el| to the [=specified value =] stage,
433
434
with the following changes:
434
435
435
436
* Only the [=custom property registrations=] in |registrations| are visible;
0 commit comments