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

Side by Side Diff: LayoutTests/editing/shadow/contenteditable-propagation-to-distributed-node.html

Issue 144853004: Don't use cached inherited props for distributed nodes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Allow sharing inherited properties if -webkit-user-modify is read-only. Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/editing/shadow/contenteditable-propagation-to-distributed-node-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <p>This test checks that contenteditable is propagated to distributed nodes.</p>
4 <div id="host" contenteditable><span></span></div>
5 <pre id="console"></pre>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9
10 // An important part is that the span created below triggers a check for
11 // re-using inherited props from the cache for the distributed span.
12
13 var shadowRoot = host.createShadowRoot();
14 var span = document.createElement("span");
15 var content = document.createElement("content");
16 shadowRoot.appendChild(span);
17 shadowRoot.appendChild(content);
18
19 shouldBeEqualToString("getComputedStyle(shadowRoot.getElementsByTagName('span')[ 0], null).webkitUserModify", "read-only");
20 shouldBeEqualToString("getComputedStyle(shadowRoot.getElementsByTagName('content ')[0].getDistributedNodes()[0], null).webkitUserModify", "read-write");
21
22 successfullyParsed = true;
23 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/shadow/contenteditable-propagation-to-distributed-node-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698