<?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>90281</bug_id>
          
          <creation_ts>2012-06-29 07:42:46 -0700</creation_ts>
          <short_desc>Paddings are rounded to whole pixels</short_desc>
          <delta_ts>2022-12-16 02:31:50 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>
          <dependson>90097</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Behdad Esfahbod">behdad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>eae</cc>
    
    <cc>rbuis</cc>
    
    <cc>rjkroege</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>660470</commentid>
    <comment_count>0</comment_count>
    <who name="Behdad Esfahbod">behdad</who>
    <bug_when>2012-06-29 07:42:46 -0700</bug_when>
    <thetext>Test with Chrome that has SUBPIXEL_LAYOUT enabled.  While testing for bug 90097, I came across this bug:

According to https://trac.webkit.org/wiki/LayoutUnit paddings are supposed to have subpixel precision, but this sample shows that they are being rounded:

  http://jsfiddle.net/behdad/ALd5F/5/

Output:

span[position:static; padding-right:7.5px]: rect.width=7
span[position:fixed; padding-right:7.5px]: rect.width=7
span[position:absolute; padding-right:7.5px]: rect.width=7
span[position:relative; padding-right:7.5px]: rect.width=7


Applying patches in bug 90097 fixes the two middle cases, but no the other two:

span[position:static; padding-right:7.5px]: rect.width=7
span[position:fixed; padding-right:7.5px]: rect.width=7.5
span[position:absolute; padding-right:7.5px]: rect.width=7.5
span[position:relative; padding-right:7.5px]: rect.width=7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746818</commentid>
    <comment_count>1</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2021-04-03 14:08:31 -0700</bug_when>
    <thetext>This works these days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919862</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-16 02:31:50 -0800</bug_when>
    <thetext>*** Safari Technology Preview 160 ***

span[position:static; padding-right:7.5px]: rect.width=7.5
span[position:fixed; padding-right:7.5px]: rect.width=7.5
span[position:absolute; padding-right:7.5px]: rect.width=7.5
span[position:relative; padding-right:7.5px]: rect.width=7.5

*** Chrome Canary 110 ***

span[position:static; padding-right:7.5px]: rect.width=7.5
span[position:fixed; padding-right:7.5px]: rect.width=7.5
span[position:absolute; padding-right:7.5px]: rect.width=7.5
span[position:relative; padding-right:7.5px]: rect.width=7.5

*** Firefox Nightly 110 ***

span[position:static; padding-right:7.5px]: rect.width=7.5
span[position:fixed; padding-right:7.5px]: rect.width=7.5
span[position:absolute; padding-right:7.5px]: rect.width=7.5
span[position:relative; padding-right:7.5px]: rect.width=7.5

_______

Since all browsers are matching each other, I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>