<?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>23888</bug_id>
          
          <creation_ts>2009-02-10 20:54:25 -0800</creation_ts>
          <short_desc>CSS -webkit-transform scale(-1, 0) on button input draws incorrectly</short_desc>
          <delta_ts>2022-07-22 21:59:07 -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>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://www.zachstronaut.com/lab/webkit-scale-bug.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zachary Johnson">zachary.johnson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>hyatt</cc>
    
    <cc>mrowe</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zachary.johnson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109240</commentid>
    <comment_count>0</comment_count>
    <who name="Zachary Johnson">zachary.johnson</who>
    <bug_when>2009-02-10 20:54:25 -0800</bug_when>
    <thetext>If you apply the CSS -webkit-transform: scale(-1,1) to an HTML &lt;input type=&quot;button&quot; /&gt; it causes the button to draw correctly in the sense that it is a mirror image but incorrectly in the sense that the two ends of the button are missing.  The Firefox 3.1 beta for OS X draws a backwards/reversed button without this visual error.  Incidentally, I kind of think this bug didn&apos;t exist when CSS transforms were first introduced.

I also included animation of the CSS scale() property in the example .  If you look very closely you can see that when at a negative scale, the button leaves little bits of itself behind as it is animated.  It does not paint correctly.

I am @zacharyjohnson on Twitter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109242</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-02-10 21:21:50 -0800</bug_when>
    <thetext>&lt;rdar://problem/6575625&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109616</commentid>
    <comment_count>2</comment_count>
      <attachid>27639</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-02-12 21:40:29 -0800</bug_when>
    <thetext>Created attachment 27639
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886005</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-22 10:18:27 -0700</bug_when>
    <thetext>I updated the test case slightly - https://jsfiddle.net/vcmdys30/show

By removing -webkit- prefix in test case and also adding JS line:

bar.style[&apos;transform&apos;] = &apos;scale(&apos; + s + &apos;, 1)&apos;;

I didn&apos;t see any glitch or visual error where the button ends are missing in Safari 15.6 on macOS 12.5 (it was matching other browsers - Chrome Canary 105 and Firefox Nightly 104) similarly as for the paint, I am not able to understand the part, I think someone else can look into it. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886177</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-07-22 21:59:07 -0700</bug_when>
    <thetext>This appears to be working now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>27639</attachid>
            <date>2009-02-12 21:40:29 -0800</date>
            <delta_ts>2009-02-12 21:40:29 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>23888_testcase.html</filename>
            <type>text/html</type>
            <size>1171</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIK
CSJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvRFREL3hodG1sMS1zdHJpY3QuZHRkIj4KCjxo
dG1sIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiB4bWw6bGFuZz0iZW4iIGxh
bmc9ImVuIj4KPGhlYWQ+Cgk8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9
InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCIvPgoKCTx0aXRsZT51bnRpdGxlZDwvdGl0bGU+CgkK
CTxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyIgbWVkaWE9ImFsbCI+Cglib2R5IHsKCSAgICAvKiBpbmNv
bnNlcXVlbnRpYWwgdG8gdGVzdCBjYXNlICovCgkgICAgbWFyZ2luOiA1MHB4OwoJfQoJCiAgICAj
Zm9vIHsKICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoLTEsMSk7CiAgICB9CiAgICAK
ICAgIGRpdiB7CiAgICAgICAgLyogaW5jb25zZXF1ZW50aWFsIHRvIHRlc3QgY2FzZSAqLwogICAg
ICAgIGhlaWdodDogNTBweDsKICAgIH0KCTwvc3R5bGU+CgkKCTxzY3JpcHQgdHlwZT0idGV4dC9q
YXZhc2NyaXB0IiBsYW5ndWFnZT0iamF2YXNjcmlwdCIgY2hhcnNldD0idXRmLTgiPgogICAgd2lu
ZG93Lm9ubG9hZCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICBzZXRJbnRlcnZhbChmLCAxMDApOwog
ICAgfQogICAgCiAgICB2YXIgaSA9IDA7CiAgICBmdW5jdGlvbiBmKCkgewogICAgICAgIHZhciBi
YXIgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnYmFyJyk7CiAgICAgICAgCiAgICAgICAgaSsr
OwogICAgICAgIAogICAgICAgIHZhciBzID0gLTEgKyAoKGkgJSA1MCkgLyAyNSkKICAgICAgICAK
ICAgICAgICBiYXIuc3R5bGVbJy13ZWJraXQtdHJhbnNmb3JtJ10gPSAnc2NhbGUoJyArIHMgKyAn
LCAxKSc7CiAgICAgICAgYmFyLnN0eWxlWydNb3pUcmFuc2Zvcm0nXSA9ICdzY2FsZSgnICsgcyAr
ICcsIDEpJzsKICAgIH0KCTwvc2NyaXB0PgoJCjwvaGVhZD4KPGJvZHk+Cgo8aW5wdXQgdHlwZT0i
YnV0dG9uIiBuYW1lPSJmb28iIGlkPSJmb28iIHZhbHVlPSJIVE1MIEJVVFRPTiIgLz4KCjxkaXY+
PC9kaXY+Cgo8aW5wdXQgdHlwZT0iYnV0dG9uIiBuYW1lPSJiYXIiIGlkPSJiYXIiIHZhbHVlPSJI
VE1MIEJVVFRPTiIgLz4KCjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>