Index: third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html b/third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7eb7e4062e92f99630c9872597d9df911e2fa86d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<style> |
+ .green { color: green; } |
+ body { perspective: inherit; } |
+</style> |
+<body> |
+<script> |
+ test(() => { |
+ var root = document.documentElement.createShadowRoot(); |
+ document.body.offsetTop; |
+ document.documentElement.className = "green"; |
+ document.body.offsetTop; |
+ root.appendChild(document.createElement("content")); |
+ }, "Check that we don't trigger an assert by caching matched properties for an element using explicit inheritance."); |
+</script> |