Automatic update from web-platform-tests Fix tab-size to be based on space width of containing block ancestor This CL updates tab-size to be based on the width of the space of the containing block ancestor. Spec: https://drafts.csswg.org/css-text-3/#tab-size-property Bug: 40791754 Change-Id: Ia1484a730cdcec2442661e3e0650186521a1bd9e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6658122 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/main@{#1484577} -- wpt-commits: f9fe9ded8cc0b19885c5cd789f03193ebe1c837f wpt-pr: 53689
40 lines
950 B
HTML
40 lines
950 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Tests initial letter should handle tabular character</title>
|
|
<link rel="author" title="Google LLC" href="https://www.google.com/">
|
|
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-styling">
|
|
<meta name="flags" content="ahem">
|
|
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
|
|
<style>
|
|
.sample {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.fake-initial-letter {
|
|
background: lime;
|
|
float: left;
|
|
height: 80px;
|
|
margin-top: 2px;
|
|
width: 80px;
|
|
}
|
|
|
|
.fake-initial-letter-tab {
|
|
background: yellow;
|
|
float: left;
|
|
height: 80px;
|
|
margin-top: 2px;
|
|
width: 160px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="sample"><div class="fake-initial-letter-tab"></div>
|
|
<div class="fake-initial-letter"></div>
|
|
bc<br>def<br>ghi<br>jkl<br>mno<br>
|
|
</div>
|
|
</body>
|
|
</html>
|