Skip to content

Commit de21c7f

Browse files
kojiishichromium-wpt-export-bot
authored andcommitted
[block-in-inline] Add tests for text-indent
The `text-indent` property handles the "first formatted line" differently. This patch adds a test when the `text-indent` property is applied to block-in-inline. r920106 crrev.com/c/3152716 added tests for `::first-line`. This patch tests the same logic but using the `text-indent` property. Bug: 716930 Change-Id: I60874b9ae4b91b6352c97c36d434bc40f2259219 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3198017 Commit-Queue: Koji Ishii <[email protected]> Auto-Submit: Koji Ishii <[email protected]> Reviewed-by: Ian Kilpatrick <[email protected]> Cr-Commit-Position: refs/heads/main@{#927414}
1 parent fff0a7e commit de21c7f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<style>
3+
section {
4+
width: 10ch;
5+
}
6+
.indent {
7+
text-indent: 5ch;
8+
}
9+
</style>
10+
<body>
11+
<section>
12+
<div class="indent">123 456789</div>
13+
<div class="indent">123 456789</div>
14+
<div>123 456789</div>
15+
</section>
16+
</body>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<meta name="assert" content="Test if `text-indent` handles block-in-inline correctly">
3+
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" />
4+
<link rel="match" href="block-in-inline-first-line-002-ref.html"/>
5+
<link rel="author" title="Koji Ishii" href="mailto:[email protected]" />
6+
<style>
7+
section {
8+
width: 10ch;
9+
}
10+
.indent {
11+
text-indent: 5ch;
12+
}
13+
</style>
14+
<body>
15+
<section class="indent">
16+
<span>
17+
123 456789
18+
<div>123 456789</div>
19+
123 456789
20+
</span>
21+
</section>
22+
</body>

0 commit comments

Comments
 (0)