Files
firefox/testing/web-platform/tests/css/css-transforms/css-transform-property-existence.html
T
Boris 88e159976c Bug 1565350 [wpt PR 17778] - [css-transforms] Avoid using assert_own_property on testing style properties., a=testonly
Automatic update from web-platform-tests
[css-transforms] Avoid using assert_own_property on style property. (#17778)

These `assert_own_property` tests cause these CSS tests to fail on Firefox
only, and I think these properties are not supposted to be own properties,
so use a similar way as https://github.com/web-platform-tests/wpt/pull/16892,
to test the existence of these properties.
--

wpt-commits: 47543ee66eb535b6910292f199f3b789bec263f0
wpt-pr: 17778
2019-07-24 13:34:06 +01:00

34 lines
950 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Transforms Test: property existence</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#propdef-transform">
<meta name="flags" content="dom">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="test"></div>
<div id="log"></div>
<script>
[
'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>