Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Unified Diff: LayoutTests/animations/cascade-important-keyframe-properties.html

Issue 1151893003: Properties labelled !important must be ignored in keyframes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added Layout Test Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/animations/cascade-important-keyframe-properties.html
diff --git a/LayoutTests/animations/cascade-important.html b/LayoutTests/animations/cascade-important-keyframe-properties.html
similarity index 68%
copy from LayoutTests/animations/cascade-important.html
copy to LayoutTests/animations/cascade-important-keyframe-properties.html
index 23b51e4508f7798a311010ae15d997e6f39dbbfe..a7c2d6a91a2ace3d3770a97ff894a79a54c45e78 100644
--- a/LayoutTests/animations/cascade-important.html
+++ b/LayoutTests/animations/cascade-important-keyframe-properties.html
@@ -5,12 +5,12 @@
#test {
width: 100px;
height: 100px;
- background-color: green !important;
- -webkit-animation: test 0.5s;
+ -webkit-animation: test 0.5s forwards;
}
@-webkit-keyframes test {
- from { background-color: red; }
- to { background-color: red; }
+ 0% { background-color: green; }
+ 50% { background-color: red !important; }
+ 100% { background-color: green; }
}
</style>
<script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
@@ -18,14 +18,14 @@
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0, "test", "background-color", "rgb(0, 128, 0)", 0],
- [0.25, "test", "background-color", "rgb(0, 128, 0)", 0],
+ [0.25, "test", "background-color", "rgb(128, 0, 0)", 0],
[0.5, "test", "background-color", "rgb(0, 128, 0)", 0],
];
runAnimationTest(expectedValues);
</script>
</head>
<body>
-<p>Tests that !important properties apply over animations.</p>
+<p>Tests that !important properties are ignored in keyframes.</p>
<div id="test"></div>
<div id="result">
</div>

Powered by Google App Engine
This is Rietveld 408576698