Skip to content

Commit

Permalink
[text-box-trim] Add tests for block-in-inline
Browse files Browse the repository at this point in the history
This patch adds tests for `text-box-trim: start` applying to
blocks in inline container.

This patch has no behavior changes.

Bug: 40254880
Change-Id: I7d9c1e3f60856b5b9002c608d4b0599f10cd765d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5587757
Reviewed-by: Lingqi Chi <[email protected]>
Auto-Submit: Koji Ishii <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Commit-Queue: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1308528}
  • Loading branch information
kojiishi authored and chromium-wpt-export-bot committed May 31, 2024
1 parent 6f491c4 commit fe5bef8
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
background: lightgray;
block-size: 50px;
}
.target {
font-family: Ahem;
font-size: 50px;
line-height: 2;
position: relative;
top: -25px;
height: 275px;
}
</style>
<div class="spacer"></div>
<div class="target">
<span>
<div>
A<br>
A
</div>
</span>
A
</div>
<div class="spacer"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim">
<link rel="match" href="text-box-trim-block-in-inline-start-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
background: lightgray;
block-size: 50px;
}
.target {
font-family: Ahem;
font-size: 50px;
line-height: 2;
text-box-trim: start;
text-box-edge: text;
}
</style>
<div class="spacer"></div>
<div class="target">
<span>
<div>
A<br>
A
</div>
</span>
A
</div>
<div class="spacer"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim">
<link rel="match" href="text-box-trim-block-in-inline-start-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
background: lightgray;
block-size: 50px;
}
.target {
font-family: Ahem;
font-size: 50px;
line-height: 2;
text-box-trim: start;
text-box-edge: text;
}
</style>
<div class="spacer"></div>
<div class="target">
A
<span>
<div>
A<br>
A
</div>
</span>
</div>
<div class="spacer"></div>

0 comments on commit fe5bef8

Please sign in to comment.