summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-ui/historical
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 /testing/web-platform/tests/css/css-ui/historical
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-ui/historical')
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/moz-user-modify-01.html22
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/moz-user-modify-02.html19
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/moz-user-modify-03.html29
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/user-modify-01.html22
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/user-modify-02.html19
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/user-modify-03.html29
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-01.html22
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-02.html19
-rw-r--r--testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-03.html30
9 files changed, 211 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-01.html b/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-01.html
new file mode 100644
index 0000000000..595df9440e
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-01.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>-moz-user-modify should be unsupported in author origin</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+#modified {
+ -moz-user-modify: read-write;
+}
+</style>
+<div id="inherited"></div>
+<div id="modified"></div>
+<script>
+ test(function() {
+ for (const el of [inherited, modified]) {
+ assert_equals(el.style.MozUserModify, undefined);
+ assert_equals(el.style.mozUserModify, undefined);
+ assert_equals(getComputedStyle(el).getPropertyValue('-moz-user-modify'), '');
+ }
+ }, '-moz-user-modify is not supported');
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-02.html b/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-02.html
new file mode 100644
index 0000000000..e284d0c475
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-02.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>-moz-user-modify should be unsupported in contenteditable</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="contentEditableTrue" contenteditable="true"></div>
+<div id="contentEditablePlainText" contenteditable="plaintext-only"></div>
+<script>
+ test(function() {
+ const contentEditableTrue = document.getElementById('contentEditableTrue');
+ assert_equals(getComputedStyle(contentEditableTrue).getPropertyValue('-moz-user-modify'), '');
+ }, 'contenteditable="true" doesn\'t use unsupported -moz-user-modify property');
+
+ test(function() {
+ const contentEditablePlainText = document.getElementById('contentEditablePlainText');
+ assert_equals(getComputedStyle(contentEditablePlainText).getPropertyValue('-moz-user-modify'), '');
+ }, 'contenteditable="plaintext-only" doesn\'t use unsupported -moz-user-modify property');
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-03.html b/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-03.html
new file mode 100644
index 0000000000..e827b404e9
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/moz-user-modify-03.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>-moz-user-modify should be unsupported in CSS.supports</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+@supports (-moz-user-modify: read-only) {
+ #content {
+ width: 10px;
+ height: 10px;
+ background-color: red;
+ }
+}
+</style>
+<div id="content"></div>
+<script>
+ test(function() {
+ const content = document.getElementById('content');
+ assert_not_equals(getComputedStyle(content).getPropertyValue('background-color'), 'rgb(255, 0, 0)');
+ }, '@supports doesn\'t use unsupported -moz-user-modify property');
+
+ test(function() {
+ const supportsMozUserModifyProperty = CSS.supports(`(-moz-user-modify: read-only) or
+ (-moz-user-modify: read-write) or
+ (-moz-user-modify: write-only)`);
+ assert_equals(supportsMozUserModifyProperty, false);
+ }, 'CSS.supports doesn\'t use unsupported -moz-user-modify property');
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/historical/user-modify-01.html b/testing/web-platform/tests/css/css-ui/historical/user-modify-01.html
new file mode 100644
index 0000000000..dee93a618f
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/user-modify-01.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>user-modify should be unsupported in author origin</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+#modified {
+ user-modify: read-write;
+}
+</style>
+<div id="inherited"></div>
+<div id="modified"></div>
+<script>
+ test(function() {
+ for (const el of [inherited, modified]) {
+ assert_equals(el.style.userModify, undefined);
+ assert_equals(el.style.UserModify, undefined);
+ assert_equals(getComputedStyle(el).getPropertyValue('user-modify'), '');
+ }
+ }, 'user-modify is not supported');
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/historical/user-modify-02.html b/testing/web-platform/tests/css/css-ui/historical/user-modify-02.html
new file mode 100644
index 0000000000..2a96871d90
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/user-modify-02.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>user-modify should be unsupported in contenteditable</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="contentEditableTrue" contenteditable="true"></div>
+<div id="contentEditablePlainText" contenteditable="plaintext-only"></div>
+<script>
+ test(function() {
+ const contentEditableTrue = document.getElementById('contentEditableTrue');
+ assert_equals(getComputedStyle(contentEditableTrue).getPropertyValue('user-modify'), '');
+ }, 'contenteditable="true" doesn\'t use unsupported user-modify property');
+
+ test(function() {
+ const contentEditablePlainText = document.getElementById('contentEditablePlainText');
+ assert_equals(getComputedStyle(contentEditablePlainText).getPropertyValue('user-modify'), '');
+ }, 'contenteditable="plaintext-only" doesn\'t use unsupported user-modify property');
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/historical/user-modify-03.html b/testing/web-platform/tests/css/css-ui/historical/user-modify-03.html
new file mode 100644
index 0000000000..8d47e5259f
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/user-modify-03.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>user-modify should be unsupported in CSS.supports</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+@supports (user-modify: read-only) {
+ #content {
+ width: 10px;
+ height: 10px;
+ background-color: red;
+ }
+}
+</style>
+<div id="content"></div>
+<script>
+ test(function() {
+ const content = document.getElementById('content');
+ assert_not_equals(getComputedStyle(content).getPropertyValue('background-color'), 'rgb(255, 0, 0)');
+ }, '@supports doesn\'t use unsupported user-modify property');
+
+ test(function() {
+ const supportsUserModifyProperty = CSS.supports(`(user-modify: read-only) or
+ (user-modify: read-write) or
+ (user-modify: write-only)`);
+ assert_equals(supportsUserModifyProperty, false);
+ }, 'CSS.supports doesn\'t use unsupported user-modify property');
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-01.html b/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-01.html
new file mode 100644
index 0000000000..f756274d47
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-01.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>-webkit-user-modify should be unsupported in author origin</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+#modified {
+ -webkit-user-modify: read-write-plaintext-only;
+}
+</style>
+<div id="inherited"></div>
+<div id="modified"></div>
+<script>
+ test(function() {
+ for (const el of [inherited, modified]) {
+ assert_equals(el.style.WebkitUserModify, undefined);
+ assert_equals(el.style.webkitUserModify, undefined);
+ assert_equals(getComputedStyle(el).getPropertyValue('-webkit-user-modify'), '');
+ }
+ }, '-webkit-user-modify is not supported');
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-02.html b/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-02.html
new file mode 100644
index 0000000000..9db2567467
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-02.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>-webkit-user-modify should be unsupported in contenteditable</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="contentEditableTrue" contenteditable="true"></div>
+<div id="contentEditablePlainText" contenteditable="plaintext-only"></div>
+<script>
+ test(function() {
+ const contentEditableTrue = document.getElementById('contentEditableTrue');
+ assert_equals(getComputedStyle(contentEditableTrue).getPropertyValue('-webkit-user-modify'), '');
+ }, 'contenteditable="true" doesn\'t use unsupported -webkit-user-modify property');
+
+ test(function() {
+ const contentEditablePlainText = document.getElementById('contentEditablePlainText');
+ assert_equals(getComputedStyle(contentEditablePlainText).getPropertyValue('-webkit-user-modify'), '');
+ }, 'contenteditable="plaintext-only" doesn\'t use unsupported -webkit-user-modify property');
+</script>
diff --git a/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-03.html b/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-03.html
new file mode 100644
index 0000000000..e82ceffc37
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/historical/webkit-user-modify-03.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>-webkit-user-modify should be unsupported in CSS.supports</title>
+<link rel="help" href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-modify">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+@supports (-webkit-user-modify: read-only) {
+ #content {
+ width: 10px;
+ height: 10px;
+ background-color: red;
+ }
+}
+</style>
+<div id="content"></div>
+<script>
+ test(function() {
+ const content = document.getElementById('content');
+ assert_not_equals(getComputedStyle(content).getPropertyValue('background-color'), 'rgb(255, 0, 0)');
+ }, '@supports doesn\'t use unsupported -webkit-user-modify property');
+
+ test(function() {
+ const supportsWebkitUserModifyProperty = CSS.supports(`(-webkit-user-modify: read-only) or
+ (-webkit-user-modify: read-write) or
+ (-webkit-user-modify: read-write-plaintext-only) or
+ (-webkit-user-modify: write-only)`);
+ assert_equals(supportsWebkitUserModifyProperty, false);
+ }, 'CSS.supports doesn\'t use unsupported -webkit-user-modify property');
+</script>