<?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>207013</bug_id>
          
          <creation_ts>2020-01-30 12:18:11 -0800</creation_ts>
          <short_desc>-webkit-line-clamp does not truncate with ellipsis on visibility:hidden element</short_desc>
          <delta_ts>2021-12-02 10:17:56 -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 13</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>45399</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Kufluk">kenneth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>menkhauskl</cc>
    
    <cc>mmaxfield</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>1613082</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Kufluk">kenneth</who>
    <bug_when>2020-01-30 12:18:11 -0800</bug_when>
    <thetext>This bug occurs in Chrome/Blink and Safari/Webkit.

I am using the -webkit-line-clamp rule to add multiline truncation and ellipsis.
This mostly works.

However, when an element is first rendered with &quot;visibility: hidden&quot; and then the visibility is quickly toggled, the truncation and ellipsis is not applied.
It works fine when I toggle visibility using &apos;opacity&apos;.

Simplified repro case:
https://glitch.com/edit/#!/hidden-ellipsis?path=index.html

This has been affecting card descriptions in the twitter.com website. I am currently working on a patch to switch from visibility to opacity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613138</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-30 14:11:55 -0800</bug_when>
    <thetext>&lt;rdar://problem/59041496&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613672</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-01-31 17:07:28 -0800</bug_when>
    <thetext>WebKit&apos;s behavior seems to match Chrome, but both differ from Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706994</commentid>
    <comment_count>3</comment_count>
    <who name="">menkhauskl</who>
    <bug_when>2020-11-12 13:24:44 -0800</bug_when>
    <thetext>I am having the same issue, though I am only seeing it on Safari. 

I created this codepen https://codepen.io/menkhauskl/pen/jOrXbpB
On Chrome version 86.0.4240.183 it is truncating the ellipsis when &quot;visibility: hidden&quot;. On Safari Version 14.0 it is not truncating the ellipsis when &quot;visibility: hidden&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819751</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-12-02 10:17:56 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 45399 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>