layout/reftests/backgrounds/background-size-zoom-repeat-ref.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>background-size: 64px 40px; repeat, zoom reference</title>
michael@0 5 <style type="text/css">
michael@0 6 html
michael@0 7 {
michael@0 8 margin: 0;
michael@0 9 padding: 0;
michael@0 10 }
michael@0 11 body
michael@0 12 {
michael@0 13 margin: 0;
michael@0 14 padding: 20px;
michael@0 15 }
michael@0 16 #outer
michael@0 17 {
michael@0 18 width: 512px;
michael@0 19 height: 320px;
michael@0 20 }
michael@0 21 /*
michael@0 22 * PRE-ZOOM:
michael@0 23 * 2x size the image, then tile it 4x4 across the div; sampling artifacts at
michael@0 24 * 32px horizontal offset, then every 64px for the full height of the div.
michael@0 25 * POST-ZOOM:
michael@0 26 * 4x size the image, then tile it 4x4 across the div; sampling artifacts at
michael@0 27 * 64px horizontal offset, then every 128px for the full height of the div.
michael@0 28 */
michael@0 29
michael@0 30 /* Aargh, sampling artifacts, we hates them, precioussss. */
michael@0 31 #outer > div
michael@0 32 {
michael@0 33 display: inline-block;
michael@0 34 width: 56px;
michael@0 35 height: 320px;
michael@0 36 }
michael@0 37 .blue
michael@0 38 {
michael@0 39 background: url(blue-16x20.png);
michael@0 40 border-right: 8px solid black;
michael@0 41 }
michael@0 42 .green
michael@0 43 {
michael@0 44 background: url(green-16x20.png);
michael@0 45 border-left: 8px solid black;
michael@0 46 }
michael@0 47 </style>
michael@0 48 </head>
michael@0 49 <body>
michael@0 50 <div id="outer"><div
michael@0 51 class="blue"></div><div
michael@0 52 class="green"></div><div
michael@0 53 class="blue"></div><div
michael@0 54 class="green"></div><div
michael@0 55 class="blue"></div><div
michael@0 56 class="green"></div><div
michael@0 57 class="blue"></div><div
michael@0 58 class="green"></div></div>
michael@0 59 </body>
michael@0 60 </html>

mercurial