More first-letter reftests
authorsmontagu@smontagu.org
Wed, 05 Dec 2007 00:17:30 -0800
changeset 8760 7b8c4eeac828f7135dd155065d1add6716f82535
parent 8759 5ce73b2b22714f074139d724f8c49162f2480d53
child 8761 349bb9f018bc6810cfb5b797f6da157b2510c611
push idunknown
push userunknown
push dateunknown
milestone1.9b2pre
More first-letter reftests
layout/reftests/first-letter/23605-1-ref.html
layout/reftests/first-letter/23605-1.html
layout/reftests/first-letter/23605-2-ref.html
layout/reftests/first-letter/23605-2.html
layout/reftests/first-letter/23605-3-ref.html
layout/reftests/first-letter/23605-3.html
layout/reftests/first-letter/23605-4-ref.html
layout/reftests/first-letter/23605-4.html
layout/reftests/first-letter/23605-5-ref.html
layout/reftests/first-letter/23605-5.html
layout/reftests/first-letter/23605-6-ref.html
layout/reftests/first-letter/23605-6.html
layout/reftests/first-letter/329069-1-ref.html
layout/reftests/first-letter/329069-1.html
layout/reftests/first-letter/329069-2-ref.html
layout/reftests/first-letter/329069-2.html
layout/reftests/first-letter/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-1-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+   p:first-letter { color: red; }
+  </style>
+</head>
+<body>
+  <p>[Text]</p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-2-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+   p:first-letter { color: red; }
+  </style>
+</head>
+<body>
+  <p>"Text"</p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-3-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-3.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+   p:first-letter { color: red; }
+  </style>
+</head>
+<body>
+  <p>&ldquo;Text&rdquo;</p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-4-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-4.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+   p:first-letter { color: red; }
+  </style>
+</head>
+<body>
+  <p>&sbquo;Text&sbquo;</p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-5-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-5.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-6-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/23605-6.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+   p:first-letter { color: red; }
+  </style>
+</head>
+<body>
+  <p>"'[Text]'"</p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/329069-1-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/329069-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <style>
+   p:first-letter { color: red; }
+  </style>
+</head>
+<body>
+  <p>&#x0045;&#x0301;cole</p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/329069-2-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/first-letter/329069-2.html
@@ -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>
--- a/layout/reftests/first-letter/reftest.list
+++ b/layout/reftests/first-letter/reftest.list
@@ -17,8 +17,15 @@ fails == quote-1b.html quote-1-ref.html
 fails == quote-1c.html quote-1-ref.html
 == quote-1c.html quote-1b.html
 fails == quote-1d.html quote-1-ref.html
 random == quote-1d.html quote-1b.html
 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