@@ -198,6 +198,9 @@ called, the user agent <em>must</em> run the following steps:
198
198
<a>converting</a> |inputPropertiesIterable| to a <code> sequence<DOMString></code> . If an
199
199
exception is <a>thrown</a> , rethrow the exception and abort all these steps.
200
200
201
+ 7. Filter |inputProperties| so that it only contains <a>supported CSS properties</a> and
202
+ <a>custom properties</a> .
203
+
201
204
Note: The list of CSS properties provided by the input properties getter can either be custom or
202
205
native CSS properties.
203
206
@@ -207,48 +210,48 @@ called, the user agent <em>must</em> run the following steps:
207
210
also contains currently invalid properties for the user agent. For example
208
211
<code> margin-bikeshed-property</code> .
209
212
210
- 7 . Let |inputArguments| be an empty <code> sequence<DOMString></code> .
213
+ 8 . Let |inputArguments| be an empty <code> sequence<DOMString></code> .
211
214
212
- 8 . Let |inputArgumentsIterable| be the result of <a>Get</a> (|paintCtor|, "inputArguments").
215
+ 9 . Let |inputArgumentsIterable| be the result of <a>Get</a> (|paintCtor|, "inputArguments").
213
216
214
- 9 . If |inputArgumentsIterable| is not undefined, then set |inputArguments| to the result of
217
+ 10 . If |inputArgumentsIterable| is not undefined, then set |inputArguments| to the result of
215
218
<a>converting</a> |inputArgumentsIterable| to a <code> sequence<DOMString></code> . If an
216
219
execption is thrown, rethrow the execption and abort all these steps.
217
220
218
- 10 . Let |inputArgumentSyntaxes| be an <a for=list>empty</a> <a>list</a> .
221
+ 11 . Let |inputArgumentSyntaxes| be an <a for=list>empty</a> <a>list</a> .
219
222
220
- 11 . <a for=list>For each</a> |item| in |inputArguments| perform the following substeps:
223
+ 12 . <a for=list>For each</a> |item| in |inputArguments| perform the following substeps:
221
224
222
225
1. Let |parsedSyntax| be the result of parsing |item| according to the rules in
223
226
[[css-properties-values-api-1#supported-syntax-strings]] . If it fails to parse
224
227
<a>throw</a> a <a>TypeError</a> and abort all these steps.
225
228
226
229
2. <a for=list>Append</a> |parsedSyntax| to |inputArgumentSyntaxes|.
227
230
228
- 12 . Let |contextOptionsValue| be the result of <a>Get</a> (|paintCtor|, "contextOptions").
231
+ 13 . Let |contextOptionsValue| be the result of <a>Get</a> (|paintCtor|, "contextOptions").
229
232
230
- 13 . Let |paintRenderingContext2DSettings| be the result of <a>converting</a>
233
+ 14 . Let |paintRenderingContext2DSettings| be the result of <a>converting</a>
231
234
|contextOptionsValue| to a {{PaintRenderingContext2DSettings}} .
232
235
If an exception is <a>thrown</a> , rethrow the exception and abort all these steps.
233
236
234
237
Note: Setting <code> paintRenderingContext2DSettings.alpha</code> is <code> false</code> allows user agents
235
238
to anti-alias text in addition to performing "visibility" optimizations, e.g. not
236
239
painting an image behind the paint image as the paint image is opaque.
237
240
238
- 14 . If the result of <a>IsConstructor</a> (|paintCtor|) is false, <a>throw</a> a <a>TypeError</a>
241
+ 15 . If the result of <a>IsConstructor</a> (|paintCtor|) is false, <a>throw</a> a <a>TypeError</a>
239
242
and abort all these steps.
240
243
241
- 15 . Let |prototype| be the result of <a>Get</a> (|paintCtor|, "prototype").
244
+ 16 . Let |prototype| be the result of <a>Get</a> (|paintCtor|, "prototype").
242
245
243
- 16 . If the result of <a>Type</a> (|prototype|) is not Object, <a>throw</a> a <a>TypeError</a> and
246
+ 17 . If the result of <a>Type</a> (|prototype|) is not Object, <a>throw</a> a <a>TypeError</a> and
244
247
abort all these steps.
245
248
246
- 17 . Let |paintValue| be the result of <a>Get</a> (|prototype|, "paint").
249
+ 18 . Let |paintValue| be the result of <a>Get</a> (|prototype|, "paint").
247
250
248
- 18 . Let |paint| be the result of <a>converting</a> |paintValue| to the <a>Function</a>
251
+ 19 . Let |paint| be the result of <a>converting</a> |paintValue| to the <a>Function</a>
249
252
<a>callback function</a> type. Rethrow any exceptions from the conversion.
250
253
251
- 19 . Let |definition| be a new <a>paint definition</a> with:
254
+ 20 . Let |definition| be a new <a>paint definition</a> with:
252
255
253
256
- <a>class constructor</a> being |paintCtor|.
254
257
@@ -260,9 +263,9 @@ called, the user agent <em>must</em> run the following steps:
260
263
261
264
- <a for="paint definition">PaintRenderingContext2DSettings object</a> being |paintRenderingContext2DSettings|.
262
265
263
- 20 . <a for=map>Set</a> |paintDefinitionMap|[|name|] to |definition|.
266
+ 21 . <a for=map>Set</a> |paintDefinitionMap|[|name|] to |definition|.
264
267
265
- 21 . <a>Queue a task</a> to run the following steps:
268
+ 22 . <a>Queue a task</a> to run the following steps:
266
269
267
270
1. Let |documentPaintDefinitionMap| be the associated <a>document's</a> <a>document paint
268
271
definitions</a> <a>map</a> .
0 commit comments