OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset=UTF-8> |
| 3 <title>HTML Test: Text in the del element should be 'line-through'</title> |
| 4 <link rel="author" title="Intel" href="http://www.intel.com/"> |
| 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-del-element"> |
| 6 <script src="../../../../../../resources/testharness.js"></script> |
| 7 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 8 |
| 9 <p><del>crossed-off text</del></p> |
| 10 <div id="log"></div> |
| 11 |
| 12 <script> |
| 13 test(function() { |
| 14 var element = document.getElementsByTagName('del')[0], |
| 15 textDecoration = getComputedStyle(element).textDecorationLine || |
| 16 getComputedStyle(element).textDecoration; |
| 17 assert_equals(textDecoration, 'line-through'); |
| 18 }); |
| 19 </script> |
OLD | NEW |