<?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>149105</bug_id>
          
          <creation_ts>2015-09-13 11:22:15 -0700</creation_ts>
          <short_desc>Rendering of style doesn&apos;t update</short_desc>
          <delta_ts>2020-02-03 15:46:33 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>https://jsfiddle.net/f557bLq4/1/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>hurin8888</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>koivisto</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1125481</commentid>
    <comment_count>0</comment_count>
    <who name="">hurin8888</who>
    <bug_when>2015-09-13 11:22:15 -0700</bug_when>
    <thetext>The background of the &lt;li&gt; should be undefined, it shows green instead.

This bug appeared on the last stable android webview and last stable desktop version of webkit and didn&apos;t exist before.

https://jsfiddle.net/f557bLq4/1/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1125497</commentid>
    <comment_count>1</comment_count>
    <who name="">hurin8888</who>
    <bug_when>2015-09-13 14:07:34 -0700</bug_when>
    <thetext>The CSS object model specification says

&quot;Mutating the declarations must set the style content attribute on the context object to the serialization of the declarations.&quot;

https://drafts.csswg.org/cssom/#elementcssinlinestyle

So it confirms this behavior is not wanted.

A hotfix for webdevelopers is to mute the wanted property namely, element.style.backgroundColor = &apos;&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1125498</commentid>
    <comment_count>2</comment_count>
    <who name="">hurin8888</who>
    <bug_when>2015-09-13 14:12:56 -0700</bug_when>
    <thetext>Aswell the ElementCSSInlineStyle forwards to cssText https://drafts.csswg.org/cssom/#cssstyledeclaration which says &quot;2. Empty the declarations&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1127242</commentid>
    <comment_count>3</comment_count>
    <who name="">hurin8888</who>
    <bug_when>2015-09-18 14:38:13 -0700</bug_when>
    <thetext>Added a more obvious test case to show the problem https://jsfiddle.net/f557bLq4/6/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1245485</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2016-10-28 01:13:23 -0700</bug_when>
    <thetext>Inline styles is now a thing because, and I see people get stumbled upon this issue in Safari more and more often (I counted 5 complaints this year alone in our 2200 members chat room).

Setter polyfill, `setAttribute`, or `.style.cssText =` may be used instead, but I think this should be fixed to improve developer experience &amp; spec compliance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541702</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2019-06-04 12:44:02 -0700</bug_when>
    <thetext>As of build 246014, `.style =` setter works as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1614234</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2020-02-03 15:46:33 -0800</bug_when>
    <thetext>This issue was caused by spec-imperfect implementation of [PutForwards] extended attribute and was fixed in https://bugs.webkit.org/show_bug.cgi?id=172956.

Test: web-platform-tests/WebIDL/ecmascript-binding/put-forwards.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>