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

Unified Diff: LayoutTests/fast/dom/shadow/all-in-shadow-tree.html

Issue 719723002: applyAllProperty should not apply non-inherited properties when inheritedOnly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/all-in-shadow-tree-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/all-in-shadow-tree.html
diff --git a/LayoutTests/fast/dom/shadow/all-in-shadow-tree.html b/LayoutTests/fast/dom/shadow/all-in-shadow-tree.html
new file mode 100644
index 0000000000000000000000000000000000000000..e89add8dff756af6d24a280dbd1c310d8a60e2de
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/all-in-shadow-tree.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<script src="resources/shadow-dom.js"></script>
+<style>
+.test { width: 100px; height: 100px; }
+</style>
+<div class="test"></div>
+<div class="test"></div>
+<script>
+function insertIntoShadowRoot(el) {
+ var sr = el.createShadowRoot();
+ sr.innerHTML = '<div style="all: initial; display: block; width:100%; height: 100%; background: black"></div>';
Timothy Loh 2014/11/13 01:30:25 Missing space in "width:100%". Maybe shadowRoot i
tasak 2014/11/13 02:48:01 Done.
+}
+var tests = document.querySelectorAll('.test');
+insertIntoShadowRoot(tests[0]);
+insertIntoShadowRoot(tests[1]);
+
+description('Test for issue 432257: Matched properties cache should work for all property.');
+var targets = document.querySelectorAll('.test::shadow > div');
+shouldBe('window.getComputedStyle(targets[0]).width', '"100px"');
+shouldBe('window.getComputedStyle(targets[1]).width', '"100px"');
tasak 2014/11/13 01:16:28 targets[1]' styleForElement uses matched propertie
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/all-in-shadow-tree-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698