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

@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


Results:

<table>
 <thead>
  <tr><td><th>case 1<th>case 2<th>case 3
 <tbody>
  <tr><th>Chrome<td>0x0<td>0x0<td>7x17
  <tr><th>Firefox<td>40x40<td>40x40<td>40x75
</table>

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