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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/viewBox-valid-02.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!--
     1.6 +     Any copyright is dedicated to the Public Domain.
     1.7 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.8 +-->
     1.9 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.10 +<head>
    1.11 +  <title>Test viewBox translating out-of-viewport rect into viewport</title>
    1.12 +  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=773450 -->
    1.13 +  <style>
    1.14 +
    1.15 +div, svg {
    1.16 +  display: block;
    1.17 +  position: absolute;
    1.18 +  width: 100px;
    1.19 +  height: 100px; 
    1.20 +}
    1.21 +
    1.22 +  </style>
    1.23 +</head>
    1.24 +<body bgcolor="lime">
    1.25 +  <div style="background:red;"/>
    1.26 +  <svg viewBox="100 0 100 100" xmlns="http://www.w3.org/2000/svg">
    1.27 +    <rect x="100" y="0" width="100" height="100" fill="lime"/>
    1.28 +  </svg>
    1.29 +</body>
    1.30 +</html>

mercurial