layout/reftests/svg/sizing/dynamic--inline-resize-cb-height.xhtml
author L. David Baron <dbaron@dbaron.org>
Sun, 12 Jun 2011 18:52:32 -0700
changeset 70944 58fe3ede72f834b7110fa5b937bee6995d43a174
parent 32960 6635995931c976b6b4f786da9b44c7704ef0aa5d
child 71457 41de88315cfa99a7ceeb00a42c12fb9d955354df
permissions -rw-r--r--
Remove notion of percentage intrinsic size: remove the single case that (incorrectly) sets percentage intrinsic sizes, and fix all of the tests that depend on our old incorrect behavior. (Bug 611099) r=dholbert Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.

<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/licenses/publicdomain/
-->
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
  <head>

    <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=294086 -->

    <title>Test: resize of container block height</title>

    <!--
    This testcase checks that SVG embedded inline with a percentage height is
    updated correctly when its containing block is resized.
    -->

    <style type="text/css">

html, body, div {
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  height: 100%;  /* inline style override on the div below */
  background: white;
  overflow: hidden;
}

    </style>
    <script type="text/javascript">

function resize_div()
{
  var XHTML_NS = 'http://www.w3.org/1999/xhtml';
  document.getElementsByTagNameNS(XHTML_NS, 'div').item(0).style.height = '100%';
  document.documentElement.removeAttribute('class');
}

document.addEventListener("MozReftestInvalidate", resize_div, false);

    </script>
  </head>
  <body>

    <div style="height:50%;">
      <svg xmlns="http://www.w3.org/2000/svg" width="5000" height="100%">
        <rect width="100%" height="100%" fill="blue"/>
      </svg>
    </div>

  </body>
</html>