<?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>143327</bug_id>
          
          <creation_ts>2015-04-01 18:30:45 -0700</creation_ts>
          <short_desc>No-op inline style changes cause style recalcs</short_desc>
          <delta_ts>2022-07-14 13:45:45 -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>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></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="Elliott Sprehn">esprehn</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>kling</cc>
    
    <cc>koivisto</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1082157</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2015-04-01 18:30:45 -0700</bug_when>
    <thetext>Confirmed in r182227

&lt;div id=&quot;test&quot;&gt;&lt;/div&gt;
&lt;script&gt;
var test = document.getElementById(&quot;test&quot;);
setInterval(function() {
    test.style.top = &quot;0px&quot;;
});
&lt;/script&gt;

This causes an infinite number of style recalcs even though it&apos;s just assigning the same number repeatedly. It seems the parser returns true to mean &quot;successfully parsed&quot;, and the inline style machinery interprets that bool to mean &quot;something changed&quot;. Probably want to compare the CSSProperty objects to see that they&apos;re actually different instead (different value, different important).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883761</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-14 13:45:45 -0700</bug_when>
    <thetext>This doesn&apos;t seem to be an issue in Safari 15.5+. I only see the initial style and layout, then the timer running with no further style recalls.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>