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

Unified Diff: LayoutTests/transitions/resources/opacity-transform-transitions-inside-iframe-inner.html

Issue 101623002: Drop "only composite opacity animations when already in compositing mode". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Seperate window.internals and window.testRunner Created 7 years 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
« no previous file with comments | « LayoutTests/transitions/opacity-transition-zindex.html ('k') | Source/core/animation/ActiveAnimations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/transitions/resources/opacity-transform-transitions-inside-iframe-inner.html
diff --git a/LayoutTests/transitions/resources/opacity-transform-transitions-inside-iframe-inner.html b/LayoutTests/transitions/resources/opacity-transform-transitions-inside-iframe-inner.html
new file mode 100644
index 0000000000000000000000000000000000000000..e67f2a6b3a491a13a134e914a0a01e989a67bc6f
--- /dev/null
+++ b/LayoutTests/transitions/resources/opacity-transform-transitions-inside-iframe-inner.html
@@ -0,0 +1,77 @@
+<!DOCTYPE>
+<html>
+<head>
+<style>
+ #background {
+ width: 200px;
+ height: 200px;
+ display: block;
+ background-color: green;
+ }
+ .overlay {
+ width: 50px;
+ height: 50px;
+ background-color: rgba(255, 255, 255, 1);
+ -webkit-transition: opacity 1s;
+ }
+
+ #popup {
+ width: 20px;
+ height: 20px;
+ background-color: red;
+ border-radius: 6px;
+ -webkit-transition: -webkit-transform 1s;
+ }
+
+ .transparent {
+ opacity: 0;
+ }
+
+ [hidden] {
+ display: none;
+ }
+
+ .overlay.transparent .page {
+ -webkit-transform: scale(1) translateY(0px);
+ }
+
+</style>
+<script type="text/javascript" charset="utf-8">
+ function runTest()
+ {
+ var solid_color_overlay = document.getElementById("solid_color_overlay");
+ solid_color_overlay.removeAttribute('hidden');
+
+ var popup = document.getElementById("popup");
+ popup.removeAttribute('hidden');
+
+ // NOTE: This is a hacky way to force the container to layout which
+ // will allow us to trigger the webkit transition.
+ // See crbug.com/324685
+ solid_color_overlay.scrollTop;
+ solid_color_overlay.classList.remove('transparent');
+
+ // dump the pixel in the middle of the transition
+ if (window.internals) {
+ window.internals.forceCompositingUpdate(document);
+ window.internals.pauseAnimations(0.5);
+ }
+ triggerPixelResults();
+ }
+
+ function triggerPixelResults()
+ {
+ parent.postMessage("TriggerPixelResults", '*');
+ }
+
+ window.addEventListener('load', runTest, false);
+</script>
+</head>
+<body>
+<div id="background">
+ <div id="solid_color_overlay" class="overlay transparent" hidden=true>
+ <div id="popup" class="page" hidden=true></div>
+ </div>
+</div>
+</body>
+</html>
« no previous file with comments | « LayoutTests/transitions/opacity-transition-zindex.html ('k') | Source/core/animation/ActiveAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698