layout/reftests/backgrounds/background-size-body-percent-percent-overflow.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE html>
     2 <html>
     3 <head>
     4   <title>background-size: 100% 100%; on body</title>
     5   <style type="text/css">
     6 body
     7 {
     8   background-image: url(green-8x20-blue-8x20-vertical.png);
     9   background-repeat: no-repeat;
    10   background-attachment: fixed;
    11   overflow: hidden;
    13   /*
    14    * This should not affect how the background paints, that is, how the
    15    * background image is sized:
    16    *
    17    *   If the ‘background-attachment’ value for this image is ‘fixed’ [...] the
    18    *   background positioning area is the initial containing block [CSS21].
    19    *
    20    * Thus '100% 100%' below is relative to the viewport size, so we expect to
    21    * see a background which, modulo aliasing, is half green and half blue.
    22    */
    23   height: 10000px;
    25   background-size: 100% 100%;
    26 }
    27   </style>
    28 </head>
    29 <body>
    30 </body>
    31 </html>

mercurial