gecko-dev/testing/web-platform/tests/css/css-sizing/orthogonal-writing-mode-float-in-inline.html
Morten Stenshorne 950b6a7eb9 Bug 1480787 [wpt PR 12297] - [LayoutNG] Pass constraint space to inline children for min/max., a=testonly
Automatic update from web-platform-tests[LayoutNG] Pass constraint space to inline children for min/max.

Orthogonal flow root children are going to need to calculate an
extrinsic constraint space. We already got this right for direct block
children, but not for floated children of inline child nodes.

Three tests start to pass, but I wrote a new test as well, that's more
to the point (it used to fail a DCHECK, and then render incorrectly, if
we bypassed that).

Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng
Change-Id: Iffea4e8cb26f41f8b5caac4bbb7185df5f62f7d7
Reviewed-on: https://chromium-review.googlesource.com/1162175
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581188}

--

wpt-commits: 25475a3887220baee22dfef032474040401d84e3
wpt-pr: 12297
2018-08-12 08:17:11 +01:00

14 lines
822 B
HTML

<!DOCTYPE html>
<title>Shrink-to-fit float inside inline inside a shrink-to-fit-container</title>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<meta name="assert" content="This tests that intrinsic size calculation realizes that the four words are going to fit on the same line in final layout">
<link rel="help" href="https://www.w3.org/TR/css-sizing-3/#intrinsic-sizes" title="4.1. Intrinsic Sizes">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="float:left; height:100px; background:red;">
<span>
<div style="float:left; writing-mode:vertical-rl; height:100%; line-height:100px; background:green;">
&nbsp; &nbsp; &nbsp; &nbsp;
</div>
</span>
</div>