layout/reftests/svg/dynamic-class-01.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/dynamic-class-01.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<!--
     1.5 +    Any copyright is dedicated to the Public Domain.
     1.6 +    http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<svg xmlns="http://www.w3.org/2000/svg"
     1.9 +    xmlns:xlink="http://www.w3.org/1999/xlink"
    1.10 +    class="reftest-wait" onload="set_lime_class();">
    1.11 + <title>Test invalidation on setting .className.baseVal</title>
    1.12 + <style type="text/css">
    1.13 +
    1.14 +   .lime { fill: lime; }
    1.15 +
    1.16 + </style>
    1.17 + <script>
    1.18 +
    1.19 +function set_lime_class()
    1.20 +{
    1.21 + document.getElementById('rect').className.baseVal = 'lime';
    1.22 + document.documentElement.removeAttribute('class');
    1.23 +}
    1.24 +
    1.25 + </script>
    1.26 + <rect id="rect" width="100%" height="100%" fill="red"/>
    1.27 +</svg>

mercurial