layout/reftests/svg/viewBox-valid-02.xhtml

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 <?xml version="1.0"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <html xmlns="http://www.w3.org/1999/xhtml">
     7 <head>
     8   <title>Test viewBox translating out-of-viewport rect into viewport</title>
     9   <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=773450 -->
    10   <style>
    12 div, svg {
    13   display: block;
    14   position: absolute;
    15   width: 100px;
    16   height: 100px; 
    17 }
    19   </style>
    20 </head>
    21 <body bgcolor="lime">
    22   <div style="background:red;"/>
    23   <svg viewBox="100 0 100 100" xmlns="http://www.w3.org/2000/svg">
    24     <rect x="100" y="0" width="100" height="100" fill="lime"/>
    25   </svg>
    26 </body>
    27 </html>

mercurial