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

Side by Side Diff: LayoutTests/fast/images/img-dimensions-styled.html

Issue 1299563002: HTMLImageElement width/height should updateLayout first. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Check if we're in the document. Created 5 years, 4 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
3 <script src="../../resources/js-test.js"></script>
4
5 <style>
6 img {
7 width: 200px;
8 height: 200px;
9 }
10 </style>
11
12 <img id="image" src="resources/test-load.jpg" width="100" height="100">
13
14 <script>
15 description("Should used styled image dimensions if available.");
16 var image = document.getElementById("image");
17 shouldBe("image.width", "200");
18 shouldBe("image.height", "200");
19 var rect = image.getBoundingClientRect();
20 shouldBe("rect.width", "200");
21 shouldBe("rect.height", "200");
22 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/images/img-dimensions-styled-expected.txt » ('j') | Source/core/html/HTMLImageElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698