Bug 93709 - text-overflow: ellipsis scrolls during find in page
Summary: text-overflow: ellipsis scrolls during find in page
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 03:37 PDT by Boris Bokowski
Modified: 2022-06-08 20:14 PDT (History)
2 users (show)

See Also:


Attachments
HTML page to reproduce the problem. (375 bytes, text/html)
2012-08-10 03:37 PDT, Boris Bokowski
no flags Details
rendering after search in Safari, Firefox and Chrome (206.25 KB, image/png)
2022-06-02 20:26 PDT, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Bokowski 2012-08-10 03:37:19 PDT
Find.../Ctrl-F will scroll text that got clipped using text-overflow: ellipsis, without updating which part gets clipped, effectively scrolling an invisible area into view.

The attached HTML file can be used to reproduce the problem, it is pretty self-explanatory.

If you don't use text-overflow: ellipsis, the matching text will scroll into view properly, but it's still not ideal since there is no way to undo the scrolling after you are done finding stuff on the page.

I am filing this bug against WebKit because it can be reproduced in Chrome 21.0.1180.57 on Linux/Ubuntu and Safari 5.1.7 on Windows. (Originally filed as http://code.google.com/p/chromium/issues/detail?id=13563)
Comment 1 Boris Bokowski 2012-08-10 03:37:50 PDT
Created attachment 157699 [details]
HTML page to reproduce the problem.
Comment 2 Karl Dubost 2022-06-02 20:26:34 PDT
Created attachment 459979 [details]
rendering after search in Safari, Firefox and Chrome

I see the same behavior in all 3 browsers. 
The "secret" word is found when with the search, aka two occurrences and no text is scrolled during the search.

This is working at least in an interoperable way.

Maybe this should be closed.