mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
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
34 lines
950 B
HTML
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>
|