| OLD | NEW |
| (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> | |
| OLD | NEW |