OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>HTML Test: dimension</title> |
| 4 <link rel="author" title="Intel" href="http://www.intel.com"> |
| 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element
"> |
| 6 <script src="../../../../../../resources/testharness.js"></script> |
| 7 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 8 <div id="log"></div> |
| 9 <embed src="/images/blue.png" height="100" width="100" id="test"> |
| 10 <script> |
| 11 test(function () { |
| 12 var height = getComputedStyle(document.getElementById("test"), false)["heigh
t"]; |
| 13 assert_equals(height, "100px", "The height of the embed element should be 10
0px."); |
| 14 }, "Check the actual length of the embed element's height"); |
| 15 |
| 16 test(function () { |
| 17 var width = getComputedStyle(document.getElementById("test"), false)["width"
]; |
| 18 assert_equals(width, "100px", "The width of the embed element should be 100p
x."); |
| 19 }, "Check the actual length of the embed element's width"); |
| 20 </script> |
OLD | NEW |