[csswg-drafts] [cssom-view] should define rounding better (#4025)

dbaron has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] should define rounding better ==
Many definitions in cssom-view (for example, the [definition of `offsetWidth`](https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetwidth)) should describe the rounding that needs to be performed.  To take `offsetWidth` as an example:
* the property is a `long`
* the spec's definition says:
    > Return the border edge width of the first CSS layout box associated with the element, ignoring any transforms that apply to the element and its ancestors.
* the thing described by the spec as the result is often not an integer.  (For that matter, the spec doesn't even say what units to use for the width!)

The spec ought to describe what sort of rounding is performed (round-to-nearest, floor, etc.), likely through the use of terms that could be reused elsewhere (see, say, whatwg/html#4072, which led me to file this).

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

Received on Monday, 10 June 2019 20:59:45 UTC