Skip to content

Commit 59563ba

Browse files
kojiishimoz-wptsync-bot
authored andcommitted
Bug 1897393 [wpt PR 46340] - [text-box-trim] Test accumulations, a=testonly
Automatic update from web-platform-tests [text-box-trim] Test accumulations This patch adds a test for when the element to trim has different `text-box-edge` value from the `text-box-edge` value of the element that has `text-box-trim`. Discussed and resolved at: w3c/csswg-drafts#5426 Bug: 40254880 Change-Id: I5685fbaebddb8c7429b3b041c5fe0f88b982fc3d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5547563 Auto-Submit: Koji Ishii Reviewed-by: Kent Tamura Commit-Queue: Kent Tamura Cr-Commit-Position: refs/heads/main@{#1303166} -- wpt-commits: 5e6793faa62943090d88eca7fa6390219f06832d wpt-pr: 46340
1 parent 5f188ab commit 59563ba

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
>
2+
<title>Test choosing the innermost for `text-box-trim` for requested trim metrictitle>
3+
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge">
4+
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim">
5+
<link rel="match" href="text-box-trim-start-001-ref.html?class=text">
6+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
7+
<style>
8+
.spacer {
9+
block-size: 100px;
10+
background: lightgray;
11+
}
12+
.target {
13+
font-family: Ahem;
14+
font-size: 100px;
15+
line-height: 2;
16+
text-box-trim: start;
17+
text-box-edge: leading;
18+
}
19+
.inner {
20+
text-box-edge: text;
21+
}
22+
style>
23+
<div class="spacer">div>
24+
<div class="target">
25+
30+
<div class="inner">Adiv>
31+
div>
32+
<div class="spacer">div>

0 commit comments

Comments
 (0)