<?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>225809</bug_id>
          
          <creation_ts>2021-05-14 08:28:07 -0700</creation_ts>
          <short_desc>[LFC][IFC] line-height incorrectly triggers scrollable overflow</short_desc>
          <delta_ts>2021-05-14 13:55:58 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="alan">zalan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <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>1760077</commentid>
    <comment_count>0</comment_count>
      <attachid>428623</attachid>
    <who name="alan">zalan</who>
    <bug_when>2021-05-14 08:28:07 -0700</bug_when>
    <thetext>Created attachment 428623
test case

ssia</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760078</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-14 08:28:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/78017815&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760079</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-14 08:28:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/78017824&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760088</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2021-05-14 08:37:57 -0700</bug_when>
    <thetext>see http://wpt.live/css/CSS2/linebox/scrollable-overflow.tentative.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760169</commentid>
    <comment_count>4</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2021-05-14 12:42:14 -0700</bug_when>
    <thetext>According to the CSS Overflow Module Level 3 (https://www.w3.org/TR/css-overflow-3/#scrollable) and CSS Inline Layout Module Level 3 (https://www.w3.org/TR/css-inline-3/#line-layout) this looks like a progression.

CSS Overflow Module says:
&quot;...
The scrollable overflow area is the union of:
...
 - all line boxes directly contained by the box
..&quot;

while CSS Inline Layout Module says:

&quot;..
The line box’s logical height is calculated to exactly include the aligned layout bounds of all its inline-level boxes.
..&quot;

where the layout bounds are computed by taking the (non-normal) line-height into account (&quot;When its computed line-height is not normal, its layout bounds are derived solely from metrics of its first available font (ignoring glyphs from other fonts), and leading is used to adjust the effective A and D to add up to the used line-height.&quot;

so it looks like the &quot;line-height&quot; here should affect the scrollable overflow area and Safari should produce a scrollbar for it.

It also matches Firefox(88.0.1) behavior. I&apos;d say this is a progression but according to https://bugs.chromium.org/p/chromium/issues/detail?id=996847, this is not what&apos;s expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1760197</commentid>
    <comment_count>5</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2021-05-14 13:55:58 -0700</bug_when>
    <thetext>Blink&apos;s test reduction

https://bugs.chromium.org/p/chromium/issues/attachmentText?aid=409419</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>428623</attachid>
            <date>2021-05-14 08:28:07 -0700</date>
            <delta_ts>2021-05-14 08:28:07 -0700</delta_ts>
            <desc>test case</desc>
            <filename>line-height-overflow.html</filename>
            <type>text/html</type>
            <size>332</size>
            <attacher name="alan">zalan</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxkaXYgaWQ9c2Nyb2xsYWJsZSBzdHlsZT0ib3ZlcmZsb3c6IGF1dG87
IHdpZHRoOiAxMDBweDsgaGVpZ2h0OiAxMDBweDsgYmFja2dyb3VuZC1jb2xvcjogcmVkOyI+PGRp
diBzdHlsZT0ibGluZS1oZWlnaHQ6IDEyMHB4OyBoZWlnaHQ6IDEwMHB4OyBiYWNrZ3JvdW5kOiBn
cmVlbjsiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgd2lkdGg6IDFweDsgaGVp
Z2h0OiAxcHg7Ij48L2Rpdj48L2Rpdj48L2Rpdj4KPCEtLSBQQVNTIGlmIGFsbCBncmVlbiAtLT4K
PHNjcmlwdD4Kc2Nyb2xsYWJsZS5zY3JvbGxUbygwLCAyMCk7Cjwvc2NyaXB0Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>