Skip to content

Commit 2c901ea

Browse files
committed
[css-paint-api] Fix bikeshed errors/warnings.
1 parent dcfdb44 commit 2c901ea

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

css-paint-api/Overview.bs

+20-9
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ When the user agent is to <dfn>create a PaintRenderingContext2D object</dfn> for
422422
|height|, and |paintRenderingContext2DSettings|, it <em>must</em> run the following steps:
423423
1. Create a new {{PaintRenderingContext2D}}.
424424
2. <a>Set bitmap dimensions</a> for the context's <a>output bitmap</a> to the rounded values of |width| and |height|.
425-
3. Set the {{PaintRenderingContext2D}}'s <a>alpha</a> flag to |paintRenderingContext2DSettings.alpha|.
425+
3. Set the {{PaintRenderingContext2D}}'s <a>alpha</a> flag to |paintRenderingContext2DSettings|'s {{alpha}}.
426426
4. Return the new {{PaintRenderingContext2D}}.
427427

428428
Note: The initial state of the rendering context is set inside the <a>set bitmap dimensions</a>
@@ -451,12 +451,13 @@ Note: The user agent can optionally defer drawing images which are <a>paint-inva
451451
</div>
452452

453453
The <a>draw a paint image</a> function is invoked by the user agent during the <a>object size
454-
negotiation</a> algorithm which is responsible for rendering an <<image>>, with |snappedConcreteObjectSize|
455-
defined as follows. Let |concreteObjectSize| be the <a>concrete object size</a> of the <a>box</a>.
456-
The |snappedConcreteObjectSize| is usually the same as the |concreteObjectSize|. However, the
457-
user agent may adjust the size such that it paints to pixel boundaries. If it does, the user agent
458-
should adjust the |snappedConcreteObjectSize| by the proportional change from its original size
459-
such that the <<paint()>> function can adjust the drawing accordingly.
454+
negotiation</a> algorithm which is responsible for rendering an <<image>>, with
455+
|snappedConcreteObjectSize| defined as follows. Let |concreteObjectSize| be the <a>concrete object
456+
size</a> of the <a>box</a>. The |snappedConcreteObjectSize| is usually the same as the
457+
|concreteObjectSize|. However, the user agent may adjust the size such that it paints to pixel
458+
boundaries. If it does, the user agent should adjust the |snappedConcreteObjectSize| by the
459+
proportional change from its original size such that the <<paint()>> function can adjust the drawing
460+
accordingly.
460461

461462
For the purposes of the <a>object size negotiation</a> algorithm, the paint image has no
462463
<a>intrinsic dimensions</a>.
@@ -475,8 +476,8 @@ Note: See [[css-images-3#object-sizing-examples]] for examples on how the <a>con
475476
The <a>draw a paint image</a> function may be speculatively invoked by the user agent at any point,
476477
with any |snappedConcreteObjectSize|. The resulting image is not displayed.
477478

478-
Note: User agents may use any heuristic to speculate a possible future value for |snappedConcretObjectSize|,
479-
for example speculating that the size remains unchanged.
479+
Note: User agents may use any heuristic to speculate a possible future value for
480+
|snappedConcreteObjectSize|, for example speculating that the size remains unchanged.
480481

481482
Note: Although the image is not displayed, it may still be cached, and subsequent invocations of
482483
<<paint()>> may use the cached image.
@@ -1003,3 +1004,13 @@ registerPaint('overdraw', class {
10031004
}
10041005
});
10051006
</pre>
1007+
1008+
Security Considerations {#security-considerations}
1009+
==================================================
1010+
1011+
There are no known security issues introduced by these features.
1012+
1013+
Privacy Considerations {#privacy-considerations}
1014+
================================================
1015+
1016+
There are no known privacy issues introduced by these features.

0 commit comments

Comments
 (0)