<?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>18076</bug_id>
          
          <creation_ts>2008-03-25 14:17:38 -0700</creation_ts>
          <short_desc>Box disappears after CSS Transition completes</short_desc>
          <delta_ts>2008-03-31 15:31:34 -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</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Faruk Ates">farukates</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75152</commentid>
    <comment_count>0</comment_count>
    <who name="Faruk Ates">farukates</who>
    <bug_when>2008-03-25 14:17:38 -0700</bug_when>
    <thetext>I&apos;m transitioning a test box&apos;s border-radius (sidebar on that below) on :hover and after the transition is done the background disappears; if I hover out the entire box becomes invisible (flow doesn&apos;t change) including text content.

Test case attached.

Sidebar: to get the border radius property to transition, you actually have to use -webkit-transition-property: border-radius;    (instead of -webkit-border-radius) which is inconsistent with how we currently have to make border radius work in the first place.


Bug exists in both Safari 3.1 and latest Webkit nightly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75153</commentid>
    <comment_count>1</comment_count>
      <attachid>20041</attachid>
    <who name="Faruk Ates">farukates</who>
    <bug_when>2008-03-25 14:18:37 -0700</bug_when>
    <thetext>Created attachment 20041
Sample of :hover state transition and box disappearing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75158</commentid>
    <comment_count>2</comment_count>
    <who name="Faruk Ates">farukates</who>
    <bug_when>2008-03-25 14:26:59 -0700</bug_when>
    <thetext>Additional bug (should I file a separate report?): the background-color and text color transition as well, even though the test case only specifies -webkit-transition-property: border-radius;

(shouldn&apos;t that make all other properties NOT transition, but simply instantly switch?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75257</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-25 19:58:08 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Additional bug (should I file a separate report?): the background-color and
&gt; text color transition as well, even though the test case only specifies
&gt; -webkit-transition-property: border-radius;
(In reply to comment #0)
&gt; Sidebar: to get the border radius property to transition, you actually have to
&gt; use -webkit-transition-property: border-radius;    (instead of
&gt; -webkit-border-radius) which is inconsistent with how we currently have to make
&gt; border radius work in the first place.

Actually any invalid property keyword you will put there will result in the behavior you see with &quot;border-radius&quot; (which is an invalid property keyword). That the shorthand property &quot;-webkit-border-radius&quot; is not supported is a different issue.

&gt; Additional bug (should I file a separate report?): the background-color and
&gt; text color transition as well, even though the test case only specifies
&gt; -webkit-transition-property: border-radius;

That is all part of this bug: specifying an invalid property keyword caused all properties to animate and the box&apos;s background to vanish.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75258</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-25 20:03:05 -0700</bug_when>
    <thetext>Specifically, it appears that animating &apos;color&apos; and &apos;background-color&apos; simultaneously is what leads to the background color being reset to transparent in the end of the transition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75299</commentid>
    <comment_count>5</comment_count>
    <who name="Faruk Ates">farukates</who>
    <bug_when>2008-03-26 08:00:29 -0700</bug_when>
    <thetext>I see — so the bugs here are actually two entirely different bugs than I thought:

1) transitioning both background-color and color simultaneously makes them both end up transparent at the end of the transition;
2) the shorthand for -webkit-border-radius:  isn&apos;t implemented (but it is for just border-radius, which it shouldn&apos;t be yet, right?)

I got it to work as intended by being fully explicit (-webkit-border-top-right-radius &amp; …bottom-right…) so that behavior is indeed fully operational.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75890</commentid>
    <comment_count>6</comment_count>
      <attachid>20228</attachid>
    <who name="">mitz</who>
    <bug_when>2008-03-30 18:50:08 -0700</bug_when>
    <thetext>Created attachment 20228
Fix the StyleBackgroundData copy constructor; make BLEND_MAYBE_INVALID_COLOR more efficient</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76007</commentid>
    <comment_count>7</comment_count>
      <attachid>20228</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-03-31 15:23:40 -0700</bug_when>
    <thetext>Comment on attachment 20228
