summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-import
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-import')
-rw-r--r--layout/reftests/css-import/290018-1.html13
-rw-r--r--layout/reftests/css-import/290018-ref.html11
-rw-r--r--layout/reftests/css-import/436261-1.html15
-rw-r--r--layout/reftests/css-import/436261-2.html12
-rw-r--r--layout/reftests/css-import/436261-3.html21
-rw-r--r--layout/reftests/css-import/436261-ref.html6
-rw-r--r--layout/reftests/css-import/444723-1.html20
-rw-r--r--layout/reftests/css-import/444723-2.html20
-rw-r--r--layout/reftests/css-import/444723-ref.html12
-rw-r--r--layout/reftests/css-import/445415-1-ref.xhtml12
-rw-r--r--layout/reftests/css-import/445415-1a.xhtml19
-rw-r--r--layout/reftests/css-import/445415-1b.xhtml19
-rw-r--r--layout/reftests/css-import/445415-2-ref.xhtml12
-rw-r--r--layout/reftests/css-import/445415-2a.xhtml19
-rw-r--r--layout/reftests/css-import/445415-2b.xhtml19
-rw-r--r--layout/reftests/css-import/inner-sheet.css2
-rw-r--r--layout/reftests/css-import/other-outermost-sheet.css3
-rw-r--r--layout/reftests/css-import/outer-sheet.css2
-rw-r--r--layout/reftests/css-import/outermost-sheet.css3
-rw-r--r--layout/reftests/css-import/reftest-stylo.list16
-rw-r--r--layout/reftests/css-import/reftest.list10
21 files changed, 266 insertions, 0 deletions
diff --git a/layout/reftests/css-import/290018-1.html b/layout/reftests/css-import/290018-1.html
new file mode 100644
index 000000000..e98535f1e
--- /dev/null
+++ b/layout/reftests/css-import/290018-1.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<body>
+ <iframe></iframe>
+ <script>
+ var win = window.frames[0];
+ win.document.open();
+ win.document.write("<!DOCTYPE html><html><head></head><body></body></html>");
+ win.document.close();
+ win.document.body.innerHTML = "<link rel='stylesheet' type='text/css' href='outer-sheet.css' />";
+ win.document.body.innerHTML += "<p style='padding:2px'>test</p>";
+ </script>
+</body>
+
diff --git a/layout/reftests/css-import/290018-ref.html b/layout/reftests/css-import/290018-ref.html
new file mode 100644
index 000000000..30e4f9b2e
--- /dev/null
+++ b/layout/reftests/css-import/290018-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<body>
+ <iframe></iframe>
+ <script>
+ var win = window.frames[0];
+ win.document.open();
+ win.document.write("<!DOCTYPE html><html><head><link rel='stylesheet' type='text/css' href='outer-sheet.css' /></head><body><p style='padding:2px'>test</p></body></html>");
+ win.document.close();
+ </script>
+</body>
+
diff --git a/layout/reftests/css-import/436261-1.html b/layout/reftests/css-import/436261-1.html
new file mode 100644
index 000000000..fa13935ae
--- /dev/null
+++ b/layout/reftests/css-import/436261-1.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <body>
+ <script type="text/javascript">
+ var el = document.createElement("link");
+ el.type = "text/css";
+ el.rel = "stylesheet";
+ el.href = "outer-sheet.css";
+ var h = document.getElementsByTagName("HEAD")[0];
+ h.appendChild(el);
+ el.title = "theme"; // comment this line to make the test work!
+ </script>
+ <p>test</p>
+ </body>
+</html>
diff --git a/layout/reftests/css-import/436261-2.html b/layout/reftests/css-import/436261-2.html
new file mode 100644
index 000000000..7f87b9792
--- /dev/null
+++ b/layout/reftests/css-import/436261-2.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <link type="text/css" rel="stylesheet" media="print"
+ href="outer-sheet.css">
+ <link type="text/css" rel="stylesheet" media="screen"
+ href="outer-sheet.css">
+ </head>
+ <body>
+ <p>test</p>
+ </body>
+</html>
diff --git a/layout/reftests/css-import/436261-3.html b/layout/reftests/css-import/436261-3.html
new file mode 100644
index 000000000..dbdcf61bd
--- /dev/null
+++ b/layout/reftests/css-import/436261-3.html
@@ -0,0 +1,21 @@
+<html>
+ <body>
+ <script type="text/javascript">
+ var el = document.createElement("link");
+ el.type = "text/css";
+ el.rel = "stylesheet";
+ el.media = "print"
+ el.href = "outer-sheet.css";
+ var h = document.getElementsByTagName("HEAD")[0];
+ h.appendChild(el);
+
+ el = document.createElement("link");
+ el.type = "text/css";
+ el.rel = "stylesheet";
+ el.href = "outer-sheet.css";
+ var h = document.getElementsByTagName("HEAD")[0];
+ h.appendChild(el);
+ </script>
+ <p>test</p>
+ </body>
+</html>
diff --git a/layout/reftests/css-import/436261-ref.html b/layout/reftests/css-import/436261-ref.html
new file mode 100644
index 000000000..9db25a60f
--- /dev/null
+++ b/layout/reftests/css-import/436261-ref.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<html>
+ <body>
+ <p style="background-color: green; color: white">test</p>
+ </body>
+</html>
diff --git a/layout/reftests/css-import/444723-1.html b/layout/reftests/css-import/444723-1.html
new file mode 100644
index 000000000..fe6ab1ed7
--- /dev/null
+++ b/layout/reftests/css-import/444723-1.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<head>
+<link rel="stylesheet" media="screen" type="text/css"
+ href="outermost-sheet.css" title="A"/>
+<link rel="alternate stylesheet" media="screen" type="text/css"
+ href="outer-sheet.css" title="B"/>
+
+</head>
+
+<body>
+ <ul>
+ <li class="outermost">purple</li>
+ <li class="outer">blue</li>
+ <li class="inner">yellow</li>
+ </ul>
+</body>
+</html>
diff --git a/layout/reftests/css-import/444723-2.html b/layout/reftests/css-import/444723-2.html
new file mode 100644
index 000000000..3630b92be
--- /dev/null
+++ b/layout/reftests/css-import/444723-2.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<head>
+<link rel="alternate stylesheet" media="screen" type="text/css"
+ href="outer-sheet.css" title="B"/>
+<link rel="stylesheet" media="screen" type="text/css"
+ href="outermost-sheet.css" title="A"/>
+
+</head>
+
+<body>
+ <ul>
+ <li class="outermost">purple</li>
+ <li class="outer">blue</li>
+ <li class="inner">yellow</li>
+ </ul>
+</body>
+</html>
diff --git a/layout/reftests/css-import/444723-ref.html b/layout/reftests/css-import/444723-ref.html
new file mode 100644
index 000000000..6337ae044
--- /dev/null
+++ b/layout/reftests/css-import/444723-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<body>
+ <ul>
+ <li style="color: purple">purple</li>
+ <li style="color: blue">blue</li>
+ <li style="color: yellow">yellow</li>
+ </ul>
+</body>
+</html>
diff --git a/layout/reftests/css-import/445415-1-ref.xhtml b/layout/reftests/css-import/445415-1-ref.xhtml
new file mode 100644
index 000000000..b1f0b4a8a
--- /dev/null
+++ b/layout/reftests/css-import/445415-1-ref.xhtml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<body>
+<div style="color: purple">purple</div>
+<div style="color: blue">blue</div>
+<div style="color: yellow">yellow</div>
+</body>
+
+</html>
diff --git a/layout/reftests/css-import/445415-1a.xhtml b/layout/reftests/css-import/445415-1a.xhtml
new file mode 100644
index 000000000..61030afc4
--- /dev/null
+++ b/layout/reftests/css-import/445415-1a.xhtml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+ <link rel="stylesheet" type="text/css" href="other-outermost-sheet.css"
+ media="print" />
+ <link rel="stylesheet" type="text/css" href="outermost-sheet.css"
+ media="screen" />
+</head>
+
+<body>
+<div class="outermost">purple</div>
+<div class="outer">blue</div>
+<div class="inner">yellow</div>
+</body>
+
+</html>
diff --git a/layout/reftests/css-import/445415-1b.xhtml b/layout/reftests/css-import/445415-1b.xhtml
new file mode 100644
index 000000000..b12602f39
--- /dev/null
+++ b/layout/reftests/css-import/445415-1b.xhtml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+ <link rel="stylesheet" type="text/css" href="outermost-sheet.css"
+ media="screen" />
+ <link rel="stylesheet" type="text/css" href="other-outermost-sheet.css"
+ media="print" />
+</head>
+
+<body>
+<div class="outermost">purple</div>
+<div class="outer">blue</div>
+<div class="inner">yellow</div>
+</body>
+
+</html>
diff --git a/layout/reftests/css-import/445415-2-ref.xhtml b/layout/reftests/css-import/445415-2-ref.xhtml
new file mode 100644
index 000000000..3ff1fa1d2
--- /dev/null
+++ b/layout/reftests/css-import/445415-2-ref.xhtml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+
+<body>
+<div style="color: cyan">cyan</div>
+<div style="color: blue">blue</div>
+<div style="color: yellow">yellow</div>
+</body>
+
+</html>
diff --git a/layout/reftests/css-import/445415-2a.xhtml b/layout/reftests/css-import/445415-2a.xhtml
new file mode 100644
index 000000000..ce72248c3
--- /dev/null
+++ b/layout/reftests/css-import/445415-2a.xhtml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+
+<head>
+ <link rel="stylesheet" type="text/css" href="other-outermost-sheet.css"
+ media="print" />
+ <link rel="stylesheet" type="text/css" href="outermost-sheet.css"
+ media="screen" />
+</head>
+
+<body>
+<div class="outermost">cyan</div>
+<div class="outer">blue</div>
+<div class="inner">yellow</div>
+</body>
+
+</html>
diff --git a/layout/reftests/css-import/445415-2b.xhtml b/layout/reftests/css-import/445415-2b.xhtml
new file mode 100644
index 000000000..d3a54b732
--- /dev/null
+++ b/layout/reftests/css-import/445415-2b.xhtml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
+
+<head>
+ <link rel="stylesheet" type="text/css" href="outermost-sheet.css"
+ media="screen" />
+ <link rel="stylesheet" type="text/css" href="other-outermost-sheet.css"
+ media="print" />
+</head>
+
+<body>
+<div class="outermost">cyan</div>
+<div class="outer">blue</div>
+<div class="inner">yellow</div>
+</body>
+
+</html>
diff --git a/layout/reftests/css-import/inner-sheet.css b/layout/reftests/css-import/inner-sheet.css
new file mode 100644
index 000000000..f84d0bc21
--- /dev/null
+++ b/layout/reftests/css-import/inner-sheet.css
@@ -0,0 +1,2 @@
+p { background-color: green; color: white }
+.inner { color: yellow; } \ No newline at end of file
diff --git a/layout/reftests/css-import/other-outermost-sheet.css b/layout/reftests/css-import/other-outermost-sheet.css
new file mode 100644
index 000000000..8c77677ab
--- /dev/null
+++ b/layout/reftests/css-import/other-outermost-sheet.css
@@ -0,0 +1,3 @@
+@import url("outer-sheet.css");
+
+.outermost { color: cyan; }
diff --git a/layout/reftests/css-import/outer-sheet.css b/layout/reftests/css-import/outer-sheet.css
new file mode 100644
index 000000000..db940dac7
--- /dev/null
+++ b/layout/reftests/css-import/outer-sheet.css
@@ -0,0 +1,2 @@
+@import url("inner-sheet.css");
+.outer { color: blue; }
diff --git a/layout/reftests/css-import/outermost-sheet.css b/layout/reftests/css-import/outermost-sheet.css
new file mode 100644
index 000000000..b8b4bba4f
--- /dev/null
+++ b/layout/reftests/css-import/outermost-sheet.css
@@ -0,0 +1,3 @@
+@import url("outer-sheet.css");
+
+.outermost { color: purple; }
diff --git a/layout/reftests/css-import/reftest-stylo.list b/layout/reftests/css-import/reftest-stylo.list
new file mode 100644
index 000000000..3e587c4b4
--- /dev/null
+++ b/layout/reftests/css-import/reftest-stylo.list
@@ -0,0 +1,16 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+skip-if(B2G||Mulet) == 290018-1.html 290018-1.html
+# Initial mulet triage: parity with B2G/B2G Desktop
+== 436261-1.html 436261-1.html
+== 436261-2.html 436261-2.html
+== 436261-3.html 436261-3.html
+== 444723-1.html 444723-1.html
+== 444723-2.html 444723-2.html
+== 445415-1a.xhtml 445415-1a.xhtml
+== 445415-1b.xhtml 445415-1b.xhtml
+skip-if(B2G||Mulet) == 445415-2a.xhtml 445415-2a.xhtml
+# bug 773482
+# Initial mulet triage: parity with B2G/B2G Desktop
+skip-if(B2G||Mulet) == 445415-2b.xhtml 445415-2b.xhtml
+# bug 773482
+# Initial mulet triage: parity with B2G/B2G Desktop
diff --git a/layout/reftests/css-import/reftest.list b/layout/reftests/css-import/reftest.list
new file mode 100644
index 000000000..847379c2a
--- /dev/null
+++ b/layout/reftests/css-import/reftest.list
@@ -0,0 +1,10 @@
+== 290018-1.html 290018-ref.html
+== 436261-1.html 436261-ref.html
+== 436261-2.html 436261-ref.html
+== 436261-3.html 436261-ref.html
+== 444723-1.html 444723-ref.html
+== 444723-2.html 444723-ref.html
+== 445415-1a.xhtml 445415-1-ref.xhtml
+== 445415-1b.xhtml 445415-1-ref.xhtml
+== 445415-2a.xhtml 445415-2-ref.xhtml
+== 445415-2b.xhtml 445415-2-ref.xhtml