<?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>189152</bug_id>
          
          <creation_ts>2018-08-30 06:48:44 -0700</creation_ts>
          <short_desc>background-clip: text doesn&apos;t work on inline-block child of inline element</short_desc>
          <delta_ts>2024-08-09 17:09:58 -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>CSS</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=245480</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron">me</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mic.gallego</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1455201</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron">me</who>
    <bug_when>2018-08-30 06:48:44 -0700</bug_when>
    <thetext>If you code like this &lt;h1&gt;Discover &lt;span&gt;Something&lt;/span&gt;&lt;/h1&gt; with span tag inside it then text gradient won&apos;t appear in Safari but does appear fine in Chrome and Firefox.

If you do like this &lt;h1&gt;Discover Something&lt;/h1&gt; without span tag then it does work properly. I don&apos;t think Safari liked tags inside the tag. Nasty bug. It works on other browsers like Chrome and Safari.

h1 {
background: -webkit-linear-gradient(45deg, $gold 20%, #00ff95);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1455787</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-08-31 11:35:52 -0700</bug_when>
    <thetext>Can you attach a small HTML testcase please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1455804</commentid>
    <comment_count>2</comment_count>
      <attachid>348662</attachid>
    <who name="Aaron">me</who>
    <bug_when>2018-08-31 12:35:31 -0700</bug_when>
    <thetext>Created attachment 348662
Here&apos;s the small HTML testcase attach</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1455806</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-08-31 12:45:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/43951596&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1456302</commentid>
    <comment_count>4</comment_count>
    <who name="Aaron">me</who>
    <bug_when>2018-09-04 07:35:53 -0700</bug_when>
    <thetext>Were you able to see the preview of each browser differently? I hope my code helps. Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463052</commentid>
    <comment_count>5</comment_count>
    <who name="Aaron">me</who>
    <bug_when>2018-09-24 18:14:23 -0700</bug_when>
    <thetext>Do you have any questions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464606</commentid>
    <comment_count>6</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-09-28 16:39:36 -0700</bug_when>
    <thetext>Yes, I can reproduce the problem. Thanks for the testcase!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890813</commentid>
    <comment_count>7</comment_count>
    <who name="">mic.gallego</who>
    <bug_when>2022-08-11 22:25:52 -0700</bug_when>
    <thetext>Hi,

Is there any follow-up on this ticket? I have just created a reproduction test case here: https://codepen.io/bakura10/pen/QWmVmEP

In our use case, I need the inner span to be a display inline-block to set a min-width to perform a transition (while the parent needs to stay inline to apply the background and not cut it properly).

Unfortunately, in this situation, Safari does not display the inline-block part (Chrome and Firefox have no issue).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051600</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-08-08 21:38:26 -0700</bug_when>
    <thetext>This works correctly now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051601</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-08-08 21:39:53 -0700</bug_when>
    <thetext>Well, the attachment works, but the codeine still shows an issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051602</commentid>
    <comment_count>10</comment_count>
      <attachid>472093</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-08-08 21:43:08 -0700</bug_when>
    <thetext>Created attachment 472093
Simple text case</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>348662</attachid>
            <date>2018-08-31 12:35:31 -0700</date>
            <delta_ts>2018-08-31 12:35:31 -0700</delta_ts>
            <desc>Here&apos;s the small HTML testcase attach</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>1355</size>
            <attacher name="Aaron">me</attacher>
            
              <data encoding="base64">CgoKCjwhZG9jdHlwZSBodG1sPgo8aHRtbCBsYW5nPSJlbiI+CjxoZWFkPgo8bWV0YSBjaGFyc2V0
PSJ1dGYtOCI+Cjx0aXRsZT5UZXh0IEdyYWRpZW50PC90aXRsZT4KPHN0eWxlPgoqIHttYXJnaW46
MDtwYWRkaW5nOjA7Zm9udC1mYW1pbHk6IHNhbnMtc2VyaWY7dGV4dC1hbGlnbjogY2VudGVyfQpi
b2R5IHs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2hyb21lIGFuZCBGaXJl
Zm94LjwvcD4KCTxoMT5IZWxsbyA8c3BhbiBjbGFzcz0iaW5saW5lLWJsb2NrIj5Xb3JsZDwvc3Bh
bj48L2gxPgoJPHA+RG9lcyBub3Qgd29yayB3aXRoIFNhZmFyaSBhbmQgU2FmYXJpIFRlY2hub2xv
Z3kgUHJldmlldyB3aXRoIHRhZyBpbnNpZGUuIEhpZ2hsaWdodCAoQ01EICsgQSkgdGhpcyBwYWdl
IGFuZCB0aGVuIHJlbW92ZSB0aGUgaGlnaGxpZ2h0IGJ1dCBkb2VzIG5vdCB3b3JrLiBUaGUgIldv
cmxkIiBpcyBub3doZXJlIHRvIGJlIHNlZW4uIFRoaXMgSDEgZG9lcyBoYXZlIFNQQU4gdGFnIGlu
c2lkZSBhbmQgaXMgc2V0IHRvICJkaXNwbGF5OiBpbmxpbmUtYmxvY2siLiBEb2VzIG5vdCB3b3Jr
IG9uIENocm9tZSBhbmQgRmlyZWZveC48L3A+Cgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>472093</attachid>
            <date>2024-08-08 21:43:08 -0700</date>
            <delta_ts>2024-08-08 21:43:08 -0700</delta_ts>
            <desc>Simple text case</desc>
            <filename>background-clip-across-inlines.html</filename>
            <type>text/html</type>
            <size>539</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICAgIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBj
b250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MSwgc2hyaW5rLXRvLWZp
dD1ubyI+CiAgICA8c3R5bGU+CiAgICAgICAgOnJvb3QgewogICAgICAgICAgICBmb250LXNpemU6
IDI0cHQ7CiAgICAgICAgfQogICAgICAgIC50b3AgewogICAgICAgICAgYmFja2dyb3VuZDogbGlu
ZWFyLWdyYWRpZW50KHRvIHJpZ2h0LCBibHVlLCByZWQpOwogICAgICAgICAgYmFja2dyb3VuZC1j
bGlwOiB0ZXh0OwogICAgICAgICAgY29sb3I6IHRyYW5zcGFyZW50OwogICAgICAgIH0KCiAgICAg
ICAgLmJvdHRvbSB7CiAgICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CiAgICAgICAgfSAg
ICAgICAgCiAgICA8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgogICAgPHNwYW4gY2xhc3M9InRvcCI+
CiAgICAgICAgPHNwYW4gY2xhc3M9ImJvdHRvbSI+T25lIHR3bzwvc3Bhbj4gdGhyZWUgZm91cgog
ICAgPHNwYW4+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>