-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[text-box-trim] Add tests for block-in-inline
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
1 parent
6f491c4
commit fe5bef8
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
css/css-inline/text-box-trim/text-box-trim-block-in-inline-start-001-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
29 changes: 29 additions & 0 deletions
29
css/css-inline/text-box-trim/text-box-trim-block-in-inline-start-001.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
29 changes: 29 additions & 0 deletions
29
css/css-inline/text-box-trim/text-box-trim-block-in-inline-start-002.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |