aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css21_dev/html4/reference
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-10-21 16:35:11 +0200
committerMs2ger <Ms2ger@gmail.com>2015-10-22 10:19:14 +0200
commit6a4ad433a250cf7dc61eaf91bc67961d17caf6c4 (patch)
treecc325e17145d9cad3b467ff1ef7d7486f0d4017e /tests/wpt/css-tests/css21_dev/html4/reference
parentea000471d345c50791fb524b4ea66ca8f0594b3c (diff)
downloadservo-6a4ad433a250cf7dc61eaf91bc67961d17caf6c4.tar.gz
servo-6a4ad433a250cf7dc61eaf91bc67961d17caf6c4.zip
Update CSS tests to revision 465c03e3d8d42ce98b9dfa0c8d8e7b4b8d48ebd7
Diffstat (limited to 'tests/wpt/css-tests/css21_dev/html4/reference')
-rw-r--r--tests/wpt/css-tests/css21_dev/html4/reference/attribute-value-selector-001-ref.htm17
-rw-r--r--tests/wpt/css-tests/css21_dev/html4/reference/support/min-width-tables-001-iframe.html59
2 files changed, 76 insertions, 0 deletions
diff --git a/tests/wpt/css-tests/css21_dev/html4/reference/attribute-value-selector-001-ref.htm b/tests/wpt/css-tests/css21_dev/html4/reference/attribute-value-selector-001-ref.htm
new file mode 100644
index 00000000000..1a57c742214
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/html4/reference/attribute-value-selector-001-ref.htm
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>CSS Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
+<style type="text/css">
+.green {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the first line of "Filler Text" below is black and the second one is green.</p>
+<div>Filler Text</div>
+<div class="green">Filler Text</div>
+</body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/html4/reference/support/min-width-tables-001-iframe.html b/tests/wpt/css-tests/css21_dev/html4/reference/support/min-width-tables-001-iframe.html
new file mode 100644
index 00000000000..edc548a6aab
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/html4/reference/support/min-width-tables-001-iframe.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html><head>
+ <meta charset="utf-8">
+ <title>iframe containing the meat of the test</title>
+ <style>
+body {
+ margin: 0;
+ overflow: hidden;
+}
+/* green div that should cover the red divs */
+#green {
+ position: absolute;
+ left: 0;
+ top: 0;
+ background-color: green;
+ width: 100%;
+ height: 600px;
+}
+.spacer {
+ height: 98px;
+ width: 20px;
+}
+.item {
+ background-color: red;
+ display: block;/* property under test */
+ /* border to aid understanding of boundaries between items */
+ border-style: solid;
+ border-width: 1px;
+ border-color: red;/* Note: if you're trying to debug this, use a different color here */
+}
+/* 100px = 10*(1 + 8 + 1) */
+@media (min-width: 100px) {
+ #green {
+ width: 100px;
+ height: 100px;/* = 1 + 98 + 1 */
+ }
+ .item {
+ display: table-cell;/* property and value under test */
+ }
+}
+ </style>
+</head>
+<body>
+ <div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ <div class="item"><div class="spacer"></div></div>
+ </div>
+ <div id="green"></div>
+
+
+</body></html> \ No newline at end of file