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

Side by Side Diff: LayoutTests/fast/frames/seamless/seamless-contenteditable-not-inherited.html

Issue 138443013: Remove iframe@seamless (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Include remove tests Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script>
6 window.onload = function () {
7 debug("This test ensures that content inside a seamless iframe does not inherit editability via the contenteditable attribute on a parent element, b ut does via a CSS rule that cascades into the frame.");
8
9 window.span = document.querySelector('div > iframe').contentDocument .querySelector('span');
10 window.p = document.querySelector('body > iframe').contentDocument.q uerySelector('p');
11
12 shouldBeEqualToString("window.getComputedStyle(span).getPropertyCSSV alue('-webkit-user-modify').cssText", "read-only");
13 shouldBeEqualToString("window.getComputedStyle(p).getPropertyCSSValu e('-webkit-user-modify').cssText", "read-write");
14 };
15 </script>
16 </head>
17 <body>
18 <div contenteditable>
19 <iframe seamless srcdoc="<span>This span is not editable.</span>"></ifra me>
20 </div>
21 <style>
22 p { -webkit-user-modify: read-write; }
23 </style>
24 <iframe seamless srcdoc="<p>This paragraph is not editable.</p>"></iframe>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698