<?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>82078</bug_id>
          
          <creation_ts>2012-03-23 12:26:27 -0700</creation_ts>
          <short_desc>CSS OM should return the actual initial value instead of literal &quot;initial&quot;</short_desc>
          <delta_ts>2023-07-13 16:31:19 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://jsfiddle.net/tmjL0fp8/</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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>dbaron</cc>
    
    <cc>hyatt</cc>
    
    <cc>kling</cc>
    
    <cc>koivisto</cc>
    
    <cc>menard</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>586607</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-03-23 12:26:27 -0700</bug_when>
    <thetext>e.g.

&lt;div id=&quot;test&quot; style=&quot;border:solid;&quot;&gt;hello&lt;/div&gt;
&lt;script&gt;

alert(document.getElementById(&apos;test&apos;).borderTopWidth);

&lt;/script&gt;

Both Firefox and Internet Explorer return &quot;medium&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284067</commentid>
    <comment_count>1</comment_count>
    <who name="L. David Baron">dbaron</who>
    <bug_when>2017-03-06 17:02:15 -0800</bug_when>
    <thetext>Also see https://github.com/w3c/csswg-drafts/issues/1068 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284333</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-03-07 08:49:51 -0800</bug_when>
    <thetext>Corresponding Blink bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=501673</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892641</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-20 06:46:37 -0700</bug_when>
    <thetext>I changed the test case from Comment 0 into JSFiddle:

Link - https://jsfiddle.net/tx5pjqfo/show

All browsers (Safari Technology Preview 151, Chrome Canary 106 and Firefox Nightly 105) show alert with &quot;undefined&quot; value.

I am not sure whether this is something fixed or not? But all browsers are outputting same. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892695</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-08-20 14:23:46 -0700</bug_when>
    <thetext>This still reproduces as before - WebKit and Blink get &quot;initial&quot;, Gecko gets &quot;medium&quot;.

Blink has a patch posted for this in 2021, not landed yet.

The test isn&apos;t quite right, it lacks &quot;.style&quot;. Here is a corrected one: https://jsfiddle.net/tmjL0fp8/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966674</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-13 16:31:19 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #4)
&gt; This still reproduces as before - WebKit and Blink get &quot;initial&quot;, Gecko gets
&gt; &quot;medium&quot;.
&gt; 
&gt; Blink has a patch posted for this in 2021, not landed yet.
&gt; 
&gt; The test isn&apos;t quite right, it lacks &quot;.style&quot;. Here is a corrected one:
&gt; https://jsfiddle.net/tmjL0fp8/

Safari 16.5.1 now gets &apos;medium&apos; in the attached JSFiddle similar to Firefox Nightly 117.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>