mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 9919d0f04266001686c09d47ff6e25c98b48d91f
This commit is contained in:
parent
026e550d35
commit
e7fcc8e274
453 changed files with 7751 additions and 2288 deletions
|
@ -13,29 +13,21 @@
|
|||
<div id="test"></div>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_not_equals(document.getElementById("test").style.transform, undefined, "expect transform is not undefined");
|
||||
}, "Check the existence of transform.");
|
||||
|
||||
test(function() {
|
||||
assert_own_property(document.getElementById("test").style, "transform-origin", "expect transform-origin");
|
||||
}, "Check the existence of transform-origin.");
|
||||
|
||||
test(function() {
|
||||
assert_own_property(document.getElementById("test").style, "transform-style", "expect transform-style");
|
||||
}, "Check the existence of transform-style.");
|
||||
|
||||
test(function() {
|
||||
assert_own_property(document.getElementById("test").style, "perspective", "expect perspective");
|
||||
}, "Check the existence of perspective.");
|
||||
|
||||
test(function() {
|
||||
assert_own_property(document.getElementById("test").style, "perspective-origin", "expect perspective-origin");
|
||||
}, "Check the existence of perspective-origin.");
|
||||
|
||||
test(function() {
|
||||
assert_own_property(document.getElementById("test").style, "backface-visibility", "expect backface-visibility");
|
||||
}, "Check the existence of backface-visibility.");
|
||||
[
|
||||
'transform',
|
||||
'transform-origin',
|
||||
'transform-style',
|
||||
'perspective',
|
||||
'perspective-origin',
|
||||
'backface-visibility',
|
||||
].forEach(property => {
|
||||
test(() => {
|
||||
assert_true(
|
||||
property in document.getElementById('test').style,
|
||||
`expect ${property}`,
|
||||
);
|
||||
}, `Check the existence of ${property}.`);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Transform Module Level 2: getComputedValue().backfaceVisibility</title>
|
||||
<title>CSS Transform Module Level 2: getComputedStyle().backfaceVisibility</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#backface-visibility-property">
|
||||
<meta name="assert" content="backface-visibility computed value is as specified.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue