W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

Re: [csswg-drafts] [cssom-view] Let offsetWidth / offsetHeight report actual size? (#4541)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 18 Mar 2020 17:09:04 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-600753213-1584551342-sysbot+gh@w3.org>
@dbaron suggested several additional tests to make sure of exactly what behavior was being shown.

1. initial case, `a` with whitespace before and after the `div`: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7826

2. no whitespace inside the `a` at all: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7827

3. text inside the `a`, before and after the `div`: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7828


  <tr><td><th>case 1<th>case 2<th>case 3

So yeah, this consistently shows that Chrome is returning the size of the first layout box (always something preceding the `div`, possibly empty, generated even when there's no ws because there's still an empty layout box there), while Firefox is giving the bounding box of all the fragments.

I haven't tested across multicols, but I think interop is spotty there *anyway*, so I'm not sure how useful such a test would be, considering we already see the break in these tests.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4541#issuecomment-600753213 using your GitHub account
Received on Wednesday, 18 March 2020 17:09:05 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC