[Webkit-unassigned] [Bug 13797] New: SVG Text not displayed if moved to the right

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 21 09:26:38 PDT 2007


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

           Summary: SVG Text not displayed if moved to the right
           Product: WebKit
           Version: 522+ (nightly)
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yoah at google.com


See example file below.
When this file is opened, the second table cell displayes correctly centered
SVG text. If you change the width of column 1 (id='pad') from 500 to 600, the
text in the second cell is no longer displayed at all.

<!DOCTYPE HTML>
<html>
<head>
  <title>WebKit SVG Bug</title>
  <script type="text/javascript">
    function draw() {
      var NS = 'http://www.w3.org/2000/svg';
      var s = document.createElementNS(NS, "svg");
      s.setAttribute("width", 600);
      s.setAttribute("height", 300);

      var t = document.createElementNS(NS, "text");
      t.setAttribute("font-size", 30);
      t.setAttribute("stroke", "red");
      t.setAttribute("stroke-width", "1");
      t.setAttribute("fill", "green");
      t.setAttribute("font-family", "Helvetica");
      t.setAttribute("text-anchor", "middle");
      t.setAttribute("x", "300");
      t.setAttribute("y", "26");
      t.appendChild(document.createTextNode("Text in SVG, Centered"));

      s.appendChild(t);
      document.getElementById("d").appendChild(s);

   }
  </script>

</head>

<body onload="draw()">
<table border="1">
  <tr>
     <td id="pad" style="background-color:#f0f0f0; width:500px;"></td>
     <td><div style="width:600px;height:300px" id="d"></div></td>
  </tr>
</body>

</html>


-- 
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