<?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>141068</bug_id>
          
          <creation_ts>2015-01-29 22:17:43 -0800</creation_ts>
          <short_desc>SVG &quot;clip-path&quot; property chooses the wrong element, when multiple elements have a matching ID</short_desc>
          <delta_ts>2023-06-12 07:07:15 -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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>http://code.google.com/p/chromium/issues/detail?id=453722</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>126207</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>gsnedders</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1065494</commentid>
    <comment_count>0</comment_count>
      <attachid>245695</attachid>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2015-01-29 22:17:43 -0800</bug_when>
    <thetext>Created attachment 245695
testcase 1

STR:
 1. Load attached testcase

Expected output:
  Yellow rect inside of a blue rect.

Actual output:
  Red shows up between the yellow and the blue.
  In particular: the yellow rect is clipped to be too small (because there are two clipRect elements with an ID that matches its &quot;clip-path&quot; attribute, and it&apos;s choosing the wrong one)

IE 11 and Firefox/Gecko both give me the expected output. Blink &amp; WebKit give me the incorrect output (with red &amp; the wrong clipRect chosen.)


VERSION INFO: I&apos;ve tested Safari 8 on Mac OS X Yosemite, and midori on Ubuntu 14.10. (both webkit-based). Both show the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1065495</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2015-01-29 22:18:09 -0800</bug_when>
    <thetext>I also filed a Chrome/Blink bug: https://code.google.com/p/chromium/issues/detail?id=453722</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861343</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-04-13 17:30:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/91725385&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861494</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-04-14 07:47:12 -0700</bug_when>
    <thetext>There&apos;s seemingly also some dynamic bugginess here, c.f. https://twitter.com/sophiebits/status/1514404762422181889 about elements getting removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961020</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-06-12 07:07:15 -0700</bug_when>
    <thetext>Fixed by following commit in Blink - https://chromium.googlesource.com/chromium/src/+/533d683571c860e69bb3ecaf6214c5ceed25a808</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>245695</attachid>
            <date>2015-01-29 22:17:43 -0800</date>
            <delta_ts>2015-01-29 22:17:43 -0800</delta_ts>
            <desc>testcase 1</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>1041</size>
            <attacher name="Daniel Holbert">dholbert</attacher>
            
              <data enco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