mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue