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

Unified Diff: LayoutTests/compositing/will-change/containing-block-removed.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/containing-block-removed.html
diff --git a/LayoutTests/compositing/will-change/containing-block-removed.html b/LayoutTests/compositing/will-change/containing-block-removed.html
new file mode 100644
index 0000000000000000000000000000000000000000..0645f9ff7d39aaed625cb5806b9ec37f7e53082c
--- /dev/null
+++ b/LayoutTests/compositing/will-change/containing-block-removed.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ #container {
+ will-change: -webkit-transform;
+ position: absolute;
+ left: 200px;
+ top: 100px;
+ width: 100px;
+ height: 100px;
+ background-color: blue;
+ }
+
+ .fixed {
+ position: fixed;
+ left: 50px;
+ top: 50px;
+ width: 75px;
+ height: 75px;
+ background-color: green
+ }
+ </style>
+ <script type="text/javascript">
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ }
+
+ function doTest()
+ {
+ if (window.internals) {
+ window.internals.forceCompositingUpdate(document);
+ }
+ // Removing "will-change: -webkit-transform" to the container div should
+ // make this div no longer be the containing block for its fixed position
+ // descendant.
+ document.getElementById("container").style.willChange = "top";
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }
+
+ window.addEventListener('load', doTest, false);
+ </script>
+</head>
+
+<body>
+ <div id="container">
+ <div class="fixed"></div>
+ </div>
+</body>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698