[css-houdini-drafts] [css-paint-api] Specify explicitly that PaintSize.{width, height} may be fractional

chrishtr has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-paint-api] Specify explicitly that PaintSize.{width, height} may be fractional ==
The paint API specifies that the width and height fields of PaintInfo are doubles, but
elsewhere in the spec (https://drafts.css-houdini.org/css-paint-api/#2d-rendering-context)
says to "Set bitmap dimensions for the context’s output bitmap to width and height", which
implies that the width and height are integers.

Instead, I suggest that phrase should be changed to "Set bitmap dimensions for the context’s output bitmap to the rounded values of width and height".

(Note: the actual device-pixel backing buffer may have a different size than the output bitmap. This
is accounted for by devicePixelRatio.)

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/479 using your GitHub account

Received on Saturday, 14 October 2017 22:05:35 UTC