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

Unified Diff: LayoutTests/fast/dom/shadow/custom-pseudo-scope.html

Issue 843773002: Only match style from element's TreeScope for normal rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed custom pseudo and ::cue regressions Created 5 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/custom-pseudo-scope-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/custom-pseudo-scope.html
diff --git a/LayoutTests/fast/dom/shadow/custom-pseudo-scope.html b/LayoutTests/fast/dom/shadow/custom-pseudo-scope.html
new file mode 100644
index 0000000000000000000000000000000000000000..d582d527e683f5d6ad87621ea805f08f91fa9de0
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/custom-pseudo-scope.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+::-webkit-meter-bar { background: green }
+</style>
+<p>You should see a green, a default styled, and a blue meter below.</p>
+<div><meter></meter></div>
+<div id="host1"></div>
+<div id="host2"></div>
+<script>
+host1.createShadowRoot().innerHTML = "<meter></meter>";
+host2.createShadowRoot().innerHTML = "<style>::-webkit-meter-bar { background: blue }</style><meter></meter>";
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/custom-pseudo-scope-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698