<?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>40481</bug_id>
          
          <creation_ts>2010-06-11 10:42:37 -0700</creation_ts>
          <short_desc>Consider adding support for :first-letter and :first-line in SVG</short_desc>
          <delta_ts>2022-07-15 14:51:56 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/rLCLj/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abhishek Arya">inferno</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>hyatt</cc>
    
    <cc>krit</cc>
    
    <cc>schenney</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>236898</commentid>
    <comment_count>0</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2010-06-11 10:42:37 -0700</bug_when>
    <thetext>There was no seperate implementation of :first-letter and :first-line for SVG, which is why we had crashes and incorrect layouts when those pseudo classes were used for text elements in SVG. As a result, we disabled them in security bug - https://bugs.webkit.org/show_bug.cgi?id=40031. Other browsers such as firefox, opera, (svg implementation batik) don&apos;t support it. However, after chatting with Dave, Maciej, we should consider writing these features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237237</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-06-11 22:57:39 -0700</bug_when>
    <thetext>:first-line doesn&apos;t make sense for texts in SVG. We don&apos;t have block level elements like paragraph in SVG. So :first-line would always be true on texts. Are there other application areas for this pseudo element?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241915</commentid>
    <comment_count>2</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2010-06-23 10:21:24 -0700</bug_when>
    <thetext>How about :first-letter, does that apply to SVG ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241929</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-06-23 10:37:03 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; How about :first-letter, does that apply to SVG ?

Yea, I think so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241963</commentid>
    <comment_count>4</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2010-06-23 11:25:33 -0700</bug_when>
    <thetext>cut-copy-paste from 40031

In an SVG user agent that supports CSS style sheets, the following facilities from [CSS2] must be supported:
---------
    * CSS2&apos;s dynamic pseudo-classes :hover, :active and :focus and pseudo-classes :first-child, :visited, :link and :lang. The remaining CSS2 pseudo-classes, including those having to do with generated content, are not part of the SVG language definition. (Note: an SVG element gains focus when it is selected. See Text selection.)
---------

Is it part of SVG specification or a requirement ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>538087</commentid>
    <comment_count>5</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-01-18 12:51:13 -0800</bug_when>
    <thetext>Adding myself to CC list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1008544</commentid>
    <comment_count>6</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2014-05-12 05:49:21 -0700</bug_when>
    <thetext>I attached a test case. It does not seem to run in any browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884256</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 14:51:56 -0700</bug_when>
    <thetext>Safari, Chrome, and Firefox all agree on rendering for this test case. I don&apos;t believe there is any remaining compatibility issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>