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

Unified Diff: LayoutTests/css3/compositing/isolation-isolate-simple.html

Issue 75303002: [Blending and compositing] Implement the isolation CSS property in software (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: LayoutTests/css3/compositing/isolation-isolate-simple.html
diff --git a/LayoutTests/css3/compositing/isolation-isolate-simple.html b/LayoutTests/css3/compositing/isolation-isolate-simple.html
new file mode 100644
index 0000000000000000000000000000000000000000..907d8f6b9412374d74bf313e719277a8556349a3
--- /dev/null
+++ b/LayoutTests/css3/compositing/isolation-isolate-simple.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<style>
+ div {
+ width: 10px;
+ height: 10px;
+ background: green;
+ isolation:isolate;
+ }
+</style>
+<!-- Isolation should create a stacking context. Test if "isolation:isolate" sets the zIndex to 0, instead of the default "auto" value. -->
+<body>
+ <div id="isolator"></div>
+ <script src="../../resources/js-test.js"></script>
+ <script>
+ var zIndex = getComputedStyle(document.getElementById("isolator")).zIndex
+
+ shouldBeZero(zIndex);
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698