Skip to content

Commit 960886b

Browse files
committed
[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.
1 parent 5fc94f1 commit 960886b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

css-paint-api/Overview.bs

Lines changed: 4 additions & 4 deletions
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 descriptors=].
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 descriptor=] from |item|.
208+
If failure was returned, [=throw=] a [=TypeError=] and abort all these steps.
209+
Otherwise, let |parsedSyntax| be the returned [=syntax descriptor=].
210210

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

css-properties-values-api/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ Parsing the syntax string {#parsing-syntax}
560560
:: A sequence of <a>code points</a> which is either a <a>data type name</a>,
561561
or a sequence that can produce a <<custom-ident>>.
562562

563-
: <dfn>syntax descriptor</dfn>
563+
: <dfn export>syntax descriptor</dfn>
564564
:: An object consisting of a list of <a>syntax components</a>.
565565

566566
: <dfn>universal syntax descriptor</dfn>

0 commit comments

Comments
 (0)