fune/testing/web-platform/tests/css/css-cascade/important-prop.html
AutomatedTester 4335303afc Bug 1437573 [wpt PR 8689] - Reftest for handling important when there is an animation., a=testonly
Automatic update from web-platform-testsReftest for handling important when there is an animation.

This tests https://drafts.csswg.org/css-cascade/#importance

wpt-commits: 5ee47da05ffc366a887788ccdc3f7a0673c35953
wpt-pr: 8689
wpt-commits: 5ee47da05ffc366a887788ccdc3f7a0673c35953
wpt-pr: 8689
2018-03-31 22:22:09 +01:00

32 lines
739 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Cascade: Important</title>
<link rel="author" title="David Burns" href="http://www.theautomatedtester.co.uk">
<link rel="help" href="https://drafts.csswg.org/css-cascade/#importance">
<link rel="match" href="important-prop-ref.html">
<meta name="flags" content="">
<style>
@keyframes override{
from, to{background-color: #f00;}
}
.square {
color:#00f;
animation: override 1s infinite;
width: 100px;
height: 100px;
}
.green {
background-color:green !important;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="square green"></div>
</body>
</html>