Skip to content

Commit 9083615

Browse files
xidachenbfgeek
authored andcommitted
[PaintWorklet] Explicitly state the PaintSize could be fractional
1 parent e07b92c commit 9083615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-paint-api/Overview.bs

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

0 commit comments

Comments
 (0)