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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-embed-element/embed-dimension.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 <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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698