Skip to content

Commit 01ddded

Browse files
andruudtabatkins
authored andcommitted
[css-paint-api] Lean on "syntax definition" concept. (w3c#885)
* [css-paint-api] Lean on "syntax descriptor" concept. The css-properties-values-api now describes in detail how to produce a "syntax descriptor" from a string, so it's better to link to that rather than linking to a section in the spec. * Update after rename from descriptor -> definition.
1 parent d482b87 commit 01ddded

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

css-paint-api/Overview.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ by the paint function). It consists of:
142142
<code>DOMStrings</code>.
143143

144144
- A <dfn for="document paint definition">input argument syntaxes</dfn> which is a [=list=] of
145-
parsed [[css-properties-values-api-1#supported-syntax-strings]].
145+
[=syntax definitions=].
146146

147147
- A <dfn for="document paint definition">PaintRenderingContext2DSettings object</dfn>.
148148

@@ -204,9 +204,9 @@ called, the user agent <em>must</em> run the following steps:
204204

205205
12. [=list/For each=] |item| in |inputArguments| perform the following substeps:
206206

207-
1. Let |parsedSyntax| be the result of parsing |item| according to the rules in
208-
[[css-properties-values-api-1#supported-syntax-strings]]. If it fails to parse
209-
[=throw=] a [=TypeError=] and abort all these steps.
207+
1. Attempt to [=consume a syntax definition=] from |item|.
208+
If failure was returned, [=throw=] a [=TypeError=] and abort all these steps.
209+
Otherwise, let |parsedSyntax| be the returned [=syntax definition=].
210210

211211
2. [=list/Append=] |parsedSyntax| to |inputArgumentSyntaxes|.
212212

css-properties-values-api/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ Parsing the syntax string {#parsing-syntax}
564564
:: A sequence of <a>code points</a> which is either a <a>data type name</a>,
565565
or a sequence that can produce a <<custom-ident>>.
566566

567-
: <dfn>syntax definition</dfn>
567+
: <dfn export>syntax definition</dfn>
568568
:: An object consisting of a list of <a>syntax components</a>.
569569

570570
: <dfn>universal syntax definition</dfn>

0 commit comments

Comments
 (0)