summaryrefslogtreecommitdiffstats
path: root/layout/tools/reftest/chrome
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layout/tools/reftest/chrome/binding.xml9
-rw-r--r--layout/tools/reftest/chrome/userContent-import.css3
-rw-r--r--layout/tools/reftest/chrome/userContent.css26
3 files changed, 38 insertions, 0 deletions
diff --git a/layout/tools/reftest/chrome/binding.xml b/layout/tools/reftest/chrome/binding.xml
new file mode 100644
index 0000000000..b68d64bd12
--- /dev/null
+++ b/layout/tools/reftest/chrome/binding.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<bindings xmlns="http://www.mozilla.org/xbl">
+<binding id="reftest-userxbl" bindToUntrustedContent="true">
+<implementation><constructor><![CDATA[
+this.style.backgroundColor = "lime";
+document.documentElement.removeAttribute("class");
+]]></constructor></implementation>
+</binding>
+</bindings>
diff --git a/layout/tools/reftest/chrome/userContent-import.css b/layout/tools/reftest/chrome/userContent-import.css
new file mode 100644
index 0000000000..e1936a02bc
--- /dev/null
+++ b/layout/tools/reftest/chrome/userContent-import.css
@@ -0,0 +1,3 @@
+.reftest-usercss-import {
+ background-color: lime !important;
+}
diff --git a/layout/tools/reftest/chrome/userContent.css b/layout/tools/reftest/chrome/userContent.css
new file mode 100644
index 0000000000..894cc24245
--- /dev/null
+++ b/layout/tools/reftest/chrome/userContent.css
@@ -0,0 +1,26 @@
+@import "invalid.css";
+@import "userContent-import.css";
+
+.reftest-usercss {
+ background: lime !important;
+}
+.reftest-userxbl {
+ -moz-binding: url("binding.xml#reftest-userxbl") !important;
+}
+.RefTest-upperCase {
+ background: lime !important;
+}
+/*
+ * file: URLs have an empty domain.
+ * Android uses a special loopback-to-host address.
+ */
+@-moz-document domain(), domain(10.0.2.2) {
+ .reftest-domain {
+ background: lime !important;
+ }
+}
+@-moz-document domain(example.invalid) {
+ .reftest-xdomain {
+ background: red !important;
+ }
+}