<?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>247769</bug_id>
          
          <creation_ts>2022-11-10 15:41:47 -0800</creation_ts>
          <short_desc>CSSOM fails to serialize some shorthands set to &apos;initial&apos; (or any css-wide keyword)</short_desc>
          <delta_ts>2022-12-21 07:30:08 -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>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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=247771</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>
          <dependson>242775</dependson>
    
    <dependson>247988</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oriol Brufau">obrufau</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1911695</commentid>
    <comment_count>0</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2022-11-10 15:41:47 -0800</bug_when>
    <thetext>Run this code:

var allCSSProps = new Set();
for (let obj = document.createElement(&quot;div&quot;).style; obj; obj = Reflect.getPrototypeOf(obj)) {
  for (let name of Object.getOwnPropertyNames(obj)) {
    let prop = name.replace(/[A-Z]/g, c =&gt; &quot;-&quot; + c.toLowerCase());
    if (CSS.supports(prop, &quot;initial&quot;)) {
      allCSSProps.add(prop);
    }
  }
}
var style = document.createElement(&quot;div&quot;).style;
var bad = new Map();
for (let prop of allCSSProps) {
  style.cssText = &quot;&quot;;
  style.setProperty(prop, &quot;initial&quot;);
  let result = style.getPropertyValue(prop);
  if (result !== &quot;initial&quot;) {
    bad.set(prop, result);
  }
}
bad;

Expected: empty map
Actual: a map with some failures:

Map {
  &quot;-webkit-border-radius&quot; =&gt; &quot;&quot;,
  &quot;-webkit-column-break-after&quot; =&gt; &quot;&quot;,
  &quot;-webkit-column-break-before&quot; =&gt; &quot;&quot;,
  &quot;-webkit-column-break-inside&quot; =&gt; &quot;&quot;,
  &quot;-webkit-perspective&quot; =&gt; &quot;&quot;,
  &quot;grid&quot; =&gt; &quot;&quot;,
  &quot;grid-area&quot; =&gt; &quot;initial / initial / initial / initial&quot;
  &quot;grid-column&quot; =&gt; &quot;initial / initial&quot;
  &quot;grid-row&quot; =&gt; &quot;initial / initial&quot;
  &quot;offset&quot; =&gt; &quot;&quot;,
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913306</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-17 15:42:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/102489409&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921077</commentid>
    <comment_count>2</comment_count>
    <who name="Oriol Brufau">obrufau</who>
    <bug_when>2022-12-21 07:30:08 -0800</bug_when>
    <thetext>Improved in bug 247988, then fixed by bug 242775.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>