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> |