gecko-dev/testing/web-platform/tests/css/CSS2/floats/zero-available-space-float-positioning.html
Ian Kilpatrick 55a9c57a18 Bug 1569808 [wpt PR 18158] - [LayoutNG] Fix placing floats within zero available space., a=testonly
Automatic update from web-platform-tests
[LayoutNG] Fix placing floats within zero available space.

There was special logic added for zero width inlines in:
https://chromium-review.googlesource.com/c/chromium/src/+/870950/

This logic allowed for zero-width layout opportunities beside floats for
inline-level content.

This also added a TODO saying this was probably wrong for floats.

.... it turned out this was wrong for floats. :)

This adds a flag to switch between these two behaviours.

Bug: 988505
Change-Id: I2db5e0b9cb6f90cb131821ad205728289d9098ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1725309
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682265}

--

wpt-commits: 179f0011944fe49e83669ef7931605a1bbf827ef
wpt-pr: 18158
2019-08-05 14:50:37 +00:00

9 lines
475 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#float-width" title="10.3.5 Floating, non-replaced elements">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div style="width: 0px;">
<div style="float: left; width: 100px; height: 50px; background: green;"></div>
<div style="float: left; width: 100px; height: 50px; background: green;"></div>
</div>