mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision b'2d1ad05908ee5447fdfa70eed9757273aa5da367'
This commit is contained in:
parent
7809bb7cba
commit
84de92ecaf
83 changed files with 1324 additions and 779 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue