More first-letter reftests

This commit is contained in:
smontagu@smontagu.org 2007-12-05 00:17:30 -08:00
parent fdfed24896
commit 937f4125a6
17 changed files with 209 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.fake-first-letter { color: red; }
</style>
</head>
<body>
<p><span class="fake-first-letter">[T</span>ext]</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
p:first-letter { color: red; }
</style>
</head>
<body>
<p>[Text]</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.fake-first-letter { color: red; }
</style>
</head>
<body>
<p><span class="fake-first-letter">"T</span>ext"</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
p:first-letter { color: red; }
</style>
</head>
<body>
<p>"Text"</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.fake-first-letter { color: red; }
</style>
</head>
<body>
<p><span class="fake-first-letter">&ldquo;T</span>ext&rdquo;</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
p:first-letter { color: red; }
</style>
</head>
<body>
<p>&ldquo;Text&rdquo;</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.fake-first-letter { color: red; }
</style>
</head>
<body>
<p><span class="fake-first-letter">&sbquo;T</span>ext&sbquo;</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
p:first-letter { color: red; }
</style>
</head>
<body>
<p>&sbquo;Text&sbquo;</p>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<!--
See http://lists.w3.org/Archives/Public/www-style/2000Jan/0017.html and
http://www.w3.org/TR/CSS21/selector.html#first-letter
'If the letters that would form the first-letter are not in the same element,
such as "'T" in <p>'<em>T..., the UA may create a first-letter
pseudo-element from one of the elements, both elements, or simply not create
a pseudo-element.'
So it's not necessarily a bug if this test fails, but I'm including it anyway
to track whether the behaviour changes. The current behaviour at the time of
creating the test is that only the first element is included in the
pseudo-element.
-->
<html>
<head>
<style>
span.fake-first-letter { color: red; }
</style>
</head>
<body>
<p><span class="fake-first-letter">[</span><a href="http://www.mozilla.org/">A link to mozilla.org</a> is the
beginning of this paragraph.]</p>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<!--
See http://lists.w3.org/Archives/Public/www-style/2000Jan/0017.html and
http://www.w3.org/TR/CSS21/selector.html#first-letter
'If the letters that would form the first-letter are not in the same element,
such as "'T" in <p>'<em>T..., the UA may create a first-letter
pseudo-element from one of the elements, both elements, or simply not create
a pseudo-element.'
So it's not necessarily a bug if this test fails, but I'm including it anyway
to track whether the behaviour changes. The current behaviour at the time of
creating the test is that only the first element is included in the
pseudo-element.
-->
<html>
<head>
<style>
p:first-letter { color: red; }
</style>
</head>
<body>
<p>[<a href="http://www.mozilla.org/">A link to mozilla.org</a> is the
beginning of this paragraph.]</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.fake-first-letter { color: red; }
</style>
</head>
<body>
<p><span class="fake-first-letter">"'[T</span>ext]'"</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
p:first-letter { color: red; }
</style>
</head>
<body>
<p>"'[Text]'"</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.fake-first-letter { color: red; }
</style>
</head>
<body>
<p><span class="fake-first-letter">&#x0045;&#x0301;</span>cole</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
p:first-letter { color: red; }
</style>
</head>
<body>
<p>&#x0045;&#x0301;cole</p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
span.fake-first-letter { color: red; }
</style>
</head>
<body>
<p><span class="fake-first-letter">&#x1101;&#x1170;&#x11B7;</span></p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<style>
p:first-letter { color: red; font-size: 200%; }
</style>
</head>
<body>
<p>&#x1101;&#x1170;&#x11B7;</p>
</body>
</html>

View File

@ -22,3 +22,10 @@ fails == dynamic-1.html dynamic-1-ref.html # bug 8253
== dynamic-2.html dynamic-2-ref.html
== dynamic-3a.html dynamic-3-ref.html
random == dynamic-3b.html dynamic-3-ref.html
== 23605-1.html 23605-1-ref.html
== 23605-2.html 23605-2-ref.html
== 23605-3.html 23605-3-ref.html
== 23605-4.html 23605-4-ref.html
== 23605-5.html 23605-5-ref.html
== 23605-6.html 23605-6-ref.html
== 329069-1.html 329069-1-ref.html