Chrome Version: (copy from chrome://version)
OS: (e.g. Win10, MacOS 10.12, etc...)
What steps will reproduce the problem?
(1) Start Chrome with LayoutNG enabled
(2) Navigate to data:text/html, <div id="first">one <span id="start"></span>two three</div>
(3) Inspect the offsetLeft/Top property of the span
What is the expected result?
Should get non-zero result.
What happens instead?
Got 0.
Note that the spec isn't clear about what to return when the element doesn't have any box:
https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetleft:
"... Return the result of subtracting ... from the x-coordinate of
the left border edge of the first CSS layout box associated with
the element ..."
Comment 1 by e...@chromium.org
, Oct 26