@@ -422,7 +422,7 @@ When the user agent is to <dfn>create a PaintRenderingContext2D object</dfn> for
422
422
|height|, and |paintRenderingContext2DSettings|, it <em> must</em> run the following steps:
423
423
1. Create a new {{PaintRenderingContext2D}} .
424
424
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}} .
426
426
4. Return the new {{PaintRenderingContext2D}} .
427
427
428
428
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
451
451
</div>
452
452
453
453
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.
460
461
461
462
For the purposes of the <a>object size negotiation</a> algorithm, the paint image has no
462
463
<a>intrinsic dimensions</a> .
@@ -475,8 +476,8 @@ Note: See [[css-images-3#object-sizing-examples]] for examples on how the <a>con
475
476
The <a>draw a paint image</a> function may be speculatively invoked by the user agent at any point,
476
477
with any |snappedConcreteObjectSize|. The resulting image is not displayed.
477
478
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.
480
481
481
482
Note: Although the image is not displayed, it may still be cached, and subsequent invocations of
482
483
<<paint()>> may use the cached image.
@@ -1003,3 +1004,13 @@ registerPaint('overdraw', class {
1003
1004
}
1004
1005
});
1005
1006
</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