<?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>249621</bug_id>
          
          <creation_ts>2022-12-19 17:18:35 -0800</creation_ts>
          <short_desc>Caret Line Height is not matching font size</short_desc>
          <delta_ts>2023-11-15 18:13:14 -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>Safari Technology Preview</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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Joone Hur">joone</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>just1gb</cc>
    
    <cc>ktf.kim</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>1920649</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-19 17:18:35 -0800</bug_when>
    <thetext>Hi Team,

While trying to find for broken testcase of HTML Editing bug, I came cross bug in line height issue in the following testcase:

Test Case - https://jsfiddle.net/tck7m2qL/

^ Try to type after the &quot;grey&quot; container and observer caret size (I-Beam), it would be huge and size of container in Safari 16.2 &amp; STP160.

While Firefox Nightly 110 and Chrome Canary 111 show normal caret size (Firefox does not have any container and show in &quot;normal&quot; size since beginning while Chrome Canary show &quot;Big&quot; one till we don&apos;t type first character and then it will show &quot;normal&quot; caret size).

Just wanted to raise this bug so it can be tracked and if it is duplicate then please close it.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921956</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-26 17:19:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/103716521&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970943</commentid>
    <comment_count>2</comment_count>
    <who name="Joone Hur">joone</who>
    <bug_when>2023-08-13 05:58:39 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/16647</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1992234</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-13 12:49:13 -0800</bug_when>
    <thetext>Blink Commit - https://chromium.googlesource.com/chromium/blink/+/dd1014b38784779a347f72d4eca818eed3b12ccf

Might be potential solution to explore or in addition to current PR?

https://searchfox.org/wubkat/rev/ecf416c989d65a6cfed8592f00acadb479ebe334/Source/WebCore/rendering/CaretRectComputation.cpp#117</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1992680</commentid>
    <comment_count>4</comment_count>
    <who name="Joone Hur">joone</who>
    <bug_when>2023-11-14 22:00:30 -0800</bug_when>
    <thetext>It looks almost the same to get the caret height from the Chromium implementation and my patch. The problem seems to be that the caret isn&apos;t rendering correctly on iOS because the top was calculated incorrectly. So, I&apos;ve updated the part where the top is calculated. Thanks for the info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1992964</commentid>
    <comment_count>5</comment_count>
    <who name="Joone Hur">joone</who>
    <bug_when>2023-11-15 18:08:51 -0800</bug_when>
    <thetext>*** Bug 13820 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1992967</commentid>
    <comment_count>6</comment_count>
    <who name="Joone Hur">joone</who>
    <bug_when>2023-11-15 18:13:14 -0800</bug_when>
    <thetext>*** Bug 116424 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>