[Webkit-unassigned] [Bug 16305] Width of svg elements not applied to container elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 15 02:20:18 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=16305





------- Comment #4 from eric at webkit.org  2007-12-15 02:20 PDT -------
This also shows the bug:

<html>
<head>
  <script type="text/javascript">
    function draw() {
      var NS = "http://www.w3.org/2000/svg";
      var s = document.createElementNS(NS, "svg");
      s.setAttribute("width", 400);
      s.setAttribute("height", 200);

      var rect = document.createElementNS(NS, "rect");
      rect.setAttribute("width", "100%");
      rect.setAttribute("height", "100%");
      rect.setAttribute("fill", "yellow");

      s.appendChild(rect);
      document.getElementById("d").appendChild(s);
   }
  </script>
</head>

<body onload="draw()">
  <div style="border: 3px solid black; float: left;" id="d"></div>
</body>
</html>


Interestingly, Firefox seems to have the same bug in the float case. Opera does
not.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list