Bug 40883 - Trailing whitespace when line breaks at collapsed space and the next word contains a soft hyphen
Summary: Trailing whitespace when line breaks at collapsed space and the next word con...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: data:text/html,%3Cdiv%20style=%22widt...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-19 20:43 PDT by mitz
Modified: 2023-12-19 11:52 PST (History)
4 users (show)

See Also:


Attachments
Reference Screenshot (264.65 KB, image/png)
2023-12-14 11:05 PST, Ahmad Saleem
no flags Details
testcase (587 bytes, text/html)
2023-12-14 14:53 PST, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2010-06-19 20:43:47 PDT
In the URL, a trailing whitespace is rendered on the first line. This happens when the line breaks at collapsed space (notice two space characters after “the”) and the next word after the break contains a soft hyphen. This confuses checkMidpoints() because there is an extra pair of midpoints after the line break.
Comment 1 Ahmad Saleem 2023-12-14 11:05:01 PST
Created attachment 469042 [details]
Reference Screenshot
Comment 2 Karl Dubost 2023-12-14 14:53:38 PST
Created attachment 469048 [details]
testcase

This is a testcase replacing px by ch for the unit and giving different width.
I don't see any issues, but maybe I'm missing something.
I have the feeling that should be closed.