Update web-platform-tests to revision b'4435c35d9085ed2be61e64d0093b8e1b0e7a877b'

This commit is contained in:
WPT Sync Bot 2022-11-25 01:21:31 +00:00
parent 901b76297d
commit 4031d79cea
383 changed files with 8858 additions and 2734 deletions

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with over ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 22px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc <ruby>xyz<rt>XYZ</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with over ruby overflow</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
rt { font-size: 80px; }
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 92px;
width: 80px;
}
.surrounding { display:inline-block; }
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
<div class="surrounding">bc <ruby>xyz<rt>X</rt></ruby></div>
def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with over ruby overflow</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-drop-over-ruby-tall-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
rt { font-size: 80px; }
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc <ruby>xyz<rt>X</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with over ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-drop-over-ruby-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc <ruby>xyz<rt>XYZ</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with under ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
ruby { ruby-position: under; }
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc <ruby>xyz<rt>XYZ</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with under ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
rt { font-size: 80px; }
ruby { ruby-position: under; }
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
.surrounding { display:inline-block; margin-bottom: -2px; }
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
<div class="surrounding">bc <ruby>xyz<rt>X</rt></ruby></div>
def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with under ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-drop-under-ruby-tall-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
rt { font-size: 80px; }
ruby { ruby-position: under; }
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc <ruby>xyz<rt>X</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with under ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-drop-under-ruby-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
ruby { ruby-position: under; }
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc <ruby>xyz<rt>XYZ</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with margin in LTR</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-bottom: 30px;
margin-left: 15px;
margin-right: 45px;
margin-top: 24px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with margin in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: right;
height: 80px;
margin-bottom: 30px;
margin-left: 15px;
margin-right: 45px;
margin-top: 24px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with margin in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-margins-rtl-ref.html">
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
.initial-letter::first-letter {
margin-top: 10px;
margin-bottom: 30px;
margin-left: 15px;
margin-right: 45px;
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with margin in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-lr;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-bottom: 30px;
margin-left: 23px;
margin-right: 45px;
margin-top: 10px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with margin in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-margins-vlr-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-lr;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
.initial-letter::first-letter {
margin-top: 10px;
margin-bottom: 30px;
margin-left: 15px;
margin-right: 45px;
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with margin in vertical-rl</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-rl;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-bottom: 30px;
margin-left: 15px;
margin-right: 53px;
margin-top: 10px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with margin in vertical-rl</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-margins-vrl-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-rl;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
.initial-letter::first-letter {
margin-top: 10px;
margin-bottom: 30px;
margin-left: 15px;
margin-right: 45px;
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with margin in LTR</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-margins-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
.initial-letter::first-letter {
margin-top: 10px;
margin-bottom: 30px;
margin-left: 15px;
margin-right: 45px;
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with over ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
.surrounding {
display:inline-block;
margin-top: -16px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div><br><br><br>
<div class="surrounding">bc <ruby>xyz<rt>XYZ</rt></ruby></div>
def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with over ruby overflow</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
rt { font-size: 80px; }
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 20px;
width: 80px;
}
.surrounding { display:inline-block; }
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
<div class="surrounding">bc <ruby>xyz<rt>X</rt></ruby></div>
def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with over ruby overflow</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-raise-over-ruby-tall-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
rt { font-size: 80px; }
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc <ruby>xyz<rt>X</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with over ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-raise-over-ruby-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc <ruby>xyz<rt>XYZ</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with under ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
ruby { ruby-position: under; }
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
.surrounding {
display:inline-block;
margin-top: -16px;
margin-bottom: -2px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div><br><br><br>
<div class="surrounding">bc <ruby>xyz<rt>XYZ</rt></ruby></div>
def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with under ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
rt { font-size: 80px; }
ruby { ruby-position: under; }
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
.surrounding { display:inline-block; margin-top: 72px; margin-bottom: -2px; }
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
<div class="surrounding">bc <ruby>xyz<rt>X</rt></ruby></div>
def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with under ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-raise-under-ruby-tall-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
rt { font-size: 80px; }
ruby { ruby-position: under; }
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc <ruby>xyz<rt>X</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter with under ruby</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-block-position-raise-under-ruby-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
ruby { ruby-position: under; }
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc <ruby>xyz<rt>XYZ</rt></ruby><br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter drop initial</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#drop-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter drop initial in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#drop-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: right;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter drop initial in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#drop-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-drop-initial-rtl-ref.html">
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter drop initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#drop-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-lr;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-left: 8px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter drop initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#drop-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-drop-initial-vlr-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-lr;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter drop initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#drop-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-rl;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-right: 8px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter drop initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#drop-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-drop-initial-vrl-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-rl;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter drop initial</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#drop-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-drop-initial-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter indentation</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#indentation">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-left: 20px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter indentation in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#indentation">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: right;
height: 80px;
margin-right: 20px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter indentation in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#indentation">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-indentation-rtl-ref.html">
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
.sample {
text-indent: 10px;
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter indentation</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#indentation">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-indentation-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
.sample {
text-indent: 10px;
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div><br><br><br>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: right;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div><br><br><br>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-raise-initial-rtl-ref.html">
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-lr;
}
.fake-initial-letter {
background: lime;
display: inline-block;
height: 80px;
margin-left: 8px;
margin-right: 8px;
width: 80px;
}
.remainder {
display: inline-block;
vertical-align: top;
margin-top: -20px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
<div class="remainder">bc</div><br>
def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-raise-initial-vlr-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-lr;
}
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-rl;
}
.fake-initial-letter {
background: lime;
display: inline-block;
height: 80px;
margin-left: 8px;
margin-right: 8px;
width: 80px;
}
.remainder {
display: inline-block;
vertical-align: bottom;
margin-top: -20px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
<div class="remainder">bc</div><br>
def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-raise-initial-vrl-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-rl;
}
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-raise-initial-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial should not overlap with previous line.</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raised-sunken-caps">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div>This line before initial letter.</div>
<div class="sample">
<div class="fake-initial-letter"></div><br><br><br>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter raise initial should not overlap with previous line.</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raised-sunken-caps">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-raised-sunken-caps-raise-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 raise;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div>This line before initial letter.</div>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunken initial should not overlap with previous line.</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raised-sunken-caps">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div>This line before initial letter.</div>
<div class="sample">
<div class="fake-initial-letter"></div><br><br>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunken initial should not overlap with previous line.</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#raised-sunken-caps">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-raised-sunken-caps-sunken-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 2;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div>This line before initial letter.</div>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter subsequent paragraph clears initial letter.</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#short-para-initial-letter">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample"><div class="fake-initial-letter"></div>bc<br>Def<br></div>
<div class="sample" style="padding-top:44px"><div class="fake-initial-letter"></div>XY<br>ABC<br></div>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter subsequent paragraph clears initial letter.</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#short-para-initial-letter">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-short-para-initial-letter-clears-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">Abc<br>Def<br></div>
<div class="sample initial-letter">WXY<br>ABC</div>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter subsequent paragraph wraps initial letter.</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#short-para-initial-letter">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample"><div class="fake-initial-letter"></div>bc</div>
<div>subsequent paragraph</div>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter subsequent paragraph wraps initial letter.</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#short-para-initial-letter">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-short-para-initial-letter-wraps-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 drop;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">Abc</div>
<div>subsequent paragraph</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunken initial</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div><br><br>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunk initial in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.fake-initial-letter {
background: lime;
float: right;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div><br><br>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunk initial in RTL</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-sunk-initial-rtl-ref.html">
<style>
.sample {
border: solid 1px green;
direction: rtl;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 2;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunk initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-lr;
}
.fake-initial-letter {
background: lime;
display: inline-block;
height: 80px;
margin-left: 8px;
margin-right: 8px;
width: 80px;
}
.remainder {
display: inline-block;
margin-left: 48px;
margin-top: -20px;
vertical-align: bottom;
}
.remainder2 {
display: inline-block;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
<div class="remainder">bc<br>def<br></div><br>
<div class="remainder2">ghi<br>jkl<br>mno<br></div>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunk initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-sunk-initial-vlr-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-lr;
}
.initial-letter::first-letter {
initial-letter: 3 2;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunk initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-rl;
}
.fake-initial-letter {
background: lime;
display: inline-block;
height: 80px;
margin-left: 8px;
margin-right: 8px;
width: 80px;
}
.remainder {
display: inline-block;
margin-right: 48px;
margin-top: -20px;
vertical-align: top;
}
.remainder2 {
display: inline-block;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
<div class="remainder">bc<br>def</div><br>
<div class="remainder2">ghi<br>jkl<br>mno<br></div>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunk initial in vertical-lr</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-sunk-initial-vrl-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
height: 230px;
line-height: 24px;
writing-mode: vertical-rl;
}
.initial-letter::first-letter {
initial-letter: 3 2;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter sunken initial</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-sunk-initial-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 2;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter should take ::first-line style</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 {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.sample::first-line { color: cyan; }
.fake-initial-letter {
background: cyan;
float: left;
height: 80px;
margin-top: 14px;
width: 80px;
}
</style>
</head>
<body>
<div class="sample">
<div class="fake-initial-letter"></div>
bc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Tests initial letter should take ::first-line style</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" >
<link rel="match" href="initial-letter-with-first-line-ref.html">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.sample::first-line { color: cyan; }
.initial-letter::first-letter {
initial-letter: 3 drop;
color: inherit;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>