<?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>28804</bug_id>
          
          <creation_ts>2009-08-28 06:06:46 -0700</creation_ts>
          <short_desc>Decimal CSS px dimensions round down to nearest pixel</short_desc>
          <delta_ts>2012-10-08 16:16:57 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>60318</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Wagner-Hall">dawagner</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>davidbarr</cc>
    
    <cc>dawagner</cc>
    
    <cc>eae</cc>
    
    <cc>jasneet</cc>
    
    <cc>leviw</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>143340</commentid>
    <comment_count>0</comment_count>
      <attachid>38727</attachid>
    <who name="Daniel Wagner-Hall">dawagner</who>
    <bug_when>2009-08-28 06:06:46 -0700</bug_when>
    <thetext>Created attachment 38727
Page showing bug

The CSS spec (http://www.w3.org/TR/CSS21/syndata.html#value-def-length) says &quot;The format of a length value (denoted by &lt;length&gt; in this specification) is a &lt;number&gt; (with or without a decimal point) immediately followed by a unit identifier (e.g., px, em, etc.)&quot;.  In WebKit, if the &lt;length&gt; has a decimal point, anything following it before the unit is ignored.

This behaviour is consistent with Internet Explorer but not with Firefox or the CSS spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143945</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-09-01 10:58:29 -0700</bug_when>
    <thetext>This looks closely related to bug 18978.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548975</commentid>
    <comment_count>2</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-03 12:57:25 -0800</bug_when>
    <thetext>*** Bug 18978 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>552795</commentid>
    <comment_count>3</comment_count>
    <who name="David Barr">davidbarr</who>
    <bug_when>2012-02-08 20:13:55 -0800</bug_when>
    <thetext>As noted in the metadata, the bug is blocked on sub-pixel layout support:
https://bugs.webkit.org/show_bug.cgi?id=60318

Confirmed in WebKit Nightly r107164.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>737194</commentid>
    <comment_count>4</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2012-10-08 16:16:57 -0700</bug_when>
    <thetext>This has been fixed by subpixel layout and works as expected on ports that enable the SUBPIXEL_LAYOUT flag. Marking as fixed.

Bug 85532 tracks the ports that have turned on the flag.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>38727</attachid>
            <date>2009-08-28 06:06:46 -0700</date>
            <delta_ts>2009-08-28 06:06:46 -0700</delta_ts>
            <desc>Page showing bug</desc>
            <filename>css-bug.html</filename>
            <type>text/html</type>
            <size>469</size>
            <attacher name="Daniel Wagner-Hall">dawagner</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCiAgPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPg0KICBmdW5j
dGlvbiBnZXRDc3NQcm9wZXJ0eShlbGVtZW50LCBwcm9wZXJ0eSkgew0KICAgIGlmIChlbGVtZW50
LmN1cnJlbnRTdHlsZSkgew0KICAgICAgLy9Gb3IgSUUNCiAgICAgIHJldHVybiBlbGVtZW50LmN1
cnJlbnRTdHlsZVtwcm9wZXJ0eV07DQogICAgfSBlbHNlIHsNCiAgICAgIHJldHVybiBkb2N1bWVu
dC5kZWZhdWx0Vmlldy5nZXRDb21wdXRlZFN0eWxlKGVsZW1lbnQsIG51bGwpLmdldFByb3BlcnR5
VmFsdWUocHJvcGVydHkpOw0KICAgIH0NCiAgfQ0KICA8L3NjcmlwdD4NCjxib2R5IG9ubG9hZD0i
YWxlcnQoZ2V0Q3NzUHJvcGVydHkoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2QnKSwgJ3dpZHRo
JykpIj4NCjxkaXYgaWQ9ImQiIHN0eWxlPSJ3aWR0aDogMTEuNnB4Ij5Gb288L2Rpdj4NCjwvYm9k
eT4NCjwvaHRtbD4NCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>