Bug 12991 - text-overflow should not require white-space:nowrap to work
Summary: text-overflow should not require white-space:nowrap to work
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-03-06 18:17 PST by Adele Peterson
Modified: 2022-12-23 03:24 PST (History)
6 users (show)

See Also:


Attachments
Test case (166 bytes, text/html)
2016-02-11 14:31 PST, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adele Peterson 2007-03-06 18:17:10 PST
text-overflow should not require white-space:nowrap or white-space:pre to work.

We'd like this to work in a multiline case.  In this example, we should be able to wrap, and also add ellipsis instead of partially displaying the last line.

<style>
div {
	width: 100px;
	height: 40px;
	text-overflow: ellipsis;
	overflow: hidden;
	border: solid thin black;
}
</style>
<div>test 12345678910 1112131415</div>

<rdar://problem/5044726> text-overflow should not require white-space:nowrap to work
Comment 1 David Kilzer (:ddkilzer) 2016-02-11 14:31:08 PST
Created attachment 271089 [details]
Test case
Comment 2 Ahmad Saleem 2022-12-09 04:53:58 PST
I am am able to reproduce this bug in Safari 16.1 and STP159 and last line just show top edges of the digits while other browsers (Chrome Canary 110 and Firefox Nightly 109) does not show any partial top edges of digits.

Just wanted to share updated testing results. Thanks!