<?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>155286</bug_id>
          
          <creation_ts>2016-03-09 19:30:38 -0800</creation_ts>
          <short_desc>CSS line-height computes ok, renders incorrectly</short_desc>
          <delta_ts>2023-10-02 18:12:29 -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>Safari 9</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.10</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=261212</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tbredin</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1172961</commentid>
    <comment_count>0</comment_count>
    <who name="">tbredin</who>
    <bug_when>2016-03-09 19:30:38 -0800</bug_when>
    <thetext>Unitless line heights appear to have an issue where the size of the element rendered to screen sometimes renders at a different size to the computed line-height. Take the following CSS:

html {
    font-size: 125%; // 20px computed size
}

p {
    font-size: 1.5rem; // 30px computed size
    line-height: 1.33333333333; // 40px computed size
}

Here&apos;s a codepen that demonstrates the issue: http://codepen.io/tbredin/pen/ONNGmY


In the inspector this reports the computed line-height as 40px. However the element only takes up 39px of space in the browser. 

Over long distances this can add up to a big error, is pretty severe (for example; vertical rhythm systems across multiple columns are busted really badly!)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1172992</commentid>
    <comment_count>1</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2016-03-09 21:17:19 -0800</bug_when>
    <thetext>I bet it&apos;s one of the integral flooring we do for lineboxes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1173000</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2016-03-09 21:33:26 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; I bet it&apos;s one of the integral flooring we do for lineboxes.

Yeah, this is because of the flooring. It would be great to get rid of that, but the compat risk worries me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1176535</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2016-03-19 15:46:55 -0700</bug_when>
    <thetext>rdar://problem/21713525</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981645</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-01 15:59:52 -0700</bug_when>
    <thetext>@Alan - Can we mark this as duplicate to your IFC work to enable &apos;fractional&apos; line height?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>