summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-enabled/optgroup
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-enabled/optgroup')
-rw-r--r--layout/reftests/css-enabled/optgroup/optgroup-fieldset-1.html9
-rw-r--r--layout/reftests/css-enabled/optgroup/optgroup-fieldset-ref.html9
-rw-r--r--layout/reftests/css-enabled/optgroup/reftest-stylo.list2
-rw-r--r--layout/reftests/css-enabled/optgroup/reftest.list1
-rw-r--r--layout/reftests/css-enabled/optgroup/style.css19
5 files changed, 40 insertions, 0 deletions
diff --git a/layout/reftests/css-enabled/optgroup/optgroup-fieldset-1.html b/layout/reftests/css-enabled/optgroup/optgroup-fieldset-1.html
new file mode 100644
index 000000000..0b7ee5a76
--- /dev/null
+++ b/layout/reftests/css-enabled/optgroup/optgroup-fieldset-1.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset disabled class="disabled">
+ <optgroup class="enabled">foo</optgroup>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/optgroup/optgroup-fieldset-ref.html b/layout/reftests/css-enabled/optgroup/optgroup-fieldset-ref.html
new file mode 100644
index 000000000..c8fde1c2b
--- /dev/null
+++ b/layout/reftests/css-enabled/optgroup/optgroup-fieldset-ref.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <optgroup class="ref">foo</optgroup>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-enabled/optgroup/reftest-stylo.list b/layout/reftests/css-enabled/optgroup/reftest-stylo.list
new file mode 100644
index 000000000..49d455343
--- /dev/null
+++ b/layout/reftests/css-enabled/optgroup/reftest-stylo.list
@@ -0,0 +1,2 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+fuzzy-if(skiaContent,1,2) == optgroup-fieldset-1.html optgroup-fieldset-1.html
diff --git a/layout/reftests/css-enabled/optgroup/reftest.list b/layout/reftests/css-enabled/optgroup/reftest.list
new file mode 100644
index 000000000..75c53da48
--- /dev/null
+++ b/layout/reftests/css-enabled/optgroup/reftest.list
@@ -0,0 +1 @@
+fuzzy-if(skiaContent,1,2) == optgroup-fieldset-1.html optgroup-fieldset-ref.html
diff --git a/layout/reftests/css-enabled/optgroup/style.css b/layout/reftests/css-enabled/optgroup/style.css
new file mode 100644
index 000000000..3846239d0
--- /dev/null
+++ b/layout/reftests/css-enabled/optgroup/style.css
@@ -0,0 +1,19 @@
+.ref {
+ background-color: green;
+}
+
+.enabled {
+ background-color: red;
+}
+
+:enabled.enabled {
+ background-color: green;
+}
+
+.disabled {
+ background-color: green;
+}
+
+:enabled.disabled {
+ background-color: red;
+}