Skip to content

Commit 1799f57

Browse files
committed
[css-paint-api] Rewords part of the "Drawing Images" section.
Fixes w3c#195.
1 parent bb5ed33 commit 1799f57

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

css-paint-api/Overview.bs

+6-7
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,10 @@ Note: The initial state of the rendering context is set inside the <a>set bitmap
415415
Drawing an image {#drawing-an-image}
416416
====================================
417417

418-
If a <<paint()>> function for a fragment is <a>paint-invalid</a> and the fragment is within the
419-
visual viewport, then user agent <em>must</em> <a>draw a paint image</a> for the current frame. The
420-
user agent <em>may not</em> defer the <a>draw a paint image</a> operation until a subsequent frame.
418+
If a <<paint()>> function for a <a>box</a> is <a>paint-invalid</a> and the <a>box</a> is inside the
419+
visual viewport, then user agent <em>must</em> <a>draw a paint image</a> for the current frame.
421420

422-
Note: The user agent may choose to <a>draw a paint image</a> for <<paint()>> functions not within
421+
Note: The user agent can optionally defer drawing images which are <a>paint-invalid</a> and outside
423422
the visual viewport.
424423

425424
<div class="example">
@@ -429,11 +428,11 @@ Note: The user agent may choose to <a>draw a paint image</a> for <<paint()>> fun
429428
element.styleMap.set('--custom-prop-invalidates-paint', 42);
430429
});
431430
</pre>
432-
And the <code>element</code> is inside the visual viewport, the user agent <em>must</em> <a>draw
433-
a paint image</a> and display the result on the current frame.
431+
And the <code>element</code> is inside the visual viewport, the user agent is required to
432+
<a>draw a paint image</a> and display the result for the current frame.
434433
</div>
435434

436-
The <a>draw a paint image</a> function should be invoked by the user agent during the <a>object size
435+
The <a>draw a paint image</a> function is invoked by the user agent during the <a>object size
437436
negotiation</a> algorithm which is responsible for rendering an <<image>>.
438437

439438
For the purposes of the <a>object size negotiation</a> algorithm, the paint image has no

0 commit comments

Comments
 (0)