gecko-dev/testing/web-platform/tests/css/css-writing-modes/two-levels-of-orthogonal-flows.html
Morten Stenshorne e3e64b1e52 Bug 1468157 [wpt PR 11417] - [LayoutNG] Orthogonal flows need available inline size for min/max calculation., a=testonly
Automatic update from web-platform-tests[LayoutNG] Orthogonal flows need available inline size for min/max calculation.

Provide a suitable constraint space when calculating min/max inline
sizes for an orthogonal flow root. ComputeMinMaxSize() in NGBlockNode
typically ended up creating its zero-sized constraint space, which would
typically result in large block sizes (since there'd e.g. only be space
for one word per line).

Set percentage resolution size too, instead of leaving it at 0x0.
Percentages are often unresolvable (i.e. indefinite), in which case we
should of course refrain from resolving them, rather than resolving the
percentage against zero (which we used to do).

Add a DCHECK that we're always provided with a constraint space when
calculating min/max for orthogonal flows, as using the zero-size one
will not produce the correct result.

Bug: 848225
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: Ic0aac380b2b733d3a55b25396c89584e4468899d
Reviewed-on: https://chromium-review.googlesource.com/1090845
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Aleks Totic <atotic@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565446}

--

wpt-commits: ce22baff58c81ab98f3cbd2ac390e51e755fd9f9
wpt-pr: 11417
2018-07-04 18:14:55 +01:00

16 lines
840 B
HTML

<!DOCTYPE html>
<title>Two levels of writing mode roots with text inside, no constraints</title>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-sizing-3/#intrinsic" title="4. Intrinsic Size Determination">
<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1. Available Space in Orthogonal Flows">
<link rel="match" href="reference/two-levels-of-orthogonal-flows.html">
<p>There should be three lines below. The middle line should have a
yellow background (but otherwise be exactly like the two others,
i.e. no extra height or anything like that)</p>
A B C D E F G
<div style="writing-mode:vertical-rl; background:yellow;">
<div style="writing-mode:horizontal-tb;">
A B C D E F G
</div>
</div>
A B C D E F G