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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-get-computed-style.html

Issue 2266353004: Make Document::styleForElementIgnoringPendingStyleSheets() be aware of a flat tree structure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update the test Created 4 years, 4 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: third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-get-computed-style.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-get-computed-style.html b/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-get-computed-style.html
new file mode 100644
index 0000000000000000000000000000000000000000..8f08d0e9d921558f9b39ae1f7fa67e46d33fe3c1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-get-computed-style.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<div id= "host"></div>
+<script>
+test(() => {
+ var root = host.attachShadow({ mode: 'open' });
+ root.innerHTML = '<slot></slot>';
+ assert_equals(getComputedStyle(root.querySelector('slot')).color, 'rgb(0, 0, 0)');
+}, 'Getting CSS property value for a slot should not cause a crash');
+</script>

Powered by Google App Engine
This is Rietveld 408576698