| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="resources/shadow-dom.js"></script> | 5 <script src="resources/shadow-dom.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <p id="description"></p> | 8 <p id="description"></p> |
| 9 <div id="contenteditable-host1" contenteditable></div> | 9 <div id="contenteditable-host1" contenteditable></div> |
| 10 <div id="contenteditable-host2" contenteditable></div> | 10 <div id="contenteditable-host2" contenteditable></div> |
| 11 <div id="contenteditable-host3" contenteditable></div> | 11 <div id="contenteditable-host3" contenteditable></div> |
| 12 <div id="non-contenteditable-host1"></div> | 12 <div id="non-contenteditable-host1"></div> |
| 13 <div id="non-contenteditable-host2"></div> | 13 <div id="non-contenteditable-host2"></div> |
| 14 <div id="non-contenteditable-host3"></div> | 14 <div id="non-contenteditable-host3"></div> |
| 15 <div id="sandbox"></div> | 15 <div id="sandbox"></div> |
| 16 <div id="sandbox2"></div> | 16 <div id="sandbox2"></div> |
| 17 <pre id="console"></pre> | 17 <pre id="console"></pre> |
| 18 <script> | 18 <script> |
| 19 description("Tests to ensure that a '-webkit-user-modify' CSS property is not in
herited across shadow boundaries."); | 19 description("Tests to ensure that a '-webkit-user-modify' CSS property is not in
herited across shadow boundaries."); |
| 20 if (window.testRunner) | |
| 21 testRunner.dumpAsText(); | |
| 22 | 20 |
| 23 function computedStyle(element) { | 21 function computedStyle(element) { |
| 24 return window.getComputedStyle(element).webkitUserModify; | 22 return window.getComputedStyle(element).webkitUserModify; |
| 25 } | 23 } |
| 26 | 24 |
| 27 function getUserModifyProperty(id) { | 25 function getUserModifyProperty(id) { |
| 28 return computedStyle(document.getElementById(id)); | 26 return computedStyle(document.getElementById(id)); |
| 29 } | 27 } |
| 30 | 28 |
| 31 function prepareNodeInShadowRoot(host, contentEditableAttributeValueForNode) { | 29 function prepareNodeInShadowRoot(host, contentEditableAttributeValueForNode) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 createDOM('content', {'select': '#child
-d'}))), | 63 createDOM('content', {'select': '#child
-d'}))), |
| 66 createDOM('div', {'id': 'child-c'}), | 64 createDOM('div', {'id': 'child-c'}), |
| 67 createDOM('div', {'id': 'child-d'}))); | 65 createDOM('div', {'id': 'child-d'}))); |
| 68 | 66 |
| 69 shouldBeEqualToString('getUserModifyProperty("child-c")', 'read-only'); | 67 shouldBeEqualToString('getUserModifyProperty("child-c")', 'read-only'); |
| 70 shouldBeEqualToString('getUserModifyProperty("child-d")', 'read-only'); | 68 shouldBeEqualToString('getUserModifyProperty("child-d")', 'read-only'); |
| 71 | 69 |
| 72 </script> | 70 </script> |
| 73 </body> | 71 </body> |
| 74 </html> | 72 </html> |
| OLD | NEW |