@@ -68,8 +68,8 @@ Each <<paint()>> function for a box has an associated <dfn>paint valid flag</dfn
6868When the size (as determined by layout) of a |box| changes, each <<paint()>> function's <a>paint
6969valid flag</a> should be set to <a>paint-invalid</a> .
7070
71- When the computed style for a |box| changes, the user agent must run the following steps:
72- 1. For each <<paint()>> function on the |box|, perform the following substeps :
71+ When the computed style for a |box| changes, the user agent <em> must</em> run the following steps:
72+ 1. For each <<paint()>> function on the |box|, perform the following steps :
7373 1. Let |paintFunction| be the current <<paint()>> function on the |box|.
7474
7575 2. Let |name| be the first argument of the <<paint()>> function.
@@ -227,7 +227,7 @@ called, the user agent <em>must</em> run the following steps:
227227 1. Let |paintInputPropertiesMap| be the associated <a>document</a> 's <a>paint input
228228 properties</a> map.
229229
230- 2. If |paintInputPropertiesMap|[|name|] <a for=map>exists</a> run the following substeps :
230+ 2. If |paintInputPropertiesMap|[|name|] <a for=map>exists</a> , run the following steps :
231231
232232 1. Let |existingInputProperties| be the result of <a>get</a>
233233 |paintInputPropertiesMap|[|name|] .
@@ -308,7 +308,7 @@ correct resolution. This also allows user agents to re-use the same output of th
308308bitmap</a> repeatably while the visual viewport is being zoomed for example.
309309
310310When the user agent is to <dfn>create a PaintRenderingContext2D object</dfn> for a given |width|,
311- |height| and |alpha| it <em> must</em> run the following steps:
311+ |height|, and |alpha|, it <em> must</em> run the following steps:
312312 1. Create a new {{PaintRenderingContext2D}} .
313313 2. <a>Set bitmap dimensions</a> for the context's <a>output bitmap</a> to |width| and |height|.
314314 3. Set the {{PaintRenderingContext2D}} 's <a>alpha</a> flag to |alpha|.
@@ -405,14 +405,13 @@ following steps:
405405 it should select a paint worklet global scope which can be used on that thread.
406406
407407When the user agent wants to <dfn>invoke a paint callback</dfn> given |name|, |concreteObjectSize|,
408- |workletGlobalScope|, it <em> must</em> run the following steps:
408+ and |workletGlobalScope|, it <em> must</em> run the following steps:
409409
410410 1. Let |paintImageDefinitionMap| be |workletGlobalScope|'s <a>paint image definitions</a> map.
411411
412- 2. If |paintImageDefinitionMap|[|name|] does not <a for=map>exist</a> , run the following
413- substeps:
412+ 2. If |paintImageDefinitionMap|[|name|] does not <a for=map>exist</a> , run the following steps:
414413
415- 1. <a>Queue a task</a> to run the following substeps :
414+ 1. <a>Queue a task</a> to run the following steps :
416415
417416 1. Let |paintInputPropertiesMap| be the associated <a>document</a> 's <a>paint input
418417 properties</a> map.
@@ -434,7 +433,7 @@ When the user agent wants to <dfn>invoke a paint callback</dfn> given |name|, |c
434433 4. Let |paintClassInstanceMap| be |workletGlobalScope|'s <a>paint class instances</a> map.
435434
436435 5. Let |paintInstance| be the result of <a>get</a> |paintClassInstanceMap|[|name] |. If
437- |paintInstance| is null run the following substeps :
436+ |paintInstance| is null, run the following steps :
438437
439438 1. If the <a>paint constructor valid flag</a> on |definition| is false, let the image output
440439 be an <a>invalid image</a> and abort all these steps.
0 commit comments