Bug 28857 (no-link-wrap)

Summary: Text inside <a> links not wrapping in divs
Product: WebKit Reporter: Jose Blas <joseblas>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: yuzo
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
URL: http://nonecms.com/safaribug_test.html
Attachments:
Description Flags
snapshot
none
snapshot of firefox behaviour
none
Test to see if line is broken at non-space (slash in this case) none

Jose Blas
Reported 2009-08-31 14:40:34 PDT
I have noticed that webkit fails to wrap the text inside <a> links in divs. I have a div of 200px and a link and a paragraph inside, the paragraph text will wrap inside the div (i have setup a border) but the link text goes out of the div borders. See the url for an example. The example works fine in other browsers.
Attachments
snapshot (38.83 KB, image/jpeg)
2009-08-31 15:37 PDT, Jose Blas
no flags
snapshot of firefox behaviour (28.21 KB, image/jpeg)
2009-08-31 15:39 PDT, Jose Blas
no flags
Test to see if line is broken at non-space (slash in this case) (170 bytes, text/html)
2010-02-11 19:13 PST, Yuzo Fujishima
no flags
Jose Blas
Comment 1 2009-08-31 15:37:32 PDT
Created attachment 38839 [details] snapshot Here is a snap shot of the bug in action in Safari 4.
Jose Blas
Comment 2 2009-08-31 15:39:12 PDT
Created attachment 38840 [details] snapshot of firefox behaviour here is a snapshot of firefox behaving correctly the same example.
Jose Blas
Comment 3 2009-08-31 15:40:21 PDT
I have added snapshots as attachments. Thanks
Yuzo Fujishima
Comment 4 2010-02-11 19:13:17 PST
Created attachment 48609 [details] Test to see if line is broken at non-space (slash in this case)
Yuzo Fujishima
Comment 5 2010-02-11 19:27:47 PST
Hmm, I don't see any reasons to change the current behavior. As far as I searched, the HTML 4 spec doesn't say that a line can be broken at non-space characters such as '/', except for soft hyphens. http://www.w3.org/TR/html401/struct/text.html#h-9.3.2 I don't see any reasons from the compatibility point of view either. Please see the attached "Test to see if line is broken at non-space". IE 8.0: no line breaks (same as WebKit-based browsers) FF 3.6: line breaks before '/' Opera 10.10: line breaks after '/'. Yuzo
Note You need to log in before you can comment on or make changes to this bug.