Fix the StyleBackgroundData copy constructor; make BLEND_MAYBE_INVALID_COLOR more efficient

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76012</commentid>
    <comment_count>8</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-03-31 15:31:34 -0700</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/projects/webkit/changeset/31485&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20041</attachid>
            <date>2008-03-25 14:18:37 -0700</date>
            <delta_ts>2008-03-25 14:18:37 -0700</delta_ts>
            <desc>Sample of :hover state transition and box disappearing</desc>
            <filename>border-radius.html</filename>
            <type>text/html</type>
            <size>878</size>
            <attacher name="Faruk Ates">farukates</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIK
CSJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvR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JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>20228</attachid>
            <date>2008-03-30 18:50:08 -0700</date>
            <delta_ts>2008-03-31 15:23:40 -0700</delta_ts>
            <desc>Fix the StyleBackgroundData copy constructor; make BLEND_MAYBE_INVALID_COLOR more efficient</desc>
            <filename>18076_r1.diff</filename>
            <type>text/plain</type>
            <size>2911</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAzMTQ0OCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTYgQEAKKzIwMDgtMDMtMzAgIERhbiBCZXJuc3RlaW4gIDxtaXR6QGFwcGxlLmNv
bT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAtIGZp
eCBodHRwOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xODA3NgorICAgICAgICAg
IEJveCBkaXNhcHBlYXJzIGFmdGVyIENTUyBUcmFuc2l0aW9uIGNvbXBsZXRlcworCisgICAgICAg
ICogcGFnZS9BbmltYXRpb25Db250cm9sbGVyLmNwcDogQ2hhbmdlZCB0aGUgQkxFTkRfTUFZQkVf
SU5WQUxJRF9DT0xPUgorICAgICAgICBtYWNybyB0byBub3QgYmxlbmQgdHdvIGludmFsaWQgY29s
b3JzLgorICAgICAgICAqIHJlbmRlcmluZy9SZW5kZXJTdHlsZS5jcHA6CisgICAgICAgIChXZWJD
b3JlOjpTdHlsZUJhY2tncm91bmREYXRhOjpTdHlsZUJhY2tncm91bmREYXRhKTogQWRkZWQgbWlz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bmRGdW5jKGZyb21D
b2xvciwgdG9Db2xvciwgcHJvZ3Jlc3MoKSkpO1wKKyAgICAgICAgICAgICAgICBpZiAobV9wcm9w
ZXJ0eSA9PSBwcm9wKSBcCisgICAgICAgICAgICAgICAgICAgIHJldHVybjsgXAorICAgICAgICAg
ICAgfVwKICAgICAgICAgfVwKICAgICB9XAogCkluZGV4OiBXZWJDb3JlL3JlbmRlcmluZy9SZW5k
ZXJTdHlsZS5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViQ29yZS9yZW5kZXJpbmcvUmVuZGVyU3R5bGUu
Y3BwCShyZXZpc2lvbiAzMTQ0NikKKysrIFdlYkNvcmUvcmVuZGVyaW5nL1JlbmRlclN0eWxlLmNw
cAkod29ya2luZyBjb3B5KQpAQCAtMzI5LDYgKzMyOSw3IEBAIFN0eWxlQmFja2dyb3VuZERhdGE6
OlN0eWxlQmFja2dyb3VuZERhdGEKIFN0eWxlQmFja2dyb3VuZERhdGE6OlN0eWxlQmFja2dyb3Vu
ZERhdGEoY29uc3QgU3R5bGVCYWNrZ3JvdW5kRGF0YSYgbykKICAgICA6IFJlZkNvdW50ZWQ8U3R5
bGVCYWNrZ3JvdW5kRGF0YT4oKQogICAgICwgbV9iYWNrZ3JvdW5kKG8ubV9iYWNrZ3JvdW5kKQor
ICAgICwgbV9jb2xvcihvLm1fY29sb3IpCiAgICAgLCBtX291dGxpbmUoby5tX291dGxpbmUpCiB7
CiB9Cg==
</data>
<flag name="review"
          id="8824"
          type_id="1"
          status="+"
          setter="hyatt"
    />
          </attachment>
      

    </bug>

</bugzilla>