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

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

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>HTMLImageElement.width/height returns styled dimensions.</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <style>
6 img {
7 width: 200px;
8 height: 200px;
9 }
10 </style>
11 <img src="resources/test-load.jpg" width="100" height="100">
12 <script>
13 test(function() {
14 var image = document.querySelector("img");
15 assert_equals(image.width, 200);
16 assert_equals(image.height, 200);
17 var rect = image.getBoundingClientRect();
18 assert_equals(rect.width, 200);
19 assert_equals(rect.height, 200);
20 });
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698