<?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>239989</bug_id>
          
          <creation_ts>2022-05-02 16:20:23 -0700</creation_ts>
          <short_desc>[cssom] -webkit-text-combine:none serializes as empty string in computed style</short_desc>
          <delta_ts>2022-05-12 06:50:23 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oriol Brufau">obrufau</reporter>
          <assigned_to name="Oriol Brufau">obrufau</assigned_to>
          <cc>esprehn+autocc</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>macpherson</cc>
    
    <cc>menard</cc>
    
    <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1865991</commentid>
    <comment_count>0</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2022-05-02 16:20:23 -0700</bug_when>
    <thetext>```js
var el = document.documentElement;

el.style.webkitTextCombine = &quot;horizontal&quot;;
el.style.webkitTextCombine; // &quot;horizontal&quot;
getComputedStyle(el).webkitTextCombine; // &quot;horizontal&quot;

el.style.webkitTextCombine = &quot;none&quot;;
el.style.webkitTextCombine; // &quot;none&quot;
getComputedStyle(el).webkitTextCombine; // &quot;&quot;
```

The last line should produce &quot;none&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867804</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-09 16:21:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/92992438&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867912</commentid>
    <comment_count>2</comment_count>
      <attachid>459115</attachid>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2022-05-10 06:11:01 -0700</bug_when>
    <thetext>Created attachment 459115
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867990</commentid>
    <comment_count>3</comment_count>
      <attachid>459115</attachid>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-05-10 12:03:54 -0700</bug_when>
    <thetext>Comment on attachment 459115
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=459115&amp;action=review

I originally intentionally changed -webkit-text-combine to be hidden from the computed style when implementing text-combine-upright since it is non-standard.

But on second thought, we should probably just handle this like any alias.

&gt; Source/WebCore/css/CSSComputedStyleDeclaration.cpp:3972
&gt; +            return cssValuePool.createValue(style.textCombine());

I wonder what we should do if we ever add the digits value support to text-combine-upright. How would that reflect in -webkit-text-combine?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867992</commentid>
    <comment_count>4</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2022-05-10 12:15:42 -0700</bug_when>
    <thetext>(In reply to Tim Nguyen (:ntim) from comment #3)
&gt; Comment on attachment 459115 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=459115&amp;action=review
&gt; 
&gt; I originally intentionally changed -webkit-text-combine to be hidden from
&gt; the computed style when implementing text-combine-upright since it is
&gt; non-standard.

But it&apos;s still indexed, so it&apos;s weird. Another alternative could be not indexing it, though.

&gt; But on second thought, we should probably just handle this like any alias.

Aliases have the same grammar, which is not the case here and changing it might have a compat risk.
I think the proper way would be as a legacy shorthand: https://drafts.csswg.org/css-cascade-4/#legacy-shorthand

&gt; &gt; Source/WebCore/css/CSSComputedStyleDeclaration.cpp:3972
&gt; &gt; +            return cssValuePool.createValue(style.textCombine());
&gt; 
&gt; I wonder what we should do if we ever add the digits value support to
&gt; text-combine-upright. How would that reflect in -webkit-text-combine?

I guess it depends on whether the grammar -webkit-text-combine is also expanded to accept that or not.
If -webkit-text-combine accepts digits, then it should serialize normally. If it doesn&apos;t, then empty string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868061</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-05-10 23:24:16 -0700</bug_when>
    <thetext>(In reply to Oriol Brufau from comment #4)
&gt; (In reply to Tim Nguyen (:ntim) from comment #3)
&gt; &gt; Comment on attachment 459115 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; View in context:
&gt; &gt; https://bugs.webkit.org/attachment.cgi?id=459115&amp;action=review
&gt; &gt; 
&gt; &gt; I originally intentionally changed -webkit-text-combine to be hidden from
&gt; &gt; the computed style when implementing text-combine-upright since it is
&gt; &gt; non-standard.
&gt; 
&gt; But it&apos;s still indexed, so it&apos;s weird. Another alternative could be not
&gt; indexing it, though.
&gt; 
&gt; &gt; But on second thought, we should probably just handle this like any alias.
&gt; 
&gt; Aliases have the same grammar, which is not the case here and changing it
&gt; might have a compat risk.
&gt; I think the proper way would be as a legacy shorthand:
&gt; https://drafts.csswg.org/css-cascade-4/#legacy-shorthand

Legacy shorthand sounds good.

&gt; &gt; &gt; Source/WebCore/css/CSSComputedStyleDeclaration.cpp:3972
&gt; &gt; &gt; +            return cssValuePool.createValue(style.textCombine());
&gt; &gt; 
&gt; &gt; I wonder what we should do if we ever add the digits value support to
&gt; &gt; text-combine-upright. How would that reflect in -webkit-text-combine?
&gt; 
&gt; I guess it depends on whether the grammar -webkit-text-combine is also
&gt; expanded to accept that or not.
&gt; If -webkit-text-combine accepts digits, then it should serialize normally.
&gt; If it doesn&apos;t, then empty string.

-webkit-text-combine should not accept any new syntax, so probably empty string makes sense or not indexing. Anyway, no need to think about this now, but worth leaving a note.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868374</commentid>
    <comment_count>6</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2022-05-12 06:24:39 -0700</bug_when>
    <thetext>(In reply to Tim Nguyen (:ntim) from comment #5)
&gt; Legacy shorthand sounds good.

Filed bug 240341.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868383</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-12 06:50:19 -0700</bug_when>
    <thetext>Committed r294101 (250486@main): &lt;https://commits.webkit.org/250486@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 459115.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>459115</attachid>
            <date>2022-05-10 06:11:01 -0700</date>
            <delta_ts>2022-05-12 06:50:21 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-239989-20220510151100.patch</filename>
            <type>text/plain</type>
            <size>3435</size>
            <attacher name="Oriol Brufau">obrufau</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjk0MDA2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYzI2MjFjMmQxOGQxOGNi
OTA1MjQ0YmMyZDc4M2E3MzFjMTg0NDcwMy4uOWY3MjdlOGIwNGE5N2YwYWE0MDM0ZDYxZWQ0YzRj
OTU1MGIxMjYzZCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYk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