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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <div id= "host"></div>
5 <script>
6 test(() => {
7 var root = host.attachShadow({ mode: 'open' });
8 root.innerHTML = '<slot></slot>';
9 assert_equals(getComputedStyle(root.querySelector('slot')).color, 'rgb(0, 0, 0 )');
10 }, 'Getting CSS property value for a slot should not cause a crash');
11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698