<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>9998</bug_id>
          
          <creation_ts>2006-07-19 02:01:53 -0700</creation_ts>
          <short_desc>&lt;text&gt; elements wrap when they shouldn&apos;t</short_desc>
          <delta_ts>2006-09-12 23:23:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/Graphics/SVG/Test/20030813/htmlframe/full-text-align-03-b.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>10380</dependson>
          <blocked>6423</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Hunt">oliver</reporter>
          <assigned_to name="Oliver Hunt">oliver</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50322</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2006-07-19 02:01:53 -0700</bug_when>
    <thetext>SVG spec says &lt;text&gt; elements should not wrap, yet currently they do</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50602</commentid>
    <comment_count>1</comment_count>
      <attachid>9627</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2006-07-23 07:06:44 -0700</bug_when>
    <thetext>Created attachment 9627
fix 1

Okay, after traipsing through tonnes of code, i have modified svg.css :-/

This patch fixes the wrapping of text in svg elements but there are a number of problems:
 * It&apos;s fixing a symptom -- the underlying problem is that tspans are not inheriting style from the containing &lt;text&gt; element
 * It &quot;breaks&quot; many of the svg tests -- though these are corrections or strange minor changes in character positions (eg. 1px horizontal movement)
 * It actually breaks a few tests -- filters-light-01-f for example -- though i cannot work out why or how

Oh, the addition white-space: nowrap to &lt;text&gt; in svg.css is needed regardless -- so that&apos;s probably going to be in the final patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50636</commentid>
    <comment_count>2</comment_count>
      <attachid>9646</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2006-07-23 23:38:22 -0700</bug_when>
    <thetext>Created attachment 9646
testcase demonstrating borked wrapping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55357</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-09-12 23:23:16 -0700</bug_when>
    <thetext>This is fixed in TOT.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9627</attachid>
            <date>2006-07-23 07:06:44 -0700</date>
            <delta_ts>2006-07-23 07:06:44 -0700</delta_ts>
            <desc>fix 1</desc>
            <filename>svgtextnowrap.patch</filename>
            <type>text/plain</type>
            <size>383</size>
            <attacher name="Oliver Hunt">oliver</attacher>
            
              <data encoding="base64">SW5kZXg6IGNzcy9zdmcuY3NzCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGNzcy9zdmcuY3NzCShyZXZpc2lvbiAx
NTU3MCkKKysrIGNzcy9zdmcuY3NzCSh3b3JraW5nIGNvcHkpCkBAIC00Nyw1ICs0NywxMCBAQCBz
dmcsIHN5bWJvbCwgbWFya2VyLCBwYXR0ZXJuIHsKIH0KIAogdGV4dCwgZm9yZWlnbk9iamVjdCB7
Ci0gICAgZGlzcGxheTogYmxvY2sgIWltcG9ydGFudAorICAgIGRpc3BsYXk6IGJsb2NrICFpbXBv
cnRhbnQ7CisgICAgd2hpdGUtc3BhY2U6IG5vd3JhcCAhaW1wb3J0YW50OworfQorCit0c3BhbiB7
CisgICAgd2hpdGUtc3BhY2U6IG5vd3JhcCAhaW1wb3J0YW50OwogfQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>9646</attachid>
            <date>2006-07-23 23:38:22 -0700</date>
            <delta_ts>2006-07-23 23:38:22 -0700</delta_ts>
            <desc>testcase demonstrating borked wrapping</desc>
            <filename>textelem.svg</filename>
            <type>image/svg+xml</type>
            <size>768</size>
            <attacher name="Oliver Hunt">oliver</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJM
SUMgIi0vL1czQy8vRFREIFNWRyAxLjEgQmFzaWMvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3Jh
cGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEtYmFzaWMuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3
dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hs
aW5rIiAgaWQ9InN2Zy1yb290IiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIw
IDAgNDgwIDM2MCIgdmVyc2lvbj0iMS4xIiBiYXNlUHJvZmlsZT0iYmFzaWMiPgogICA8dGl0bGUg
aWQ9InRlc3QtdGl0bGUiPnRleHQgd3JhcHBpbmcgPC90aXRsZT4KICAgPGRlc2MgaWQ9InRlc3Qt
ZGVzYyI+dGVzdCB0byBlbnN1cmUgbG9uZyB0ZXh0IGlzIG5vdCB3cmFwcGVkPC9kZXNjPgogICA8
ZyBpZD0idGVzdC1ib2R5LWNvbnRlbnQi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