<?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>81223</bug_id>
          
          <creation_ts>2012-03-15 08:40:19 -0700</creation_ts>
          <short_desc>CSS transition on HTML is triggered on load</short_desc>
          <delta_ts>2022-06-10 09:16:16 -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>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>70595</dup_id>
          
          <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="Oliver Prygotzki">oliver-webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>shanestephens</cc>
    
    <cc>shezbaig.wk</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>579412</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Prygotzki">oliver-webkit</who>
    <bug_when>2012-03-15 08:40:19 -0700</bug_when>
    <thetext>Test case:

&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;title&gt;Transition is triggered on load&lt;/title&gt;
    &lt;style&gt;
      HTML {
        background-color: red;
        -webkit-transition: background-color 2.5s;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;Transition is triggered on load&lt;/h1&gt;
  &lt;/body&gt;
&lt;/html&gt;

Expected result:
 · Red background, no transition

Actual result:
· Transition from white to red

In 3 similar cases, you’ll see red background, no transition:

· Inline style on HTML

&lt;!DOCTYPE html&gt;
&lt;html style=&quot;background-color: red; -webkit-transition: background-color 2.5s;&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;title&gt;Transition is not triggered&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;Transition is not triggered&lt;/h1&gt;
  &lt;/body&gt;
&lt;/html&gt;

· Inline style on BODY

&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;title&gt;Transition is not triggered&lt;/title&gt;
  &lt;/head&gt;
  &lt;body style=&quot;background-color: red; -webkit-transition: background-color 2.5s;&quot;&gt;
    &lt;h1&gt;Transition is not triggered&lt;/h1&gt;
  &lt;/body&gt;
&lt;/html&gt;

· STYLE with BODY

&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;title&gt;Transition is not triggered&lt;/title&gt;
    &lt;style&gt;
      BODY {
        background-color: red;
        -webkit-transition: background-color 2.5s;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;Transition is not triggered&lt;/h1&gt;
  &lt;/body&gt;
&lt;/html&gt;

Actual + Expected result:
 · Red background, no transition</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584933</commentid>
    <comment_count>1</comment_count>
      <attachid>133180</attachid>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2012-03-21 20:42:35 -0700</bug_when>
    <thetext>Created attachment 133180
test case as described in body of bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875243</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-06-10 09:16:16 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 70595 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>133180</attachid>
            <date>2012-03-21 20:42:35 -0700</date>
            <delta_ts>2012-03-21 20:42:35 -0700</delta_ts>
            <desc>test case as described in body of bug</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>320</size>
            <attacher name="Shane Stephens">shanestephens</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0idXRmLTgi
PgogICAgPHRpdGxlPlRyYW5zaXRpb24gaXMgdHJpZ2dlcmVkIG9uIGxvYWQ8L3RpdGxlPgogICAg
PHN0eWxlPgogICAgICBIVE1MIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZWQ7CiAgICAg
ICAgLXdlYmtpdC10cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDIuNXM7CiAgICAgIH0KICAg
IDwvc3R5bGU+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPGgxPlRyYW5zaXRpb24gaXMgdHJpZ2dl
cmVkIG9uIGxvYWQ8L2gxPgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>