Skip to content

Commit

Permalink
[block-in-inline] Propagate baselines from block-in-inline
Browse files Browse the repository at this point in the history
Block-in-inline is the only case where a line box may have
different and optional first and last baselines.

This patch propagtes them from block-in-inline correctly.

Bug: 716930
Change-Id: I4eab225c7456ca31542a0187cb818568abafdb15
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3149290
Commit-Queue: Koji Ishii <kojii@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Auto-Submit: Koji Ishii <kojii@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#919385}
  • Loading branch information
kojiishi authored and chromium-wpt-export-bot committed Sep 8, 2021
1 parent 00eaeb7 commit 149d0e5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions css/CSS2/normal-flow/block-in-inline-baseline-001-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<body>
text
<div style="display: inline-block; background: orange; width: 100px;">
content
<div style="border: solid; height: 20px;"></div>
</div>
</body>
13 changes: 13 additions & 0 deletions css/CSS2/normal-flow/block-in-inline-baseline-001.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" />
<link rel="match" href="block-in-inline-baseline-001-ref.html"/>
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org" />
<body>
text
<div style="display: inline-block; background: orange; width: 100px;">
content
<span>
<div style="border: solid; height: 20px;"></div>
</span>
</div>
</body>

0 comments on commit 149d0e5

Please sign in to comment.