Bug 28857 (no-link-wrap) - Text inside <a> links not wrapping in divs
Summary: Text inside <a> links not wrapping in divs
Status: RESOLVED WONTFIX
Alias: no-link-wrap
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P1 Normal
Assignee: Nobody
URL: http://nonecms.com/safaribug_test.html
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-31 14:40 PDT by Jose Blas
Modified: 2010-02-11 19:27 PST (History)
1 user (show)

See Also:


Attachments
snapshot (38.83 KB, image/jpeg)
2009-08-31 15:37 PDT, Jose Blas
no flags Details
snapshot of firefox behaviour (28.21 KB, image/jpeg)
2009-08-31 15:39 PDT, Jose Blas
no flags Details
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 Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Blas 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.
Comment 1 Jose Blas 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.
Comment 2 Jose Blas 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.
Comment 3 Jose Blas 2009-08-31 15:40:21 PDT
I have added snapshots as attachments.

Thanks
Comment 4 Yuzo Fujishima 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)
Comment 5 Yuzo Fujishima 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