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

Unified Diff: LayoutTests/compositing/will-change/composited-layers.html

Issue 175263002: Implement will-change-based creation of layers, stacking contexts, and containing blocks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always create a stacking context for will-change:position Created 6 years, 10 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/compositing/will-change/composited-layers.html
diff --git a/LayoutTests/compositing/will-change/composited-layers.html b/LayoutTests/compositing/will-change/composited-layers.html
new file mode 100644
index 0000000000000000000000000000000000000000..47fdcfa17eb6bd3815ed6ea1842cf172e5ca136b
--- /dev/null
+++ b/LayoutTests/compositing/will-change/composited-layers.html
@@ -0,0 +1,108 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ .shouldComposite {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ background-color: green;
+ }
+
+ .shouldNotComposite {
+ position: absolute;
+ width: 50px;
+ height: 50px;
+ background-color: red;
+ }
+
+ #willChangeAuto {
+ will-change: auto;
+ top: 0px;
+ left: 0px;
+ }
+
+ #willChangeOpacity {
+ will-change: opacity;
+ top: 0px;
+ left: 60px;
+ }
+
+ #willChangeTransform {
+ will-change: -webkit-transform;
+ top: 0px;
+ left: 120px;
+ }
+
+ #willChangeLeft {
+ will-change: left;
+ top: 0px;
+ left: 180px;
+ }
+
+ #willChangeRight {
+ will-change: right;
+ top: 0px;
+ left: 240px;
+ }
+
+ #willChangeTop {
+ will-change: right;
+ top: 60px;
+ left: 0px;
+ }
+
+ #willChangeBottom {
+ will-change: bottom;
+ top: 60px;
+ left: 60px;
+ }
+
+ #willChangeFilter {
+ will-change: -webkit-filter;
+ top: 60px;
+ left: 120px;
+ }
+
+ #willChangeCombinationThatComposites {
+ will-change: transition, -webkit-animation, top, z-index;
+ top: 60px;
+ left: 180px;
+ }
+
+ #willChangeZIndex {
+ will-change: z-index;
+ top: 60px;
+ left: 240px
+ }
+ </style>
+
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ window.addEventListener('load', function() {
+ if (window.testRunner) {
+ document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
+ testRunner.notifyDone();
+ }
+ }, false);
+ </script>
+</head>
+<body>
+ <div id="willChangeAuto" class="shouldNotComposite"></div>
+ <div id="willChangeOpacity" class="shouldComposite"></div>
+ <div id="willChangeTransform" class="shouldComposite"></div>
+ <div id="willChangeLeft" class="shouldComposite"></div>
+ <div id="willChangeRight" class="shouldComposite"></div>
+ <div id="willChangeTop" class="shouldComposite"></div>
+ <div id="willChangeBottom" class="shouldComposite"></div>
+ <div id="willChangeFilter" class="shouldComposite"></div>
+ <div id="willChangeCombinationThatComposites" class="shouldComposite"></div>
+ <div id="willChangeZIndex" class="shouldNotComposite"></div>
+
+ <pre id="layertree"></pre>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698