Skip to content

Commit 19c8f75

Browse files
bfgeekchromium-wpt-export-bot
authored andcommitted
[baselines] Fix synthesising vertical baselines for flex.
Previously we always synthesized baselines (outsize an inline formatting context) using the block-end edge. This changes the behaviour to use the middle if in a vertical writing mode. This isn't "complete" as it is still missing the text-orientation logic, but significantly better. Bug: 1076080 Change-Id: I14f5aea5adb4f3afcd9194b6f4f9b54addeb54ea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2905738 Reviewed-by: David Grogan <[email protected]> Reviewed-by: Koji Ishii <[email protected]> Reviewed-by: Kurt Catti-Schmidt <[email protected]> Commit-Queue: Ian Kilpatrick <[email protected]> Cr-Commit-Position: refs/heads/master@{#886062}
1 parent c21b0b8 commit 19c8f75

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://drafts.csswg.org/css-align-3/#generate-baselines">
3+
<link rel="help" href="https://www.w3.org/TR/css-inline-3/#valdef-dominant-baseline-auto">
4+
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
5+
<style>
6+
#inline-block {
7+
display: inline-block;
8+
width: 100px;
9+
height: 50px;
10+
background: green;
11+
}
12+
13+
#inline-flex {
14+
display: inline-flex;
15+
}
16+
17+
#inline-flex > div {
18+
width: 100px;
19+
height: 50px;
20+
background: green;
21+
}
22+
</style>
23+
<p>Test passes if there is a filled green square.</p>
24+
<div style="width: 100px; height: 100px; line-height: 0; writing-mode: vertical-rl; background: red;">
25+
<span id="inline-block"></span><span id="inline-flex"><div></div></span>
26+
</div>

0 commit comments

Comments
 (0)