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

Side by Side Diff: LayoutTests/fast/css/object-position-svg.html

Issue 24077007: Add support for the object-position CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase master again Created 7 years, 3 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <title>object-position on SVG images</title>
6 <style type="text/css">
7 img {
8 object-fit: none;
9 width: 72px;
10 height: 144px;
11 margin: 2px 10px;
12 border: 1px solid black;
13 padding: 5px;
14 background-color: gray;
15 }
16
17 .group { object-position: 30px 30px; }
18 .group > *:nth-child(1) { object-position: right top; }
19 .group > *:nth-child(2) { object-position: left bottom; }
20 .group > *:nth-child(3) { object-position: 10px 125%; }
21 .group > *:nth-child(4) { object-position: 200%; }
22 .group > *:nth-child(5) { object-position: -100%; }
23 .group > *:nth-child(6) { object-position: -25% -10px; }
24 .group > *:nth-child(7) { object-position: 72px 0px; }
25 .group > *:nth-child(8) { object-position: 0px 72px; }
26 .group > *:nth-child(9) { object-position: -72px 0px; }
27 .group > *:nth-child(10) { object-position: 0px -72px; }
28 .group > *:nth-child(11) { object-position: inherit; }
29 .group > *:nth-child(12) { }
30 </style>
31 </head>
32 <body>
33
34 <div class="group">
35 <img src="resources/circle-small.svg" type="image/svg+xml">
36 <img src="resources/circle-small.svg" type="image/svg+xml">
37 <img src="resources/circle-small.svg" type="image/svg+xml">
38 <img src="resources/circle-small.svg" type="image/svg+xml">
39 <img src="resources/circle-small.svg" type="image/svg+xml">
40 <img src="resources/circle-small.svg" type="image/svg+xml">
41 <img src="resources/circle-small.svg" type="image/svg+xml">
42 <img src="resources/circle-small.svg" type="image/svg+xml">
43 <img src="resources/circle-small.svg" type="image/svg+xml">
44 <img src="resources/circle-small.svg" type="image/svg+xml">
45 <img src="resources/circle-small.svg" type="image/svg+xml">
46 <img src="resources/circle-small.svg" type="image/svg+xml">
47 </div>
48
49 </body>
50 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/object-position-expected.html ('k') | LayoutTests/fast/css/object-position-svg-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698