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

Side by Side Diff: LayoutTests/fast/frames/seamless/seamless-inherited-document-style.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 <script src="../../../resources/js-test.js"></script>
3 <style>
4 iframe {
5 -webkit-rtl-ordering: visual;
6 -webkit-user-modify: read-write;
7 -webkit-locale: 'en_US';
8 writing-mode: lr;
9 direction: rtl;
10 font: normal normal normal 18px/normal Ahem;
11 }
12 </style>
13 <iframe id="iframe" seamless srcdoc=""></iframe>
14 <script>
15 debug("Test that seamless iframes inherit styles from their parent iframe instea d of using StyleResolver::styleForDocument defaults.")
16 window.onload = function () {
17 window.iframe = document.getElementById("iframe");
18 window.rootElement = iframe.contentDocument.documentElement;
19 shouldBeEqualToString("window.getComputedStyle(rootElement)['-webkit-rtl-ord ering']", "visual");
20 shouldBeEqualToString("window.getComputedStyle(rootElement)['-webkit-locale' ]", "en_US");
21 shouldBeEqualToString("window.getComputedStyle(rootElement)['writing-mode']" , "lr");
22 shouldBeEqualToString("window.getComputedStyle(rootElement)['direction']", " rtl");
23 shouldBeEqualToString("window.getComputedStyle(rootElement)['font']", "norma l normal normal 18px/normal Ahem");
24
25 debug("'-webkit-user-modify', on the other hand, should not be inherited.");
26 shouldBeEqualToString("window.getComputedStyle(rootElement)['-webkit-user-mo dify']", "read-only");
27 }
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698