<?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>200381</bug_id>
          
          <creation_ts>2019-08-01 22:00:26 -0700</creation_ts>
          <short_desc>Reference clip-path doesn&apos;t work on &lt;video&gt; element</short_desc>
          <delta_ts>2026-01-10 19:50:14 -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>Layout and Rendering</component>
          <version>Safari Technology Preview</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>BrowserCompat, CanvaBug, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>126207</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Xidorn Quan">xidorn-webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yegor.jbanov</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1557878</commentid>
    <comment_count>0</comment_count>
      <attachid>375394</attachid>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2019-08-01 22:00:26 -0700</bug_when>
    <thetext>Created attachment 375394
testcase

See the attached testcase, the &lt;video&gt; element is not shown.

This works as expected on Firefox and Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558088</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-08-02 13:30:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/53876983&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558162</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-08-02 15:23:43 -0700</bug_when>
    <thetext>Huh I thought I made this work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558164</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-08-02 15:24:30 -0700</bug_when>
    <thetext>Oh, I don&apos;t think we support the reference syntax.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558178</commentid>
    <comment_count>4</comment_count>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2019-08-02 15:45:07 -0700</bug_when>
    <thetext>There are two elements in the testcase both using the same syntax for clip-path. It works on the &lt;div&gt; but not the &lt;video&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558179</commentid>
    <comment_count>5</comment_count>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2019-08-02 15:46:21 -0700</bug_when>
    <thetext>Oh, I see what you mean.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1558195</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-08-02 16:07:13 -0700</bug_when>
    <thetext>The &lt;div&gt; one will be software-painted, the &lt;video&gt; one will be on GraphicsLayer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891376</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-15 10:50:03 -0700</bug_when>
    <thetext>The video referenced by the testcase no longer exists, so the testcase is not valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896555</commentid>
    <comment_count>8</comment_count>
    <who name="Yegor">yegor.jbanov</who>
    <bug_when>2022-09-06 13:57:52 -0700</bug_when>
    <thetext>Here&apos;s a fresh repro along with a workaround: https://jsfiddle.net/yjbanov/nh9jzLba/35/

Setting style.width and style.height to 100% fixes the issue. Remove the lines that set it and Safari will stop showing the video.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170972</commentid>
    <comment_count>9</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-01-10 19:48:07 -0800</bug_when>
    <thetext>@Yegor &amp; @Xidorn - is it reproducing for you? I am unable to reproduce from both test cases (Comment 0 &amp; Comment 8) on Safari Technology Preview 234, can you try it once more?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2170973</commentid>
    <comment_count>10</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-01-10 19:50:14 -0800</bug_when>
    <thetext>Test Case with updated URL for video (bunny) - https://jsfiddle.net/9h74comt/</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>375394</attachid>
            <date>2019-08-01 22:00:26 -0700</date>
            <delta_ts>2019-08-01 22:00:26 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>clip-path-video.html</filename>
            <type>text/html</type>
            <size>554</size>
            <attacher name="Xidorn Quan">xidorn-webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KdmlkZW8geyBvYmplY3QtZml0OiBmaWxsOyB9CnZpZGVv
LCAjcmVmIHsKICB3aWR0aDogMzAwcHg7IGhlaWdodDogMzAwcHg7CiAgYmFja2dyb3VuZDogZ3Jl
ZW47CiAgLXdlYmtpdC1jbGlwLXBhdGg6IHVybCgjYSk7CiAgY2xpcC1wYXRoOiB1cmwoI2EpOwp9
Cjwvc3R5bGU+Cjx2aWRlbyBjcm9zc29yaWdpbj0iYW5vbnltb3VzIiB3aWR0aD0iMzAwIiBoZWln
aHQ9IjMwMCI+CiAgPHNvdXJjZSBzcmM9Imh0dHBzOi8vZ2lzdC5naXRodWJ1c2VyY29udGVudC5j
b20vd2VteXNzLzdkMTQxZWQyMzhiYTE0ZTA1M2EyNmRmMzNlNjQ5N2EzL3Jhdy85ZGJiZGRiZTRj
YWIyMDU2NmZkNTZjZTA2YjAxYzFlNmIzZjg5NTk5L3NjYXRjcm93Lm1wNCI+CjwvdmlkZW8+Cjxk
aXYgaWQ9InJlZiI+PC9kaXY+Cjxzdmcgdmlld0JveD0iMCAwIDMwMCAzMDAiPgogIDxkZWZzPgog
ICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgPHBhdGggZD0iTSAxNTAgMCBMIDMwMCAzMDAgTCAw
IDMwMCIvPgogICAgPC9jbGlwUGF0aD4KICA8L2RlZnM+Cjwvc3ZnPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>