<?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>187938</bug_id>
          
          <creation_ts>2018-07-23 19:13:17 -0700</creation_ts>
          <short_desc>Height of element changes when ellipses show on a -webkit-line-clamp element with line-height</short_desc>
          <delta_ts>2023-02-15 13:28:40 -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>CSS</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>233770</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>thewingthing</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>timarmstrong</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1444533</commentid>
    <comment_count>0</comment_count>
    <who name="">thewingthing</who>
    <bug_when>2018-07-23 19:13:17 -0700</bug_when>
    <thetext>When there is an element with -webkit-line-clamp and line-height set, the height of the element is different when the text is just short enough to not warrant ellipses vs when the text is just long enough to warrant ellipses.

e.g.
With line-height
No ellipses: height is 44px
With ellipses: height is 42px

Without line-height
No ellipses: height is 38px
With ellipses: height is 38px</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819756</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-12-02 10:20:03 -0800</bug_when>
    <thetext>*** Bug 197525 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819757</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-12-02 10:20:36 -0800</bug_when>
    <thetext>From the dupe:

(In reply to Timothy Armstrong from comment #0)
&gt; * What steps will reproduce the problem?
&gt; 
&gt; (1) Visit https://jsfiddle.net/4bzh2rv9/
&gt; (2) Click the toggle button so that the box can no longer contain two lines
&gt; of text (and shows an ellipsis).
&gt; (3) Note that as soon as the above condition is met, the height of the box
&gt; decreases, instead of allowing for the appropriate amount of line-height.
&gt; 
&gt; * What is the expected result?
&gt; 
&gt; The div height should not change once the ellipsis is present.
&gt; 
&gt; * What happens instead?
&gt; 
&gt; The div height shrinks once the ellipsis is present.
&gt; 
&gt; 
&gt; (See also: crbug.com/937931)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879391</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-06-30 09:33:26 -0700</bug_when>
    <thetext>This appears to be tracked by this radar:
&lt;rdar://50448006&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933926</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-02-15 13:09:15 -0800</bug_when>
    <thetext>I am not able to reproduce the shrinkage of textarea in height using Safari Technology Preview 163 using testcase from Comment 02.

It is reproducible in Safari 16.3 though, can we mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933944</commentid>
    <comment_count>5</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-02-15 13:28:40 -0800</bug_when>
    <thetext>This is an IFC progression (with line-clamp support enabled now).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>