<?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>243865</bug_id>
          
          <creation_ts>2022-08-11 19:08:17 -0700</creation_ts>
          <short_desc>text-decoration shorthand value is invalid with custom properties</short_desc>
          <delta_ts>2022-08-13 15:32:31 -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 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>230083</dup_id>
          
          <bug_file_loc>https://codepen.io/chriskirknielsen/pen/NWYLXpr?editors=1100</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christopher Kirk-Nielsen">chriskirknielsen+wkbugs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>chriskirknielsen+wkbugs</cc>
    
    <cc>ntim</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1890786</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Kirk-Nielsen">chriskirknielsen+wkbugs</who>
    <bug_when>2022-08-11 19:08:17 -0700</bug_when>
    <thetext>**Overview:**
When using CSS custom properties in a text-decoration shorthand, the decoration is not rendered as the browser seems to not know what to do with the provided variable or variables, rendering the whole declaration invalid.

**Steps to Reproduce:**
1) Assign a color, style, or line type to a variable and use it in a shorthand `text-decoration` value.

Live example on CodePen: https://codepen.io/chriskirknielsen/pen/NWYLXpr?editors=1100

Code to reproduce:
```html
&lt;p&gt;Red dotted underline&lt;/p&gt;
```

```css
p {
	--color: red;
	text-decoration: underline dotted var(--color);
}
```

**Actual Results:**
The text-decoration is not rendered.

**Expected Results:**
The text decoration should render below the text, dotted and in red.

**Build Date &amp; Hardware:**
Using Safari Technology preview, Release 151 (Safari 16.0, WebKit 17615.1.1.2)
Running macOS Monterey 12.4 on MacBook Pro (16-inch, 2019)

**Additional Builds and Platforms:**
DOES OCCUR on Safari Version 15.5 (17613.2.7.1.8) on macOS
Doesn&apos;t occur on Chrome Version 104 on macOS
Doesn&apos;t occur on Firefox Version 103 on macOS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891052</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-08-12 18:02:09 -0700</bug_when>
    <thetext>This isn&apos;t really due to custom properties, it&apos;s simply that we have an incomplete implementation of the CSS text-decoration property. It only supports text-decoration-line values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891053</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-08-12 18:02:40 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 230083 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891177</commentid>
    <comment_count>3</comment_count>
    <who name="Christopher Kirk-Nielsen">chriskirknielsen+wkbugs</who>
    <bug_when>2022-08-13 15:32:31 -0700</bug_when>
    <thetext>(In reply to Tim Nguyen (:ntim) from comment #1)
&gt; This isn&apos;t really due to custom properties, it&apos;s simply that we have an
&gt; incomplete implementation of the CSS text-decoration property. It only
&gt; supports text-decoration-line values.

Understood, thanks for clarifying! The first test works so I assumed it was all custom property related!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>