[csswg-drafts] [cssom-view] Clarify Element.getClientRects

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

== [cssom-view] Clarify Element.getClientRects ==
https://github.com/w3c/web-platform-tests/pull/6264#issuecomment-309974355 added a test that verifies that source lines do not affect the result (well, the number of items in the returned list) of Element.getClientRects()

Originally, the issue from which the test originated is https://crbug.com/167261 -
Would return a list of two items, while -
<span>test test</span>
Would return a list of a single item.

@kojiishi argues that the specification does not mandate that the rendered lines are to be returned, but box fragments instead (which may translate to source lines, in the first case).

Source lines are not at all helpful to anything in a non-preformatted element. And if it is a preformatted element, the source line would show up as rendered lines.
So I believe the goal of Element.getClientRects is (and the specified goal should be) to disregard source lines.

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

Received on Wednesday, 21 June 2017 06:30:31 UTC