Bug 59174 - <hr> intersecting -webkit-line-clamp content
Summary: <hr> intersecting -webkit-line-clamp content
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 233770
  Show dependency treegraph
 
Reported: 2011-04-21 21:42 PDT by Joseph Pecoraro
Modified: 2023-02-15 18:45 PST (History)
5 users (show)

See Also:


Attachments
[TEST] Resize the Browser (3.25 KB, text/html)
2011-04-21 21:42 PDT, Joseph Pecoraro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2011-04-21 21:42:49 PDT
Created attachment 90667 [details]
[TEST] Resize the Browser

Discovered when manually testing LayoutTests/fast/css/apple-prefix.html

By changing the width of the browser you can get to a point where the <hr> starts overlapping the content in the paragraph.
Comment 1 Ahmad Saleem 2023-02-15 13:19:48 PST
I am not able to reproduce this bug in Safari 16.3 and Safari Technology Preview 163, can someone help on how to reproduce this?
Comment 2 zalan 2023-02-15 14:02:33 PST
(In reply to Ahmad Saleem from comment #1)
> I am not able to reproduce this bug in Safari 16.3 and Safari Technology
> Preview 163, can someone help on how to reproduce this?
-apple-line-clamp is now called -webkit-line-clamp.
Comment 3 Karl Dubost 2023-02-15 16:39:49 PST
The test in that page is 

function test()
{
    var content = document.getElementById('content');
    content.style.appleLineClamp = "10%";
}


content.style.webkitLineClamp returns "" (empty string)
content.style.appleLineClamp returns "10%"


"-webkit-line-clamp: 10%;" would not be a valid value.
https://w3c.github.io/csswg-drafts/css-overflow-4/#propdef--webkit-line-clamp
As it takes only integers.

AND "-apple-line-clamp: 10%" is invalid in the Web Inspector.


Probably this should be closed as INVALID or CONFIGURATION CHANGED.

I even wonder if a new bug should be created to remove the percentage.
https://searchfox.org/wubkat/rev/6312ca8a662145d355274780bbf68b6ce735d8e8/Source/WebCore/css/ComputedStyleExtractor.cpp#3332-3333

Zalan, what do you think?
Comment 4 zalan 2023-02-15 18:45:31 PST
btw, this has progressed with IFC (-webkit-line-clamp with % that is)