summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-disabled
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /layout/reftests/css-disabled
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/css-disabled')
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-1.html11
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-2.html11
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-3.html20
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-4.html19
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-1.html11
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-2.html13
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-3.html13
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-4.html13
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-5.html15
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-ref-1.html11
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-ref-2.html13
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-ref-3.html13
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-ref-4.html13
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-legend-ref-5.html15
-rw-r--r--layout/reftests/css-disabled/button/button-fieldset-ref.html11
-rw-r--r--layout/reftests/css-disabled/button/reftest.list9
-rw-r--r--layout/reftests/css-disabled/button/style.css19
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-disabled.html7
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-enabled.html7
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-fieldset-1.html11
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-fieldset-2.html11
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-fieldset-3.html20
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-fieldset-4.html19
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-fieldset-ref.html11
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-1.html11
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-2.html13
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-3.html13
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-4.html13
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-5.html15
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-ref-1.html11
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-ref-2.html13
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-ref-3.html13
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-ref-4.html13
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-legend-ref-5.html15
-rw-r--r--layout/reftests/css-disabled/fieldset/fieldset-ref.html7
-rw-r--r--layout/reftests/css-disabled/fieldset/reftest.list11
-rw-r--r--layout/reftests/css-disabled/fieldset/style.css19
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-1.html11
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-2.html11
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-3.html20
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-4.html19
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-1.html11
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-2.html13
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-3.html13
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-4.html13
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-5.html15
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-ref-1.html11
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-ref-2.html13
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-ref-3.html13
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-ref-4.html13
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-legend-ref-5.html15
-rw-r--r--layout/reftests/css-disabled/input/input-fieldset-ref.html11
-rw-r--r--layout/reftests/css-disabled/input/reftest.list9
-rw-r--r--layout/reftests/css-disabled/input/style.css19
-rw-r--r--layout/reftests/css-disabled/label/label-ref.html7
-rw-r--r--layout/reftests/css-disabled/label/label.html7
-rw-r--r--layout/reftests/css-disabled/label/reftest.list1
-rw-r--r--layout/reftests/css-disabled/label/style.css12
-rw-r--r--layout/reftests/css-disabled/object/object-ref.html7
-rw-r--r--layout/reftests/css-disabled/object/object.html7
-rw-r--r--layout/reftests/css-disabled/object/reftest.list1
-rw-r--r--layout/reftests/css-disabled/object/style.css12
-rw-r--r--layout/reftests/css-disabled/output/output-ref.html7
-rw-r--r--layout/reftests/css-disabled/output/output.html7
-rw-r--r--layout/reftests/css-disabled/output/reftest.list1
-rw-r--r--layout/reftests/css-disabled/output/style.css12
-rw-r--r--layout/reftests/css-disabled/reftest.list8
-rw-r--r--layout/reftests/css-disabled/select/reftest.list9
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-1.html11
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-2.html11
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-3.html20
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-4.html19
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-1.html11
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-2.html13
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-3.html13
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-4.html13
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-5.html15
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-ref-1.html11
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-ref-2.html13
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-ref-3.html13
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-ref-4.html13
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-legend-ref-5.html15
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-ref-disabled.html11
-rw-r--r--layout/reftests/css-disabled/select/select-fieldset-ref.html11
-rw-r--r--layout/reftests/css-disabled/select/style.css19
-rw-r--r--layout/reftests/css-disabled/textarea/reftest.list9
-rw-r--r--layout/reftests/css-disabled/textarea/style.css19
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-1.html11
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-2.html11
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-3.html20
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-4.html19
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-1.html11
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-2.html13
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-3.html13
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-4.html13
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-5.html15
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-1.html11
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-2.html13
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-3.html13
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-4.html13
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-5.html15
-rw-r--r--layout/reftests/css-disabled/textarea/textarea-fieldset-ref.html11
102 files changed, 1273 insertions, 0 deletions
diff --git a/layout/reftests/css-disabled/button/button-fieldset-1.html b/layout/reftests/css-disabled/button/button-fieldset-1.html
new file mode 100644
index 0000000000..56c6c2812b
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="enabled">
+ <fieldset class="enabled">
+ <button class="enabled"></button>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-2.html b/layout/reftests/css-disabled/button/button-fieldset-2.html
new file mode 100644
index 0000000000..e8fff16732
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset disabled class="disabled">
+ <fieldset class="disabled">
+ <button class="disabled"></button>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-3.html b/layout/reftests/css-disabled/button/button-fieldset-3.html
new file mode 100644
index 0000000000..002881d84c
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-3.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[1].disabled = true;
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="disabled">
+ <button class="disabled"></button>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-4.html b/layout/reftests/css-disabled/button/button-fieldset-4.html
new file mode 100644
index 0000000000..ed82a0479b
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-4.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="enabled">
+ <button class="enabled"></button>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-1.html b/layout/reftests/css-disabled/button/button-fieldset-legend-1.html
new file mode 100644
index 0000000000..3e9e510eca
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend id='i'>
+ <button class="enabled"></button>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-2.html b/layout/reftests/css-disabled/button/button-fieldset-legend-2.html
new file mode 100644
index 0000000000..b7fe250fa0
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ </legend>
+ <legend>
+ <button class="disabled"></button>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-3.html b/layout/reftests/css-disabled/button/button-fieldset-legend-3.html
new file mode 100644
index 0000000000..f9127b8d5e
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <fieldset class="disabled">
+ <legend>
+ <button class="disabled"></button>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-4.html b/layout/reftests/css-disabled/button/button-fieldset-legend-4.html
new file mode 100644
index 0000000000..1e8840ded3
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="enabled">
+ <button class="enabled"></button>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-5.html b/layout/reftests/css-disabled/button/button-fieldset-legend-5.html
new file mode 100644
index 0000000000..29b7a40d66
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <button class="enabled"></button>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-ref-1.html b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-1.html
new file mode 100644
index 0000000000..69c8ff5f2b
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <button class="ref"></button>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-ref-2.html b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-2.html
new file mode 100644
index 0000000000..62dec99da6
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ </legend>
+ <legend>
+ <button class="ref"></button>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-ref-3.html b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-3.html
new file mode 100644
index 0000000000..8807601e09
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <legend>
+ <button class="ref"></button>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-ref-4.html b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-4.html
new file mode 100644
index 0000000000..df92d4480a
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <button class="ref"></button>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-legend-ref-5.html b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-5.html
new file mode 100644
index 0000000000..7520a19bff
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-legend-ref-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <legend>
+ <button class="ref"></button>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/button-fieldset-ref.html b/layout/reftests/css-disabled/button/button-fieldset-ref.html
new file mode 100644
index 0000000000..7941c7ddee
--- /dev/null
+++ b/layout/reftests/css-disabled/button/button-fieldset-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <button class="ref"></button>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/button/reftest.list b/layout/reftests/css-disabled/button/reftest.list
new file mode 100644
index 0000000000..98ebc1d504
--- /dev/null
+++ b/layout/reftests/css-disabled/button/reftest.list
@@ -0,0 +1,9 @@
+== button-fieldset-1.html button-fieldset-ref.html
+fuzzy(0-1,0-7) == button-fieldset-2.html button-fieldset-ref.html
+fuzzy(0-1,0-7) == button-fieldset-3.html button-fieldset-ref.html
+fuzzy(0-1,0-7) == button-fieldset-4.html button-fieldset-ref.html
+== button-fieldset-legend-1.html button-fieldset-legend-ref-1.html
+== button-fieldset-legend-2.html button-fieldset-legend-ref-2.html
+== button-fieldset-legend-3.html button-fieldset-legend-ref-3.html
+== button-fieldset-legend-4.html button-fieldset-legend-ref-4.html
+== button-fieldset-legend-5.html button-fieldset-legend-ref-5.html
diff --git a/layout/reftests/css-disabled/button/style.css b/layout/reftests/css-disabled/button/style.css
new file mode 100644
index 0000000000..7e476eb822
--- /dev/null
+++ b/layout/reftests/css-disabled/button/style.css
@@ -0,0 +1,19 @@
+.ref {
+ background-color: green;
+}
+
+.disabled {
+ background-color: red;
+}
+
+:disabled.disabled {
+ background-color: green;
+}
+
+.enabled {
+ background-color: green;
+}
+
+:disabled.enabled {
+ background-color: red;
+}
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-disabled.html b/layout/reftests/css-disabled/fieldset/fieldset-disabled.html
new file mode 100644
index 0000000000..6cd4fbfead
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-disabled.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled></fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-enabled.html b/layout/reftests/css-disabled/fieldset/fieldset-enabled.html
new file mode 100644
index 0000000000..32915278e4
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-enabled.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="enabled"></fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-fieldset-1.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-1.html
new file mode 100644
index 0000000000..9b1ae9f11d
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="enabled">
+ <fieldset class="enabled">
+ <fieldset class="enabled"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-fieldset-2.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-2.html
new file mode 100644
index 0000000000..01176a31e7
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset disabled class="disabled">
+ <fieldset class="disabled">
+ <fieldset class="disabled"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-fieldset-3.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-3.html
new file mode 100644
index 0000000000..4c09335469
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-3.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[1].disabled = true;
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="disabled">
+ <fieldset class="disabled"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-fieldset-4.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-4.html
new file mode 100644
index 0000000000..e655812965
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-4.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="enabled">
+ <fieldset class="enabled"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-fieldset-ref.html b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-ref.html
new file mode 100644
index 0000000000..ade7fc477c
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-fieldset-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <fieldset class="ref"></fieldset>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-1.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-1.html
new file mode 100644
index 0000000000..04781eb604
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend id='i'>
+ <fieldset class="enabled"></fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-2.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-2.html
new file mode 100644
index 0000000000..e201ee1664
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ </legend>
+ <legend>
+ <fieldset class="disabled"></fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-3.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-3.html
new file mode 100644
index 0000000000..d9ca78dc31
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <fieldset class="disabled">
+ <legend>
+ <fieldset class="disabled"></fieldset>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-4.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-4.html
new file mode 100644
index 0000000000..67c728ef19
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="enabled">
+ <fieldset class="enabled"></fieldset>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-5.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-5.html
new file mode 100644
index 0000000000..c3f82ae2a4
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="enabled"></fieldset>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-1.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-1.html
new file mode 100644
index 0000000000..83f1925ad7
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref"></fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-2.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-2.html
new file mode 100644
index 0000000000..33fe2455cd
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ </legend>
+ <legend>
+ <fieldset class="ref"></fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-3.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-3.html
new file mode 100644
index 0000000000..7aaff27f19
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref"></fieldset>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-4.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-4.html
new file mode 100644
index 0000000000..9f1a267a6a
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <fieldset class="ref"></fieldset>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-5.html b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-5.html
new file mode 100644
index 0000000000..00df3f8348
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-legend-ref-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref"></fieldset>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/fieldset-ref.html b/layout/reftests/css-disabled/fieldset/fieldset-ref.html
new file mode 100644
index 0000000000..7f66bc698f
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/fieldset-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class='ref'></fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/fieldset/reftest.list b/layout/reftests/css-disabled/fieldset/reftest.list
new file mode 100644
index 0000000000..cabdaa8e53
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/reftest.list
@@ -0,0 +1,11 @@
+== fieldset-enabled.html fieldset-ref.html
+fuzzy(0-2,0-5) == fieldset-disabled.html fieldset-ref.html
+== fieldset-fieldset-1.html fieldset-fieldset-ref.html
+fuzzy(0-1,0-11) == fieldset-fieldset-2.html fieldset-fieldset-ref.html
+fuzzy(0-1,0-11) == fieldset-fieldset-3.html fieldset-fieldset-ref.html
+fuzzy(0-1,0-11) == fieldset-fieldset-4.html fieldset-fieldset-ref.html
+== fieldset-legend-1.html fieldset-legend-ref-1.html
+== fieldset-legend-2.html fieldset-legend-ref-2.html
+== fieldset-legend-3.html fieldset-legend-ref-3.html
+== fieldset-legend-4.html fieldset-legend-ref-4.html
+== fieldset-legend-5.html fieldset-legend-ref-5.html
diff --git a/layout/reftests/css-disabled/fieldset/style.css b/layout/reftests/css-disabled/fieldset/style.css
new file mode 100644
index 0000000000..7e476eb822
--- /dev/null
+++ b/layout/reftests/css-disabled/fieldset/style.css
@@ -0,0 +1,19 @@
+.ref {
+ background-color: green;
+}
+
+.disabled {
+ background-color: red;
+}
+
+:disabled.disabled {
+ background-color: green;
+}
+
+.enabled {
+ background-color: green;
+}
+
+:disabled.enabled {
+ background-color: red;
+}
diff --git a/layout/reftests/css-disabled/input/input-fieldset-1.html b/layout/reftests/css-disabled/input/input-fieldset-1.html
new file mode 100644
index 0000000000..b50f3b0f1d
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="enabled">
+ <fieldset class="enabled">
+ <input class="enabled">
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-2.html b/layout/reftests/css-disabled/input/input-fieldset-2.html
new file mode 100644
index 0000000000..acfbbca5f4
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset disabled class="disabled">
+ <fieldset class="disabled">
+ <input class="disabled">
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-3.html b/layout/reftests/css-disabled/input/input-fieldset-3.html
new file mode 100644
index 0000000000..de095cee6e
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-3.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[1].disabled = true;
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="disabled">
+ <input class="disabled">
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-4.html b/layout/reftests/css-disabled/input/input-fieldset-4.html
new file mode 100644
index 0000000000..fa0fe1ac7c
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-4.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="enabled">
+ <input class="enabled">
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-1.html b/layout/reftests/css-disabled/input/input-fieldset-legend-1.html
new file mode 100644
index 0000000000..d56517ac7d
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend id='i'>
+ <input class="enabled">
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-2.html b/layout/reftests/css-disabled/input/input-fieldset-legend-2.html
new file mode 100644
index 0000000000..d564e14040
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ </legend>
+ <legend>
+ <input class="disabled">
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-3.html b/layout/reftests/css-disabled/input/input-fieldset-legend-3.html
new file mode 100644
index 0000000000..89c41119f5
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <fieldset class="disabled">
+ <legend>
+ <input class="disabled">
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-4.html b/layout/reftests/css-disabled/input/input-fieldset-legend-4.html
new file mode 100644
index 0000000000..33eec83fef
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="enabled">
+ <input class="enabled">
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-5.html b/layout/reftests/css-disabled/input/input-fieldset-legend-5.html
new file mode 100644
index 0000000000..4226c9672b
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <input class="enabled">
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-ref-1.html b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-1.html
new file mode 100644
index 0000000000..5511e567b1
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <input class="ref">
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-ref-2.html b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-2.html
new file mode 100644
index 0000000000..4d0658b642
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ </legend>
+ <legend>
+ <input class="ref">
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-ref-3.html b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-3.html
new file mode 100644
index 0000000000..15fb4d9cee
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <legend>
+ <input class="ref">
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-ref-4.html b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-4.html
new file mode 100644
index 0000000000..3fdd2b4ddb
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <input class="ref">
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-legend-ref-5.html b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-5.html
new file mode 100644
index 0000000000..fc2c01f000
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-legend-ref-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <legend>
+ <input class="ref">
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/input-fieldset-ref.html b/layout/reftests/css-disabled/input/input-fieldset-ref.html
new file mode 100644
index 0000000000..0108ffc32a
--- /dev/null
+++ b/layout/reftests/css-disabled/input/input-fieldset-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <input class="ref">
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/input/reftest.list b/layout/reftests/css-disabled/input/reftest.list
new file mode 100644
index 0000000000..210e59e9b5
--- /dev/null
+++ b/layout/reftests/css-disabled/input/reftest.list
@@ -0,0 +1,9 @@
+== input-fieldset-1.html input-fieldset-ref.html
+fuzzy(0-1,0-7) == input-fieldset-2.html input-fieldset-ref.html
+fuzzy(0-1,0-7) == input-fieldset-3.html input-fieldset-ref.html
+fuzzy(0-1,0-7) == input-fieldset-4.html input-fieldset-ref.html
+== input-fieldset-legend-1.html input-fieldset-legend-ref-1.html
+== input-fieldset-legend-2.html input-fieldset-legend-ref-2.html
+== input-fieldset-legend-3.html input-fieldset-legend-ref-3.html
+== input-fieldset-legend-4.html input-fieldset-legend-ref-4.html
+== input-fieldset-legend-5.html input-fieldset-legend-ref-5.html
diff --git a/layout/reftests/css-disabled/input/style.css b/layout/reftests/css-disabled/input/style.css
new file mode 100644
index 0000000000..7e476eb822
--- /dev/null
+++ b/layout/reftests/css-disabled/input/style.css
@@ -0,0 +1,19 @@
+.ref {
+ background-color: green;
+}
+
+.disabled {
+ background-color: red;
+}
+
+:disabled.disabled {
+ background-color: green;
+}
+
+.enabled {
+ background-color: green;
+}
+
+:disabled.enabled {
+ background-color: red;
+}
diff --git a/layout/reftests/css-disabled/label/label-ref.html b/layout/reftests/css-disabled/label/label-ref.html
new file mode 100644
index 0000000000..0fb84bc0a8
--- /dev/null
+++ b/layout/reftests/css-disabled/label/label-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <label class="ref">foo</label>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/label/label.html b/layout/reftests/css-disabled/label/label.html
new file mode 100644
index 0000000000..4283f38ee4
--- /dev/null
+++ b/layout/reftests/css-disabled/label/label.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <label disabled>foo</label>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/label/reftest.list b/layout/reftests/css-disabled/label/reftest.list
new file mode 100644
index 0000000000..31f85dd948
--- /dev/null
+++ b/layout/reftests/css-disabled/label/reftest.list
@@ -0,0 +1 @@
+== label.html label-ref.html
diff --git a/layout/reftests/css-disabled/label/style.css b/layout/reftests/css-disabled/label/style.css
new file mode 100644
index 0000000000..5bf7b20ce3
--- /dev/null
+++ b/layout/reftests/css-disabled/label/style.css
@@ -0,0 +1,12 @@
+label {
+ background-color: green;
+}
+
+label:disabled {
+ background-color: red;
+}
+
+/* ref should always be green! */
+.ref:disabled {
+ background-color: green;
+}
diff --git a/layout/reftests/css-disabled/object/object-ref.html b/layout/reftests/css-disabled/object/object-ref.html
new file mode 100644
index 0000000000..10a4da84ab
--- /dev/null
+++ b/layout/reftests/css-disabled/object/object-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <object class="ref">foo</object>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/object/object.html b/layout/reftests/css-disabled/object/object.html
new file mode 100644
index 0000000000..74424ec0f3
--- /dev/null
+++ b/layout/reftests/css-disabled/object/object.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <object disabled>foo</object>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/object/reftest.list b/layout/reftests/css-disabled/object/reftest.list
new file mode 100644
index 0000000000..471500b977
--- /dev/null
+++ b/layout/reftests/css-disabled/object/reftest.list
@@ -0,0 +1 @@
+== object.html object-ref.html
diff --git a/layout/reftests/css-disabled/object/style.css b/layout/reftests/css-disabled/object/style.css
new file mode 100644
index 0000000000..089452c08e
--- /dev/null
+++ b/layout/reftests/css-disabled/object/style.css
@@ -0,0 +1,12 @@
+object {
+ background-color: green;
+}
+
+object:disabled {
+ background-color: red;
+}
+
+/* ref should always be green! */
+.ref:disabled {
+ background-color: green;
+}
diff --git a/layout/reftests/css-disabled/output/output-ref.html b/layout/reftests/css-disabled/output/output-ref.html
new file mode 100644
index 0000000000..cc4687f54e
--- /dev/null
+++ b/layout/reftests/css-disabled/output/output-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <output class="ref">foo</output>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/output/output.html b/layout/reftests/css-disabled/output/output.html
new file mode 100644
index 0000000000..a42173e979
--- /dev/null
+++ b/layout/reftests/css-disabled/output/output.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <output disabled>foo</output>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/output/reftest.list b/layout/reftests/css-disabled/output/reftest.list
new file mode 100644
index 0000000000..0f02f9cf9f
--- /dev/null
+++ b/layout/reftests/css-disabled/output/reftest.list
@@ -0,0 +1 @@
+== output.html output-ref.html
diff --git a/layout/reftests/css-disabled/output/style.css b/layout/reftests/css-disabled/output/style.css
new file mode 100644
index 0000000000..4e6012320f
--- /dev/null
+++ b/layout/reftests/css-disabled/output/style.css
@@ -0,0 +1,12 @@
+output {
+ background-color: green;
+}
+
+output:disabled {
+ background-color: red;
+}
+
+/* ref should always be green! */
+.ref:disabled {
+ background-color: green;
+}
diff --git a/layout/reftests/css-disabled/reftest.list b/layout/reftests/css-disabled/reftest.list
new file mode 100644
index 0000000000..de177a7a8d
--- /dev/null
+++ b/layout/reftests/css-disabled/reftest.list
@@ -0,0 +1,8 @@
+include fieldset/reftest.list
+include input/reftest.list
+include button/reftest.list
+include textarea/reftest.list
+include select/reftest.list
+include object/reftest.list
+include label/reftest.list
+include output/reftest.list
diff --git a/layout/reftests/css-disabled/select/reftest.list b/layout/reftests/css-disabled/select/reftest.list
new file mode 100644
index 0000000000..9a7f56df91
--- /dev/null
+++ b/layout/reftests/css-disabled/select/reftest.list
@@ -0,0 +1,9 @@
+fuzzy-if(Android,0-12,0-1) == select-fieldset-1.html select-fieldset-ref.html
+fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-17) == select-fieldset-2.html select-fieldset-ref-disabled.html
+fuzzy-if(!Android,0-2,0-17) == select-fieldset-3.html select-fieldset-ref-disabled.html
+fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-13) == select-fieldset-4.html select-fieldset-ref.html
+== select-fieldset-legend-1.html select-fieldset-legend-ref-1.html
+fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-6) == select-fieldset-legend-2.html select-fieldset-legend-ref-2.html
+fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-8) == select-fieldset-legend-3.html select-fieldset-legend-ref-3.html
+fuzzy-if(Android,0-12,0-1) fuzzy-if(!Android,0-2,0-12) == select-fieldset-legend-4.html select-fieldset-legend-ref-4.html
+fuzzy(0-2,0-5) == select-fieldset-legend-5.html select-fieldset-legend-ref-5.html
diff --git a/layout/reftests/css-disabled/select/select-fieldset-1.html b/layout/reftests/css-disabled/select/select-fieldset-1.html
new file mode 100644
index 0000000000..84874986fe
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="enabled">
+ <fieldset class="enabled">
+ <select class="enabled"></select>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-2.html b/layout/reftests/css-disabled/select/select-fieldset-2.html
new file mode 100644
index 0000000000..4e34c7fefb
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset disabled class="disabled">
+ <fieldset class="disabled">
+ <select class="disabled"></select>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-3.html b/layout/reftests/css-disabled/select/select-fieldset-3.html
new file mode 100644
index 0000000000..c30347271a
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-3.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[1].disabled = true;
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="disabled">
+ <select class="disabled"></select>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-4.html b/layout/reftests/css-disabled/select/select-fieldset-4.html
new file mode 100644
index 0000000000..b168a2193c
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-4.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="enabled">
+ <select class="enabled"></select>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-1.html b/layout/reftests/css-disabled/select/select-fieldset-legend-1.html
new file mode 100644
index 0000000000..944303b88a
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend id='i'>
+ <select class="enabled"></select>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-2.html b/layout/reftests/css-disabled/select/select-fieldset-legend-2.html
new file mode 100644
index 0000000000..7a3507be23
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ </legend>
+ <legend>
+ <select class="disabled"></select>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-3.html b/layout/reftests/css-disabled/select/select-fieldset-legend-3.html
new file mode 100644
index 0000000000..29a98a88ac
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <fieldset class="disabled">
+ <legend>
+ <select class="disabled"></select>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-4.html b/layout/reftests/css-disabled/select/select-fieldset-legend-4.html
new file mode 100644
index 0000000000..4cbc3ca856
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="enabled">
+ <select class="enabled"></select>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-5.html b/layout/reftests/css-disabled/select/select-fieldset-legend-5.html
new file mode 100644
index 0000000000..0218b95481
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <select class="enabled"></select>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-1.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-1.html
new file mode 100644
index 0000000000..57c42ddc22
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <select class="ref"></select>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-2.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-2.html
new file mode 100644
index 0000000000..d21ba476ee
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ </legend>
+ <legend>
+ <select disabled class="ref"></select>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-3.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-3.html
new file mode 100644
index 0000000000..d4b147fa1a
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <legend>
+ <select disabled class="ref"></select>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-4.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-4.html
new file mode 100644
index 0000000000..55df97e20a
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <select class="ref"></select>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-legend-ref-5.html b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-5.html
new file mode 100644
index 0000000000..1c3275c90b
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-legend-ref-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <legend>
+ <select class="ref"></select>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-ref-disabled.html b/layout/reftests/css-disabled/select/select-fieldset-ref-disabled.html
new file mode 100644
index 0000000000..273223696b
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-ref-disabled.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <select disabled class="ref"></select>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/select-fieldset-ref.html b/layout/reftests/css-disabled/select/select-fieldset-ref.html
new file mode 100644
index 0000000000..e85e16f6b1
--- /dev/null
+++ b/layout/reftests/css-disabled/select/select-fieldset-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <select class="ref"></select>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/select/style.css b/layout/reftests/css-disabled/select/style.css
new file mode 100644
index 0000000000..7e476eb822
--- /dev/null
+++ b/layout/reftests/css-disabled/select/style.css
@@ -0,0 +1,19 @@
+.ref {
+ background-color: green;
+}
+
+.disabled {
+ background-color: red;
+}
+
+:disabled.disabled {
+ background-color: green;
+}
+
+.enabled {
+ background-color: green;
+}
+
+:disabled.enabled {
+ background-color: red;
+}
diff --git a/layout/reftests/css-disabled/textarea/reftest.list b/layout/reftests/css-disabled/textarea/reftest.list
new file mode 100644
index 0000000000..70f8c663be
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/reftest.list
@@ -0,0 +1,9 @@
+fuzzy(0-1,0-10) == textarea-fieldset-1.html textarea-fieldset-ref.html
+== textarea-fieldset-2.html textarea-fieldset-ref.html
+== textarea-fieldset-3.html textarea-fieldset-ref.html
+== textarea-fieldset-4.html textarea-fieldset-ref.html
+fuzzy(0-1,0-5) == textarea-fieldset-legend-1.html textarea-fieldset-legend-ref-1.html
+fuzzy(0-1,0-5) == textarea-fieldset-legend-2.html textarea-fieldset-legend-ref-2.html
+fuzzy(0-1,0-5) == textarea-fieldset-legend-3.html textarea-fieldset-legend-ref-3.html
+fuzzy(0-1,0-5) == textarea-fieldset-legend-4.html textarea-fieldset-legend-ref-4.html
+fuzzy(0-1,0-5) == textarea-fieldset-legend-5.html textarea-fieldset-legend-ref-5.html
diff --git a/layout/reftests/css-disabled/textarea/style.css b/layout/reftests/css-disabled/textarea/style.css
new file mode 100644
index 0000000000..7e476eb822
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/style.css
@@ -0,0 +1,19 @@
+.ref {
+ background-color: green;
+}
+
+.disabled {
+ background-color: red;
+}
+
+:disabled.disabled {
+ background-color: green;
+}
+
+.enabled {
+ background-color: green;
+}
+
+:disabled.enabled {
+ background-color: red;
+}
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-1.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-1.html
new file mode 100644
index 0000000000..6c040b67ea
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="enabled">
+ <fieldset class="enabled">
+ <textarea class="enabled"></textarea>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-2.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-2.html
new file mode 100644
index 0000000000..6c22f2c175
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset disabled class="disabled">
+ <fieldset class="disabled">
+ <textarea class="disabled"></textarea>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-3.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-3.html
new file mode 100644
index 0000000000..82172c45f4
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-3.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[1].disabled = true;
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="disabled">
+ <textarea class="disabled"></textarea>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-4.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-4.html
new file mode 100644
index 0000000000..a4ba7a1006
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-4.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function onloadHandler()
+ {
+ var fieldsets = document.getElementsByTagName('fieldset');
+ fieldsets[0].disabled = false;
+ document.documentElement.className='';
+ }
+ </script>
+ <body onload="onloadHandler();">
+ <fieldset disabled class="enabled">
+ <fieldset class="enabled">
+ <textarea class="enabled"></textarea>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-1.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-1.html
new file mode 100644
index 0000000000..5ab543a864
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend id='i'>
+ <textarea class="enabled"></textarea>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-2.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-2.html
new file mode 100644
index 0000000000..3385d534ba
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ </legend>
+ <legend>
+ <textarea class="disabled"></textarea>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-3.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-3.html
new file mode 100644
index 0000000000..d3c94ee5d7
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <fieldset class="disabled">
+ <legend>
+ <textarea class="disabled"></textarea>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-4.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-4.html
new file mode 100644
index 0000000000..8d04971bd8
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="enabled">
+ <textarea class="enabled"></textarea>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-5.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-5.html
new file mode 100644
index 0000000000..856023ad9e
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <fieldset class="disabled" disabled>
+ <legend>
+ <textarea class="enabled"></textarea>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-1.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-1.html
new file mode 100644
index 0000000000..d3824560dd
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <textarea class="ref"></textarea>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-2.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-2.html
new file mode 100644
index 0000000000..f508a5d307
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-2.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ </legend>
+ <legend>
+ <textarea class="ref"></textarea>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-3.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-3.html
new file mode 100644
index 0000000000..799c2b8763
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-3.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <legend>
+ <textarea class="ref"></textarea>
+ </legend>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-4.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-4.html
new file mode 100644
index 0000000000..83ee46e601
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-4.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <textarea class="ref"></textarea>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-5.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-5.html
new file mode 100644
index 0000000000..dd63a89a21
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-legend-ref-5.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <legend>
+ <fieldset class="ref">
+ <legend>
+ <textarea class="ref"></textarea>
+ </legend>
+ </fieldset>
+ </legend>
+ </fieldset>
+ </body>
+</html>
diff --git a/layout/reftests/css-disabled/textarea/textarea-fieldset-ref.html b/layout/reftests/css-disabled/textarea/textarea-fieldset-ref.html
new file mode 100644
index 0000000000..1cc1d344dc
--- /dev/null
+++ b/layout/reftests/css-disabled/textarea/textarea-fieldset-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body>
+ <fieldset class="ref">
+ <fieldset class="ref">
+ <textarea class="ref"></textarea>
+ </fieldset>
+ </fieldset>
+ </body>
+</html>