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

Unified Diff: third_party/WebKit/LayoutTests/transitions/transition-end-event-destroy-renderer.html

Issue 2521493002: CSS Transitions: Reduce usage of -webkit prefix in layout tests (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/transitions/transition-end-event-destroy-renderer.html
diff --git a/third_party/WebKit/LayoutTests/transitions/transition-end-event-destroy-renderer.html b/third_party/WebKit/LayoutTests/transitions/transition-end-event-destroy-renderer.html
index 634d90a42b3c1d8d42bf8b129f4d419801e53a1e..31a491bbaf96567f63afdf7b8891e054b3ca497d 100644
--- a/third_party/WebKit/LayoutTests/transitions/transition-end-event-destroy-renderer.html
+++ b/third_party/WebKit/LayoutTests/transitions/transition-end-event-destroy-renderer.html
@@ -6,8 +6,8 @@
width: 100px;
margin: 10px;
background-color: blue;
- -webkit-transition-property: -webkit-transform;
- -webkit-transition-duration: 0.2s;
+ transition-property: transform;
+ transition-duration: 0.2s;
}
</style>
<script>
@@ -34,18 +34,18 @@
function startTest()
{
var box1 = document.getElementById('box1');
- box1.addEventListener('webkitTransitionEnd', function() {
+ box1.addEventListener('transitionend', function() {
box1.parentNode.removeChild(box1);
transitionEnded();
}, false);
- box1.style.webkitTransform = 'translate(100px, 0)';
+ box1.style.transform = 'translate(100px, 0)';
var box2 = document.getElementById('box2');
- box2.addEventListener('webkitTransitionEnd', function() {
+ box2.addEventListener('transitionend', function() {
box2.style.display = 'none';
transitionEnded();
}, false);
- box2.style.webkitTransform = 'translate(100px, 0)';
+ box2.style.transform = 'translate(100px, 0)';
}
window.addEventListener('load', startTest, false);
@@ -53,7 +53,7 @@
</head>
<body>
-<p>Tests element removal and hiding in webkitTransitionEnd event handler. Should not crash.</p>
+<p>Tests element removal and hiding in transitionend event handler. Should not crash.</p>
<div id="container">
<div id="box1" class="box"></div>

Powered by Google App Engine
This is Rietveld 408576698