Skip to content

Commit bf5008c

Browse files
committed
[css-paint-api] Define variable 'paint' in 'registerPaint' algorithm.
Fixes #234
1 parent 5ef5671 commit bf5008c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

css-paint-api/Overview.bs

+7-5
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,12 @@ called, the user agent <em>must</em> run the following steps:
184184
7. If the result of <a>Type</a>(|prototype|) is not Object, <a>throw</a> a <a>TypeError</a> and
185185
abort all these steps.
186186

187-
8. If the result of <a>IsCallable</a>(<a>Get</a>(|prototype|, "paint")) is false, <a>throw</a> a
188-
<a>TypeError</a> and abort all these steps.
187+
8. Let |paint| be the result of <a>Get</a>(|prototype|, "paint").
189188

190-
9. Let |definition| be a new <a>paint image definition</a> with:
189+
9. If the result of <a>IsCallable</a>(|paint|) is false, <a>throw</a> a <a>TypeError</a> and
190+
abort all these steps.
191+
192+
10. Let |definition| be a new <a>paint image definition</a> with:
191193

192194
- <a>paint image name</a> being |name|
193195

@@ -197,10 +199,10 @@ called, the user agent <em>must</em> run the following steps:
197199

198200
- <a>class constructor valid flag</a> being true
199201

200-
10. Add the key-value pair (|name| - |inputProperties|) to the <a>paint name to input properties
202+
11. Add the key-value pair (|name| - |inputProperties|) to the <a>paint name to input properties
201203
map</a> of the associated <a>document</a>.
202204

203-
11. Add the key-value pair (|name| - |definition|) to the <a>paint name to paint image
205+
12. Add the key-value pair (|name| - |definition|) to the <a>paint name to paint image
204206
definition map</a> of the associated <a>document</a>.
205207

206208

0 commit comments

Comments
 (0)