<?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>195401</bug_id>
          
          <creation_ts>2019-03-06 23:35:56 -0800</creation_ts>
          <short_desc>Transform scale() combined with a devicePixelRatio creates roundoff errors</short_desc>
          <delta_ts>2019-03-07 15:36:33 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>Safari 12</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Tom Dezentje">tomdezentje</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1513427</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Dezentje">tomdezentje</who>
    <bug_when>2019-03-06 23:35:56 -0800</bug_when>
    <thetext>When a browser has a devicePixelRatio with decimals there seems to be a roundoff error.
As shown in the following example: https://jsfiddle.net/xb813adh

The red bar is always 100px and scales accordingly.
The blue bar is 1px width scaled with a transform. It should always be the same width as the red bar.

When zooming in the width of the blue bar stays the same for 1, 1.10 and 1.25. 
After that it stays the same until a scale of 2.

Changing the example to scale 50px 2 times gives minor roundoff errors but is still incorrect.
Seen here: https://jsfiddle.net/y9jg10hp/

Other browsers show the correct working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1513428</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-06 23:36:48 -0800</bug_when>
    <thetext>&lt;rdar://problem/48667104&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>