<?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>145407</bug_id>
          
          <creation_ts>2015-05-27 07:10:35 -0700</creation_ts>
          <short_desc>JavaScript WebKitCSSMatrix &apos;rotate&apos; method on iOS generates matrix different than the method in other OS</short_desc>
          <delta_ts>2015-08-29 11:56: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>JavaScriptCore</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 8.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="damians1987">damianstefaniak1987</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>damianstefaniak1987</cc>
    
    <cc>dino</cc>
    
    <cc>jonlee</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1097629</commentid>
    <comment_count>0</comment_count>
    <who name="damians1987">damianstefaniak1987</who>
    <bug_when>2015-05-27 07:10:35 -0700</bug_when>
    <thetext>stackoverflow: http://stackoverflow.com/questions/30454078/webkitcssmatrix-rotate-method-on-ios-safari-chrome-and-other-browsers-genera
js fiddle testbed: http://jsfiddle.net/DamianS1987/c5c0r4y6/18/

The above js fiddle testbed using WebKitCSSMatrix constructor and &apos;rotate&apos; method generates following strings:

-iOS (8.3) ipadMini (Safari,Chrome) or ipad 3 retina iOS (8.3)
matrix(0, 0.258819, 0, 0.965926, 0, 0);

-Mac Yosemite, Win8.1, Android (any browser)
matrix(0.965926, 0.258819, -0.258819, 0.965926, 0, 0);

Now most major devices work well. However, ipad (tested on two different devices) generates matrix with &apos;a&apos; and &apos;d&apos; values equal to 0 - transform: matrix(a, c, b, d, tx, ty).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097630</commentid>
    <comment_count>1</comment_count>
    <who name="damians1987">damianstefaniak1987</who>
    <bug_when>2015-05-27 07:13:46 -0700</bug_when>
    <thetext>&apos;Platform&apos; dropdown - there was no &apos;iOS 8.3&apos; option available to select. Hence, 8.2 selected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098083</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-05-28 23:09:15 -0700</bug_when>
    <thetext>Possibly a bug in the ARM assembly used for TransformationMatrix multiply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098099</commentid>
    <comment_count>3</comment_count>
    <who name="damians1987">damianstefaniak1987</who>
    <bug_when>2015-05-29 01:09:56 -0700</bug_when>
    <thetext>Please let me know if you need any more details about the issue from the devices.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121685</commentid>
    <comment_count>4</comment_count>
    <who name="damians1987">damianstefaniak1987</who>
    <bug_when>2015-08-28 08:03:31 -0700</bug_when>
    <thetext>I just updated my iPadMini to iSO 8.4.1 and after checking the testbed I can still recreate the issue. Do we know if this issue is going to be fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121692</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-08-28 08:16:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/22475169&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121906</commentid>
    <comment_count>6</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-08-28 18:19:20 -0700</bug_when>
    <thetext>I tried the jsfiddle on an iPad 3rd gen with iOS 9 and I cannot reproduce the issue.

I checked the Matrix multiply assembly and I don&apos;t see anything weird with it.
LLVM is unfortunately unrolling the loop but the register are preserved.

Can you please try iOS 9?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121998</commentid>
    <comment_count>7</comment_count>
    <who name="damians1987">damianstefaniak1987</who>
    <bug_when>2015-08-29 11:56:45 -0700</bug_when>
    <thetext>Yes, that&apos;s right. I can confirm that after updating ipad mini to iOS 9 beta the issue can&apos;t be recreated. It seems to be fixed. Thanks for that update.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>