<?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>287114</bug_id>
          
          <creation_ts>2025-02-05 13:16:43 -0800</creation_ts>
          <short_desc>text-decoration does not work with ::highlight()</short_desc>
          <delta_ts>2026-06-02 00:50:52 -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>Layout and Rendering</component>
          <version>Safari 18</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=205228</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>316075</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Luca Casonato">hello</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>hello</cc>
    
    <cc>megan_gardner</cc>
    
    <cc>ntim</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>2092259</commentid>
    <comment_count>0</comment_count>
    <who name="Luca Casonato">hello</who>
    <bug_when>2025-02-05 13:16:43 -0800</bug_when>
    <thetext>A custom `text-decoration` attribute inside of a `::highlight` selector does not work (for example the first example on MDN for CSS Custom Highlights: https://developer.mozilla.org/en-US/play?id=HAAIOUOYLTHEwSHpLBMb%2B9BfGhMmJlQ1o84DmT4hjDOw88l2N3nGGSeJTlo%2FdnKp%2FPDF6rodMZueNR4t). It works in Chromium.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092658</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2025-02-06 19:00:42 -0800</bug_when>
    <thetext>What custom `text-decoration` value are you trying? Seems to be working fine to me. 

If you&apos;re using `text-decoration: blue underline` then that doesn&apos;t work yet because of a different bug (though you can use `text-decoration-color: blue; text-decoration-line: underline`)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092720</commentid>
    <comment_count>2</comment_count>
    <who name="Luca Casonato">hello</who>
    <bug_when>2025-02-07 00:43:33 -0800</bug_when>
    <thetext>Ah sorry, I had reused the example from a Gecko bug I filed. The specific case I was trying was `text-decoration: underline wavy red;`. Specifying those separately as with individual properties does work as you mention.

Please mark this as duplicate with the issue for the composite property then (I can’t find it).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2094248</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-02-12 13:17:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/144725370&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>