[Webkit-unassigned] [Bug 45399] New: -webkit-line-clamp is not respected when visibility is hidden
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 8 10:44:06 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=45399
Summary: -webkit-line-clamp is not respected when visibility is
hidden
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rob.brackett at gmail.com
Created an attachment (id=66913)
--> (https://bugs.webkit.org/attachment.cgi?id=66913)
Test case for -webkit-line-clamp and visibility hidden issue
When an element with visibility: hidden and -webkit-line-clamp: [anything] is appended to the DOM, the line clamp is not respected, even after setting visibility: visible or removing the visibility setting altogether. Note that the problem really seems to be that -webkit-line-clamp is ignored when rendering an element with visibility: hidden, not when making it visible (although the problem continues to persist then).
Test case attached.
Brief example:
<div id="root">
<div id="container">
<p id="clamped">
Blah blah blah
</p>
</div>
</div>
1. Remove #container
2. Set visibility: hidden on #container
3. Append #container to #root
4. Remove visibility: hidden on #container
This also works if the element you remove and set visibility on is #clamped instead of #container. Just wanted to illustrate that it could be any node up the tree.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list