Update web-platform-tests to revision b'2d1ad05908ee5447fdfa70eed9757273aa5da367'

This commit is contained in:
WPT Sync Bot 2023-03-05 01:39:17 +00:00
parent 7809bb7cba
commit 84de92ecaf
83 changed files with 1324 additions and 779 deletions

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<title>CSS Transitions Test: !important property</title>
<link rel="help" href="https://drafts.csswg.org/css-cascade-5/#cascade-sort">
<script src="/resources/testharness.js" type="text/javascript"></script>
<script src="/resources/testharnessreport.js" type="text/javascript"></script>
<style>
#target {
width: 200px;
height: 200px;
background-color: green;
transition: background-color 100s;
}
.red {
background-color: red !important;
}
</style>
<div id="target"></div>
<script>
test(t => {
assert_equals(getComputedStyle(target).backgroundColor, "rgb(0, 128, 0)");
target.className = "red";
assert_equals(getComputedStyle(target).backgroundColor, "rgb(0, 128, 0)");
}, "!important should not override transition");
</script>