mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
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
19 lines
953 B
HTML
19 lines
953 B
HTML
<!DOCTYPE html>
|
|
<title>Three 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/three-levels-of-orthogonal-flows.html">
|
|
<p>The yellow box should be in the top right corner of the hotpink box.</p>
|
|
<div style="writing-mode:vertical-rl; width:30em; height:30em; background:hotpink;">
|
|
<div style="writing-mode:horizontal-tb;">
|
|
<div style="writing-mode:vertical-rl; background:yellow;">
|
|
<div style="visibility:hidden;">
|
|
Roses are red,<br>
|
|
violets are blue.<br>
|
|
All my base<br>
|
|
are belong to you.<br>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|