Created attachment 109135[details]
white-space processing test
According to fantasai message in www-style:
> http://www.w3.org/TR/CSS21/text.html#spacing-props
> # Word spacing affects each space (U+0020) and non-breaking space (U+00A0),
> # left in the text after the white space processing rules have been applied.
>
> This means that
>
> <inline-block/><inline-block/> will only be affected by letter-spacing, whereas
> <inline-block/> <inline-block/> will be affected by word-spacing.
— http://lists.w3.org/Archives/Public/www-style/2011Sep/0493.html
For now word-spacing property in Webkit doesn't affect white space between
inline blocks but does between usual words. Instead white space between
inline-blocks is affected by letter-spacing property.
Word-spacing property is widely used to eliminate spaces between inline-blocks
produced by code formatting white-spaces.

Comment on attachment 149363[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=149363&action=review> Source/WebCore/rendering/InlineFlowBox.cpp:428
> + // If we encounter any space after this inline block then ensure it is treated as the space between two words.
> + needsWordSpacing = true;
Why don't we have to account for this in RenderBlock::computeInlinePreferredLogicalWidths?
> LayoutTests/fast/css/word-spacing-between-blocks-expected.html:9
> + <link rel="author" title="Lev Solntsev" href="mailto:grelimail@gmail.com">
> + <link rel="author" title="Robert Hogan">
You may want to address Lev's concerns.
> LayoutTests/fast/css/word-spacing-between-blocks-expected.html:28
> +<p>Following strings must be same:</p>
Since these are reworked, please give these tests a meaningful description and a link back to this bug.