Files
firefox/testing/web-platform/tests/css/CSS2/abspos/between-float-and-text.html
T
Morten Stenshorne e4af769f14 Bug 1471744 [wpt PR 11697] - [LayoutNG] Non-"inline" abspos needs to ignore floats and text-indent., a=testonly
Automatic update from web-platform-tests[LayoutNG] Non-"inline" abspos needs to ignore floats and text-indent.

This fixes two tests, but will also eventually benefit
floats-wrap-inside-inline-00[1234].htm in fast/block/float/, which are
currently passing because the absolutely positioned box in the test forces
its container to have block children. There's special-code for NG (which we
should remove) in LayoutBlockFlow::AddChild() that forces this (and causes
other problems).

Added a new test, to make it clear what this fix is about.

Bug: 734554
Cq-Include-Trybots: luci.chromium.try :linux_layout_tests_layout_ng
Change-Id: Ia2c0e0b2ab61999207114fdf935880fabc2e677c
Reviewed-on: https://chromium-review.googlesource.com/1116959
Reviewed-by: Aleks Totic <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Commit-Queue: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#571054}

--

wpt-commits: 12b9b4c9d40504a6d5df9339d7680a8a89184f18
wpt-pr: 11697
MozReview-Commit-ID: 9VzFxid8Ry8
2018-07-11 08:01:02 +01:00

12 lines
708 B
HTML

<!DOCTYPE html>
<title>Auto-positioned abspos after text, before float</title>
<link rel="author" title="Morten Stenshorne" href="[email protected]">
<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements">
<link rel="match" href="../../reference/ref-filled-green-200px-square.html">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="line-height:20px; margin-top:-20px;">
&nbsp;
<div style="position:absolute; width:200px; height:200px; background:green;"></div>
<div style="float:left; margin-top:20px; width:200px; height:200px; background:red;"></div>
</div>