<?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>146539</bug_id>
          
          <creation_ts>2015-07-01 20:25:58 -0700</creation_ts>
          <short_desc>Weird behavior of css clip-path when trying to create multiple clippling areas using the polygon shape</short_desc>
          <delta_ts>2020-12-02 18:53:12 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>krit</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1106294</commentid>
    <comment_count>0</comment_count>
      <attachid>255987</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-07-01 20:25:58 -0700</bug_when>
    <thetext>Created attachment 255987
test case

Open the attached test case. It has four &lt;div&gt; elements, each of them clips a red rectangle using a css clip-path. The css clip-paths use polygons to create different multiple clipping areas. A clipping area is closed by returning to the first point. This allows multiple areas to be created by a single polygon shape. The clip-paths in the test case represent the combinations of three clipping areas. When two areas are included, the clipping works fine. But when the three clipping areas are included, something wrong happens. The points of areas connect each other.

I could not the specs that explains how to create multiple clipping areas by a single polygon. If it is not spec-ed, then we still have a bug with the first three cases: the two shapes should not be separated. We may also have a bug in the specs for not providing a way to create a &quot;real path&quot; for the css clip-path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1106428</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-07-02 11:35:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/21656455&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>255987</attachid>
            <date>2015-07-01 20:25:58 -0700</date>
            <delta_ts>2015-07-01 20:25:58 -0700</delta_ts>
            <desc>test case</desc>
            <filename>test138.html</filename>
            <type>text/html</type>
            <size>1060</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN0eWxlPgogIC5ib3ggewogICAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogICAgd2lkdGg6IDcy
cHg7CiAgICBoZWlnaHQ6IDcycHg7CiAgICBiYWNrZ3JvdW5kLXNpemU6IDEwMCUgMTAwJTsKICAg
IGJhY2tncm91bmQtY29sb3I6IHJlZDsKICB9CgogIC5jbGlwLXRlc3QxMiB7CiAgICAtd2Via2l0
LWNsaXAtcGF0aDogcG9seWdvbigKICAgICAgMjRweCAxOHB4LCAyNHB4IDI2cHgsIDQ4cHggNDFw
eCwgNTVweCAzN3B4LCAyNHB4IDE4cHgsCiAgICAgIDEycHggMjJweCwgMTRweCAyMnB4LCA2MnB4
IDUycHgsIDYwcHggNTJweCwgMTJweCAyMnB4CiAgICApOwogIH0KICAgIAogIC5jbGlwLXRlc3Qx
MyB7CiAgICAtd2Via2l0LWNsaXAtcGF0aDogcG9seWdvbigKICAgICAgMjRweCAxOHB4LCAyNHB4
IDI2cHgsIDQ4cHggNDFweCwgNTVweCAzN3B4LCAyNHB4IDE4cHgsCiAgICAgIDQ0cHggNDNweCwg
MjRweCAzMXB4LCAyNHB4IDU1cHgsIDQ0cHggNDNweAogICAgKTsKICB9CgogIC5jbGlwLXRlc3Qy
MyB7CiAgICAtd2Via2l0LWNsaXAtcGF0aDogcG9seWdvbigKICAgICAgMTJweCAyMnB4LCAxNHB4
IDIycHgsIDYycHggNTJweCwgNjBweCA1MnB4LCAxMnB4IDIycHgsCiAgICAgIDQ0cHggNDNweCwg
MjRweCAzMXB4LCAyNHB4IDU1cHgsIDQ0cHggNDNweAogICAgKTsKICB9CiAgICAKICAuY2xpcC10
ZXN0MTIzIHsKICAgIC13ZWJraXQtY2xpcC1wYXRoOiBwb2x5Z29uKAogICAgICAyNHB4IDE4cHgs
IDI0cHggMjZweCwgNDhweCA0MXB4LCA1NXB4IDM3cHgsIDI0cHggMThweCwKICAgICAgMTJweCAy
MnB4LCAxNHB4IDIycHgsIDYycHggNTJweCwgNjBweCA1MnB4LCAxMnB4IDIycHgsCiAgICAgIDQ0
cHggNDNweCwgMjRweCAzMXB4LCAyNHB4IDU1cHgsIDQ0cHggNDNweAogICAgKTsKICB9Cjwvc3R5
bGU+CjxkaXYgY2xhc3M9ImJveCBjbGlwLXRlc3QxMiI+PC9kaXY+CjxkaXYgY2xhc3M9ImJveCBj
bGlwLXRlc3QxMyI+PC9kaXY+CjxkaXYgY2xhc3M9ImJveCBjbGlwLXRlc3QyMyI+PC9kaXY+Cjxk
aXYgY2xhc3M9ImJveCBjbGlwLXRlc3QxMjMiPjwvZGl2Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>