Bug 13604

Summary: CSS Justify/Word-spacing/table bug
Product: WebKit Reporter: Jeppe Utzon <jeppe>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: mitz, robert
Priority: P2 Keywords: HasReduction
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
URL: http://utzon.com/WK13604/index.html
Bug Depends on:    
Bug Blocks: 47141    
Description Flags
Example code none

Description Jeppe Utzon 2007-05-06 10:47:05 PDT
Stumbled upon a funky wierdness in WebKit. If I have some CSS that defines both "justify" and "word-spacing" and then put some text in a "td", then it behaves as expected (in the nightly) - UNLESS the words are individually wrapped in "a href" tags. If that is done, then the words jump out of the "td" - they spill out of it on the right hand side. Not sure how good an explanation this is, but I've included some example code that shoud make it obvious.

In the example I have a basic page with two tables - each of which have just a single "td" inside. In the top table I have just normal text (without any links) and it behaves as expected. In the bottom table, however, I have wrapped every word in a link and this makes the content of the "td" spill out of it to the right.

So basically the two tables/tds look very different from each other when they should look the same (except for the link decoration). In Firefox both tables behave as they should.

HTH... :)

/Jeppe Utzon
Comment 1 Jeppe Utzon 2007-05-06 10:49:35 PDT
Created attachment 14375 [details]
Example code
Comment 2 mitz 2007-05-06 12:13:58 PDT
Good reduction!
Comment 3 Robert Hogan 2012-03-11 03:22:31 PDT
This doesn't look broken any more. Can you confirm?
Comment 4 Jeppe Utzon 2012-03-11 04:41:07 PDT
(In reply to comment #3)
> This doesn't look broken any more. Can you confirm?

Confirmed. Works correctly now AFAICT. Thanks.
Comment 5 Robert Hogan 2012-03-11 06:44:45 PDT
We should land the test from this bug before closing I guess.