<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[209910] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/209910">209910</a></dd>
<dt>Author</dt> <dd>zalan@apple.com</dd>
<dt>Date</dt> <dd>2016-12-15 22:32:36 -0800 (Thu, 15 Dec 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>text-align: justify and word-spacing combine to overflow column
https://bugs.webkit.org/show_bug.cgi?id=165796
rdar://problem/29672168

Reviewed by Myles C. Maxfield.

Source/WebCore:

The value of the word-spacing property is not applied on the inline-tree boxes (normal line layout)
with kerning enabled. It causes hittest failures and selection/rendering glitches.
We normally use the pre-computed 'WordMeasurements' values to figure out the run widths. However
with kerning on, in some cases we need to re-measure a certain part of the text by calling RenderText::width().
This function omits the word-spacing value for leading whitespace, so when this text fragment starts with a whitespace,
(while it's not at the beginning of the run) we have to manually add the word-spacing value back.
<a href="http://trac.webkit.org/projects/webkit/changeset/146087">r146087</a> added this logic with the restriction of applying it only to whitespace-only runs.

Test: fast/css/word-spacing-with-normal-layout.html

* rendering/RenderBlockLineLayout.cpp:
(WebCore::setLogicalWidthForTextRun):

LayoutTests:

These are progressions.

* fast/css/word-spacing-with-normal-layout-expected.html: Added.
* fast/css/word-spacing-with-normal-layout.html: Added.
* platform/mac/css1/text_properties/word_spacing-expected.txt:
* platform/mac/fast/css/word-space-extra-expected.txt:
* platform/mac/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt:
* platform/mac/fast/text/word-space-expected.txt:
* platform/mac/svg/custom/svg-fonts-in-html-expected.txt:
* platform/mac/svg/custom/svg-fonts-word-spacing-expected.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorcss1text_propertiesword_spacingexpectedtxt">trunk/LayoutTests/platform/ios-simulator/css1/text_properties/word_spacing-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorfasttextwhitespacespaninwordspacecausesoverflowexpectedtxt">trunk/LayoutTests/platform/ios-simulator/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccss1text_propertiesword_spacingexpectedtxt">trunk/LayoutTests/platform/mac/css1/text_properties/word_spacing-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacfastcsswordspaceextraexpectedtxt">trunk/LayoutTests/platform/mac/fast/css/word-space-extra-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacfasttextwhitespacespaninwordspacecausesoverflowexpectedtxt">trunk/LayoutTests/platform/mac/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacfasttextwordspaceexpectedtxt">trunk/LayoutTests/platform/mac/fast/text/word-space-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacsvgcustomsvgfontsinhtmlexpectedtxt">trunk/LayoutTests/platform/mac/svg/custom/svg-fonts-in-html-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacsvgcustomsvgfontswordspacingexpectedtxt">trunk/LayoutTests/platform/mac/svg/custom/svg-fonts-word-spacing-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBlockLineLayoutcpp">trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcsswordspacingwithnormallayoutexpectedhtml">trunk/LayoutTests/fast/css/word-spacing-with-normal-layout-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcsswordspacingwithnormallayouthtml">trunk/LayoutTests/fast/css/word-spacing-with-normal-layout.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/ChangeLog        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2016-12-15  Zalan Bujtas  &lt;zalan@apple.com&gt;
+
+        text-align: justify and word-spacing combine to overflow column
+        https://bugs.webkit.org/show_bug.cgi?id=165796
+        rdar://problem/29672168
+
+        Reviewed by Myles C. Maxfield.
+
+        These are progressions.
+
+        * fast/css/word-spacing-with-normal-layout-expected.html: Added.
+        * fast/css/word-spacing-with-normal-layout.html: Added.
+        * platform/mac/css1/text_properties/word_spacing-expected.txt:
+        * platform/mac/fast/css/word-space-extra-expected.txt:
+        * platform/mac/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt:
+        * platform/mac/fast/text/word-space-expected.txt:
+        * platform/mac/svg/custom/svg-fonts-in-html-expected.txt:
+        * platform/mac/svg/custom/svg-fonts-word-spacing-expected.txt:
+
</ins><span class="cx"> 2016-12-15  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Make sure HTML validation bubble's state is updated after layout
</span></span></pre></div>
<a id="trunkLayoutTestsfastcsswordspacingwithnormallayoutexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/word-spacing-with-normal-layout-expected.html (0 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/word-spacing-with-normal-layout-expected.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/word-spacing-with-normal-layout-expected.html        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;title&gt;This tests that word-spacing works fine with normal line layout.&lt;/title&gt;
+&lt;style&gt;
+div {
+  text-align: right;
+  width: 200px;
+  font-size: 15px;
+}
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div&gt;bar&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcsswordspacingwithnormallayouthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css/word-spacing-with-normal-layout.html (0 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/word-spacing-with-normal-layout.html                                (rev 0)
+++ trunk/LayoutTests/fast/css/word-spacing-with-normal-layout.html        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;title&gt;This tests that word-spacing works fine with normal line layout.&lt;/title&gt;
+&lt;style&gt;
+.col {
+  width: 200px;
+  font-size: 15px;
+}
+
+.content {
+  text-align: right;
+  word-spacing: 70px;
+}
+&lt;/style&gt;
+&lt;script&gt;
+if (window.internals)
+        internals.settings.setSimpleLineLayoutEnabled(false);
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div class=col&gt;&lt;div class=content&gt;&amp;nbsp bar &amp;nbsp&lt;/div&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorcss1text_propertiesword_spacingexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator/css1/text_properties/word_spacing-expected.txt (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/css1/text_properties/word_spacing-expected.txt        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/platform/ios-simulator/css1/text_properties/word_spacing-expected.txt        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -42,8 +42,8 @@
</span><span class="cx">         RenderText {#text} at (0,0) size 500x19
</span><span class="cx">           text run at (0,0) width 500: &quot;This words in this sentence should have extra space between them.&quot;
</span><span class="cx">       RenderBlock {P} at (0,473) size 784x40
</span><del>-        RenderText {#text} at (0,0) size 758x19
-          text run at (0,0) width 758: &quot;This words in this sentence should have extra space between them, but the last few words in the sentence&quot;
</del><ins>+        RenderText {#text} at (0,0) size 763x19
+          text run at (0,0) width 763: &quot;This words in this sentence should have extra space between them, but the last few words in the sentence&quot;
</ins><span class="cx">         RenderInline {SPAN} at (0,0) size 180x19
</span><span class="cx">           RenderText {#text} at (0,20) size 180x19
</span><span class="cx">             text run at (0,20) width 180: &quot;should have normal spacing&quot;
</span><span class="lines">@@ -86,8 +86,8 @@
</span><span class="cx">                 RenderText {#text} at (0,0) size 500x19
</span><span class="cx">                   text run at (0,0) width 500: &quot;This words in this sentence should have extra space between them.&quot;
</span><span class="cx">               RenderBlock {P} at (4,256) size 762x40
</span><del>-                RenderText {#text} at (0,0) size 694x39
-                  text run at (0,0) width 694: &quot;This words in this sentence should have extra space between them, but the last few words in the&quot;
</del><ins>+                RenderText {#text} at (0,0) size 699x39
+                  text run at (0,0) width 699: &quot;This words in this sentence should have extra space between them, but the last few words in the&quot;
</ins><span class="cx">                   text run at (0,20) width 65: &quot;sentence &quot;
</span><span class="cx">                 RenderInline {SPAN} at (0,0) size 180x19
</span><span class="cx">                   RenderText {#text} at (64,20) size 180x19
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorfasttextwhitespacespaninwordspacecausesoverflowexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/platform/ios-simulator/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -9,5 +9,5 @@
</span><span class="cx">         RenderInline {SPAN} at (0,0) size 22x19
</span><span class="cx">           RenderText {#text} at (151,0) size 22x19
</span><span class="cx">             text run at (151,0) width 22: &quot;not&quot;
</span><del>-        RenderText {#text} at (0,20) size 134x19
-          text run at (0,20) width 134: &quot;even be tolerated.&quot;
</del><ins>+        RenderText {#text} at (0,20) size 154x19
+          text run at (0,20) width 154: &quot;even be tolerated.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmaccss1text_propertiesword_spacingexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/css1/text_properties/word_spacing-expected.txt (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/css1/text_properties/word_spacing-expected.txt        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/platform/mac/css1/text_properties/word_spacing-expected.txt        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -42,8 +42,8 @@
</span><span class="cx">         RenderText {#text} at (0,0) size 500x18
</span><span class="cx">           text run at (0,0) width 500: &quot;This words in this sentence should have extra space between them.&quot;
</span><span class="cx">       RenderBlock {P} at (0,468) size 769x36
</span><del>-        RenderText {#text} at (0,0) size 758x18
-          text run at (0,0) width 758: &quot;This words in this sentence should have extra space between them, but the last few words in the sentence&quot;
</del><ins>+        RenderText {#text} at (0,0) size 763x18
+          text run at (0,0) width 763: &quot;This words in this sentence should have extra space between them, but the last few words in the sentence&quot;
</ins><span class="cx">         RenderInline {SPAN} at (0,0) size 180x18
</span><span class="cx">           RenderText {#text} at (0,18) size 180x18
</span><span class="cx">             text run at (0,18) width 180: &quot;should have normal spacing&quot;
</span><span class="lines">@@ -86,8 +86,8 @@
</span><span class="cx">                 RenderText {#text} at (0,0) size 500x18
</span><span class="cx">                   text run at (0,0) width 500: &quot;This words in this sentence should have extra space between them.&quot;
</span><span class="cx">               RenderBlock {P} at (4,242) size 747x36
</span><del>-                RenderText {#text} at (0,0) size 694x36
-                  text run at (0,0) width 694: &quot;This words in this sentence should have extra space between them, but the last few words in the&quot;
</del><ins>+                RenderText {#text} at (0,0) size 699x36
+                  text run at (0,0) width 699: &quot;This words in this sentence should have extra space between them, but the last few words in the&quot;
</ins><span class="cx">                   text run at (0,18) width 65: &quot;sentence &quot;
</span><span class="cx">                 RenderInline {SPAN} at (0,0) size 180x18
</span><span class="cx">                   RenderText {#text} at (64,18) size 180x18
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacfastcsswordspaceextraexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/fast/css/word-space-extra-expected.txt (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/fast/css/word-space-extra-expected.txt        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/platform/mac/fast/css/word-space-extra-expected.txt        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-layer at (0,0) size 2081x2404
</del><ins>+layer at (0,0) size 2041x2404
</ins><span class="cx">   RenderView at (0,0) size 785x585
</span><span class="cx"> layer at (0,0) size 785x2404
</span><span class="cx">   RenderBlock {HTML} at (0,0) size 785x2405
</span><span class="lines">@@ -17,133 +17,133 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,15) size 24x15
</span><span class="cx">               text run at (256,15) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,15) size 29x15
-            text run at (299,15) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,15) size 9x15
+            text run at (299,15) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,15) size 63x15
-              text run at (327,15) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,15) size 29x15
-            text run at (409,15) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,15) size 63x15
+              text run at (307,15) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,15) size 9x15
+            text run at (389,15) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,15) size 48x15
-              text run at (437,15) width 48: &quot;within&quot;
-          RenderText {#text} at (504,15) size 654x30
-            text run at (504,15) width 130: &quot; elements too.&quot;
-            text run at (653,15) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (397,15) size 48x15
+              text run at (397,15) width 48: &quot;within&quot;
+          RenderText {#text} at (464,15) size 614x30
+            text run at (464,15) width 130: &quot; elements too.&quot;
+            text run at (613,15) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,30) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,30) size 24x15
</span><span class="cx">               text run at (256,30) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,30) size 29x15
-            text run at (299,30) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,30) size 9x15
+            text run at (299,30) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,30) size 63x15
-              text run at (327,30) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,30) size 29x15
-            text run at (409,30) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,30) size 63x15
+              text run at (307,30) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,30) size 9x15
+            text run at (389,30) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,30) size 48x15
-              text run at (437,30) width 48: &quot;within&quot;
-          RenderText {#text} at (504,30) size 99x15
-            text run at (504,30) width 99: &quot; elements &quot;
-          RenderText {#text} at (602,30) size 1094x30
-            text run at (602,30) width 472: &quot; too. (with comment between elements and too)&quot;
-            text run at (1093,30) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (397,30) size 48x15
+              text run at (397,30) width 48: &quot;within&quot;
+          RenderText {#text} at (464,30) size 99x15
+            text run at (464,30) width 99: &quot; elements &quot;
+          RenderText {#text} at (562,30) size 1054x30
+            text run at (562,30) width 472: &quot; too. (with comment between elements and too)&quot;
+            text run at (1053,30) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,45) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,45) size 24x15
</span><span class="cx">               text run at (256,45) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,45) size 29x15
-            text run at (299,45) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,45) size 9x15
+            text run at (299,45) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,45) size 63x15
-              text run at (327,45) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,45) size 29x15
-            text run at (409,45) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,45) size 63x15
+              text run at (307,45) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,45) size 9x15
+            text run at (389,45) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,45) size 48x15
-              text run at (437,45) width 48: &quot;within&quot;
-          RenderText {#text} at (504,45) size 71x15
-            text run at (504,45) width 71: &quot; elements&quot;
-          RenderText {#text} at (594,45) size 1318x30
-            text run at (594,45) width 704: &quot; too. (with comment (no preceeding space) between elements and too)&quot;
-            text run at (1317,45) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (397,45) size 48x15
+              text run at (397,45) width 48: &quot;within&quot;
+          RenderText {#text} at (464,45) size 71x15
+            text run at (464,45) width 71: &quot; elements&quot;
+          RenderText {#text} at (554,45) size 1278x30
+            text run at (554,45) width 704: &quot; too. (with comment (no preceeding space) between elements and too)&quot;
+            text run at (1277,45) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,60) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,60) size 24x15
</span><span class="cx">               text run at (256,60) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,60) size 29x15
-            text run at (299,60) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,60) size 9x15
+            text run at (299,60) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,60) size 63x15
-              text run at (327,60) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,60) size 29x15
-            text run at (409,60) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,60) size 63x15
+              text run at (307,60) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,60) size 9x15
+            text run at (389,60) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,60) size 48x15
-              text run at (437,60) width 48: &quot;within&quot;
-          RenderText {#text} at (504,60) size 99x15
-            text run at (504,60) width 99: &quot; elements &quot;
-          RenderText {#text} at (602,60) size 700x15
-            text run at (602,60) width 680: &quot;too. (with comment (no trailing space) between elements and too)&quot;
-            text run at (1301,60) width 1: &quot; &quot;
-          RenderInline {SPAN} at (0,0) size 390x15
</del><ins>+            RenderText {#text} at (397,60) size 48x15
+              text run at (397,60) width 48: &quot;within&quot;
+          RenderText {#text} at (464,60) size 99x15
+            text run at (464,60) width 99: &quot; elements &quot;
+          RenderText {#text} at (562,60) size 700x15
+            text run at (562,60) width 680: &quot;too. (with comment (no trailing space) between elements and too)&quot;
+            text run at (1261,60) width 1: &quot; &quot;
+          RenderInline {SPAN} at (0,0) size 370x15
</ins><span class="cx">             RenderText {#text} at (0,75) size 257x15
</span><span class="cx">               text run at (0,75) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">             RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">               RenderText {#text} at (256,75) size 24x15
</span><span class="cx">                 text run at (256,75) width 24: &quot;for&quot;
</span><del>-            RenderText {#text} at (299,75) size 29x15
-              text run at (299,75) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (299,75) size 9x15
+              text run at (299,75) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 63x15
</span><del>-              RenderText {#text} at (327,75) size 63x15
-                text run at (327,75) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,75) size 29x15
-            text run at (409,75) width 29: &quot; &quot;
</del><ins>+              RenderText {#text} at (307,75) size 63x15
+                text run at (307,75) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,75) size 9x15
+            text run at (389,75) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,75) size 48x15
-              text run at (437,75) width 48: &quot;within&quot;
-          RenderText {#text} at (504,75) size 1137x30
-            text run at (504,75) width 613: &quot; elements too. (with monospace font from Word to elements)&quot;
-            text run at (1136,75) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (397,75) size 48x15
+              text run at (397,75) width 48: &quot;within&quot;
+          RenderText {#text} at (464,75) size 1097x30
+            text run at (464,75) width 613: &quot; elements too. (with monospace font from Word to elements)&quot;
+            text run at (1096,75) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,90) width 257: &quot;Word   spacing test &quot;
</span><del>-          RenderInline {SPAN} at (0,0) size 229x15
</del><ins>+          RenderInline {SPAN} at (0,0) size 189x15
</ins><span class="cx">             RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">               RenderText {#text} at (256,90) size 24x15
</span><span class="cx">                 text run at (256,90) width 24: &quot;for&quot;
</span><del>-            RenderText {#text} at (299,90) size 29x15
-              text run at (299,90) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (299,90) size 9x15
+              text run at (299,90) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 63x15
</span><del>-              RenderText {#text} at (327,90) size 63x15
-                text run at (327,90) width 63: &quot;elements&quot;
-            RenderText {#text} at (409,90) size 29x15
-              text run at (409,90) width 29: &quot; &quot;
</del><ins>+              RenderText {#text} at (307,90) size 63x15
+                text run at (307,90) width 63: &quot;elements&quot;
+            RenderText {#text} at (389,90) size 9x15
+              text run at (389,90) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {TT} at (0,0) size 48x15
</span><del>-              RenderText {#text} at (437,90) size 48x15
-                text run at (437,90) width 48: &quot;within&quot;
-          RenderText {#text} at (504,90) size 1114x30
-            text run at (504,90) width 590: &quot; elements too. (with monospace font from for to within)&quot;
-            text run at (1113,90) width 1: &quot; &quot;
</del><ins>+              RenderText {#text} at (397,90) size 48x15
+                text run at (397,90) width 48: &quot;within&quot;
+          RenderText {#text} at (464,90) size 1074x30
+            text run at (464,90) width 590: &quot; elements too. (with monospace font from for to within)&quot;
+            text run at (1073,90) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,105) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,105) size 24x15
</span><span class="cx">               text run at (256,105) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,105) size 29x15
-            text run at (299,105) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,105) size 9x15
+            text run at (299,105) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,105) size 63x15
-              text run at (327,105) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,105) size 29x15
-            text run at (409,105) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,105) size 63x15
+              text run at (307,105) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,105) size 9x15
+            text run at (389,105) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {SPAN} at (0,0) size 189x15
</span><span class="cx">             RenderInline {TT} at (0,0) size 48x15
</span><del>-              RenderText {#text} at (437,105) size 48x15
-                text run at (437,105) width 48: &quot;within&quot;
-            RenderText {#text} at (504,105) size 122x15
-              text run at (504,105) width 122: &quot; elements too&quot;
-          RenderText {#text} at (625,105) size 504x15
-            text run at (625,105) width 484: &quot;. (with monospace font from elements to too)&quot;
-            text run at (1128,105) width 1: &quot; &quot;
</del><ins>+              RenderText {#text} at (397,105) size 48x15
+                text run at (397,105) width 48: &quot;within&quot;
+            RenderText {#text} at (464,105) size 122x15
+              text run at (464,105) width 122: &quot; elements too&quot;
+          RenderText {#text} at (585,105) size 504x15
+            text run at (585,105) width 484: &quot;. (with monospace font from elements to too)&quot;
+            text run at (1088,105) width 1: &quot; &quot;
</ins><span class="cx">       RenderBlock (anonymous) at (0,47) size 769x195
</span><span class="cx">         RenderBR {BR} at (985,0) size 1x18
</span><span class="cx">       RenderBlock {PRE} at (0,256) size 769x153
</span><span class="lines">@@ -157,133 +157,133 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,15) size 24x15
</span><span class="cx">               text run at (256,15) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,15) size 29x15
-            text run at (299,15) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,15) size 9x15
+            text run at (299,15) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,15) size 63x15
-              text run at (327,15) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,15) size 29x15
-            text run at (409,15) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,15) size 63x15
+              text run at (307,15) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,15) size 9x15
+            text run at (389,15) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,15) size 48x15
-              text run at (437,15) width 48: &quot;within&quot;
-          RenderText {#text} at (504,15) size 654x30
-            text run at (504,15) width 130: &quot; elements too.&quot;
-            text run at (653,15) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (397,15) size 48x15
+              text run at (397,15) width 48: &quot;within&quot;
+          RenderText {#text} at (464,15) size 614x30
+            text run at (464,15) width 130: &quot; elements too.&quot;
+            text run at (613,15) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,30) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,30) size 24x15
</span><span class="cx">               text run at (256,30) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,30) size 29x15
-            text run at (299,30) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,30) size 9x15
+            text run at (299,30) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,30) size 63x15
-              text run at (327,30) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,30) size 29x15
-            text run at (409,30) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,30) size 63x15
+              text run at (307,30) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,30) size 9x15
+            text run at (389,30) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,30) size 48x15
-              text run at (437,30) width 48: &quot;within&quot;
-          RenderText {#text} at (504,30) size 99x15
-            text run at (504,30) width 99: &quot; elements &quot;
-          RenderText {#text} at (602,30) size 1094x30
-            text run at (602,30) width 472: &quot; too. (with comment between elements and too)&quot;
-            text run at (1093,30) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (397,30) size 48x15
+              text run at (397,30) width 48: &quot;within&quot;
+          RenderText {#text} at (464,30) size 99x15
+            text run at (464,30) width 99: &quot; elements &quot;
+          RenderText {#text} at (562,30) size 1054x30
+            text run at (562,30) width 472: &quot; too. (with comment between elements and too)&quot;
+            text run at (1053,30) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,45) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,45) size 24x15
</span><span class="cx">               text run at (256,45) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,45) size 29x15
-            text run at (299,45) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,45) size 9x15
+            text run at (299,45) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,45) size 63x15
-              text run at (327,45) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,45) size 29x15
-            text run at (409,45) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,45) size 63x15
+              text run at (307,45) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,45) size 9x15
+            text run at (389,45) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,45) size 48x15
-              text run at (437,45) width 48: &quot;within&quot;
-          RenderText {#text} at (504,45) size 71x15
-            text run at (504,45) width 71: &quot; elements&quot;
-          RenderText {#text} at (594,45) size 1318x30
-            text run at (594,45) width 704: &quot; too. (with comment (no preceeding space) between elements and too)&quot;
-            text run at (1317,45) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (397,45) size 48x15
+              text run at (397,45) width 48: &quot;within&quot;
+          RenderText {#text} at (464,45) size 71x15
+            text run at (464,45) width 71: &quot; elements&quot;
+          RenderText {#text} at (554,45) size 1278x30
+            text run at (554,45) width 704: &quot; too. (with comment (no preceeding space) between elements and too)&quot;
+            text run at (1277,45) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,60) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,60) size 24x15
</span><span class="cx">               text run at (256,60) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,60) size 29x15
-            text run at (299,60) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,60) size 9x15
+            text run at (299,60) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,60) size 63x15
-              text run at (327,60) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,60) size 29x15
-            text run at (409,60) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,60) size 63x15
+              text run at (307,60) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,60) size 9x15
+            text run at (389,60) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,60) size 48x15
-              text run at (437,60) width 48: &quot;within&quot;
-          RenderText {#text} at (504,60) size 99x15
-            text run at (504,60) width 99: &quot; elements &quot;
-          RenderText {#text} at (602,60) size 700x15
-            text run at (602,60) width 680: &quot;too. (with comment (no trailing space) between elements and too)&quot;
-            text run at (1301,60) width 1: &quot; &quot;
-          RenderInline {SPAN} at (0,0) size 390x15
</del><ins>+            RenderText {#text} at (397,60) size 48x15
+              text run at (397,60) width 48: &quot;within&quot;
+          RenderText {#text} at (464,60) size 99x15
+            text run at (464,60) width 99: &quot; elements &quot;
+          RenderText {#text} at (562,60) size 700x15
+            text run at (562,60) width 680: &quot;too. (with comment (no trailing space) between elements and too)&quot;
+            text run at (1261,60) width 1: &quot; &quot;
+          RenderInline {SPAN} at (0,0) size 370x15
</ins><span class="cx">             RenderText {#text} at (0,75) size 257x15
</span><span class="cx">               text run at (0,75) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">             RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">               RenderText {#text} at (256,75) size 24x15
</span><span class="cx">                 text run at (256,75) width 24: &quot;for&quot;
</span><del>-            RenderText {#text} at (299,75) size 29x15
-              text run at (299,75) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (299,75) size 9x15
+              text run at (299,75) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 63x15
</span><del>-              RenderText {#text} at (327,75) size 63x15
-                text run at (327,75) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,75) size 29x15
-            text run at (409,75) width 29: &quot; &quot;
</del><ins>+              RenderText {#text} at (307,75) size 63x15
+                text run at (307,75) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,75) size 9x15
+            text run at (389,75) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (437,75) size 48x15
-              text run at (437,75) width 48: &quot;within&quot;
-          RenderText {#text} at (504,75) size 1137x30
-            text run at (504,75) width 613: &quot; elements too. (with monospace font from Word to elements)&quot;
-            text run at (1136,75) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (397,75) size 48x15
+              text run at (397,75) width 48: &quot;within&quot;
+          RenderText {#text} at (464,75) size 1097x30
+            text run at (464,75) width 613: &quot; elements too. (with monospace font from Word to elements)&quot;
+            text run at (1096,75) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,90) width 257: &quot;Word   spacing test &quot;
</span><del>-          RenderInline {SPAN} at (0,0) size 229x15
</del><ins>+          RenderInline {SPAN} at (0,0) size 189x15
</ins><span class="cx">             RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">               RenderText {#text} at (256,90) size 24x15
</span><span class="cx">                 text run at (256,90) width 24: &quot;for&quot;
</span><del>-            RenderText {#text} at (299,90) size 29x15
-              text run at (299,90) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (299,90) size 9x15
+              text run at (299,90) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 63x15
</span><del>-              RenderText {#text} at (327,90) size 63x15
-                text run at (327,90) width 63: &quot;elements&quot;
-            RenderText {#text} at (409,90) size 29x15
-              text run at (409,90) width 29: &quot; &quot;
</del><ins>+              RenderText {#text} at (307,90) size 63x15
+                text run at (307,90) width 63: &quot;elements&quot;
+            RenderText {#text} at (389,90) size 9x15
+              text run at (389,90) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {TT} at (0,0) size 48x15
</span><del>-              RenderText {#text} at (437,90) size 48x15
-                text run at (437,90) width 48: &quot;within&quot;
-          RenderText {#text} at (504,90) size 1114x30
-            text run at (504,90) width 590: &quot; elements too. (with monospace font from for to within)&quot;
-            text run at (1113,90) width 1: &quot; &quot;
</del><ins>+              RenderText {#text} at (397,90) size 48x15
+                text run at (397,90) width 48: &quot;within&quot;
+          RenderText {#text} at (464,90) size 1074x30
+            text run at (464,90) width 590: &quot; elements too. (with monospace font from for to within)&quot;
+            text run at (1073,90) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,105) width 257: &quot;Word   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">             RenderText {#text} at (256,105) size 24x15
</span><span class="cx">               text run at (256,105) width 24: &quot;for&quot;
</span><del>-          RenderText {#text} at (299,105) size 29x15
-            text run at (299,105) width 29: &quot; &quot;
</del><ins>+          RenderText {#text} at (299,105) size 9x15
+            text run at (299,105) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 63x15
</span><del>-            RenderText {#text} at (327,105) size 63x15
-              text run at (327,105) width 63: &quot;elements&quot;
-          RenderText {#text} at (409,105) size 29x15
-            text run at (409,105) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (307,105) size 63x15
+              text run at (307,105) width 63: &quot;elements&quot;
+          RenderText {#text} at (389,105) size 9x15
+            text run at (389,105) width 9: &quot; &quot;
</ins><span class="cx">           RenderInline {SPAN} at (0,0) size 189x15
</span><span class="cx">             RenderInline {TT} at (0,0) size 48x15
</span><del>-              RenderText {#text} at (437,105) size 48x15
-                text run at (437,105) width 48: &quot;within&quot;
-            RenderText {#text} at (504,105) size 122x15
-              text run at (504,105) width 122: &quot; elements too&quot;
-          RenderText {#text} at (625,105) size 504x15
-            text run at (625,105) width 484: &quot;. (with monospace font from elements to too)&quot;
-            text run at (1128,105) width 1: &quot; &quot;
</del><ins>+              RenderText {#text} at (397,105) size 48x15
+                text run at (397,105) width 48: &quot;within&quot;
+            RenderText {#text} at (464,105) size 122x15
+              text run at (464,105) width 122: &quot; elements too&quot;
+          RenderText {#text} at (585,105) size 504x15
+            text run at (585,105) width 484: &quot;. (with monospace font from elements to too)&quot;
+            text run at (1088,105) width 1: &quot; &quot;
</ins><span class="cx">       RenderBlock (anonymous) at (0,421) size 769x0
</span><span class="cx">         RenderInline {SPAN} at (0,0) size 0x0
</span><span class="cx">           RenderText {#text} at (0,0) size 0x0
</span><span class="lines">@@ -292,7 +292,7 @@
</span><span class="cx">           RenderText {#text} at (0,0) size 115x22
</span><span class="cx">             text run at (0,0) width 115: &quot;In a span&quot;
</span><span class="cx">       RenderBlock (anonymous) at (0,468) size 769x271
</span><del>-        RenderInline {SPAN} at (0,0) size 868x234
</del><ins>+        RenderInline {SPAN} at (0,0) size 848x234
</ins><span class="cx">           RenderText {#text} at (0,0) size 179x18
</span><span class="cx">             text run at (0,0) width 60: &quot;Word &quot;
</span><span class="cx">             text run at (59,0) width 120: &quot;spacing test &quot;
</span><span class="lines">@@ -299,19 +299,19 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 19x18
</span><span class="cx">             RenderText {#text} at (178,0) size 19x18
</span><span class="cx">               text run at (178,0) width 19: &quot;for&quot;
</span><del>-          RenderText {#text} at (216,0) size 25x18
-            text run at (216,0) width 25: &quot; &quot;
</del><ins>+          RenderText {#text} at (216,0) size 5x18
+            text run at (216,0) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 61x18
</span><del>-            RenderText {#text} at (240,0) size 61x18
-              text run at (240,0) width 61: &quot;elements&quot;
-          RenderText {#text} at (320,0) size 25x18
-            text run at (320,0) width 25: &quot; &quot;
</del><ins>+            RenderText {#text} at (220,0) size 61x18
+              text run at (220,0) width 61: &quot;elements&quot;
+          RenderText {#text} at (300,0) size 5x18
+            text run at (300,0) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (344,2) size 48x15
-              text run at (344,2) width 48: &quot;within&quot;
-          RenderText {#text} at (411,0) size 110x18
-            text run at (411,0) width 110: &quot; elements too.&quot;
-          RenderBR {BR} at (520,14) size 1x0
</del><ins>+            RenderText {#text} at (304,2) size 48x15
+              text run at (304,2) width 48: &quot;within&quot;
+          RenderText {#text} at (371,0) size 130x18
+            text run at (371,0) width 130: &quot; elements too.&quot;
+          RenderBR {BR} at (500,14) size 1x0
</ins><span class="cx">           RenderText {#text} at (0,18) size 179x18
</span><span class="cx">             text run at (0,18) width 60: &quot;Word &quot;
</span><span class="cx">             text run at (59,18) width 120: &quot;spacing test &quot;
</span><span class="lines">@@ -318,20 +318,20 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 19x18
</span><span class="cx">             RenderText {#text} at (178,18) size 19x18
</span><span class="cx">               text run at (178,18) width 19: &quot;for&quot;
</span><del>-          RenderText {#text} at (216,18) size 25x18
-            text run at (216,18) width 25: &quot; &quot;
</del><ins>+          RenderText {#text} at (216,18) size 5x18
+            text run at (216,18) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 61x18
</span><del>-            RenderText {#text} at (240,18) size 61x18
-              text run at (240,18) width 61: &quot;elements&quot;
-          RenderText {#text} at (320,18) size 25x18
-            text run at (320,18) width 25: &quot; &quot;
</del><ins>+            RenderText {#text} at (220,18) size 61x18
+              text run at (220,18) width 61: &quot;elements&quot;
+          RenderText {#text} at (300,18) size 5x18
+            text run at (300,18) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (344,20) size 48x15
-              text run at (344,20) width 48: &quot;within&quot;
-          RenderText {#text} at (411,18) size 106x18
-            text run at (411,18) width 106: &quot; elements &quot;
-          RenderText {#text} at (516,18) size 868x36
-            text run at (516,18) width 352: &quot;too. (with comment between elements and&quot;
</del><ins>+            RenderText {#text} at (304,20) size 48x15
+              text run at (304,20) width 48: &quot;within&quot;
+          RenderText {#text} at (371,18) size 106x18
+            text run at (371,18) width 106: &quot; elements &quot;
+          RenderText {#text} at (476,18) size 848x36
+            text run at (476,18) width 372: &quot;too. (with comment between elements and&quot;
</ins><span class="cx">             text run at (0,36) width 26: &quot;too)&quot;
</span><span class="cx">           RenderBR {BR} at (25,50) size 1x0
</span><span class="cx">           RenderText {#text} at (0,54) size 179x18
</span><span class="lines">@@ -340,22 +340,22 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 19x18
</span><span class="cx">             RenderText {#text} at (178,54) size 19x18
</span><span class="cx">               text run at (178,54) width 19: &quot;for&quot;
</span><del>-          RenderText {#text} at (216,54) size 25x18
-            text run at (216,54) width 25: &quot; &quot;
</del><ins>+          RenderText {#text} at (216,54) size 5x18
+            text run at (216,54) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 61x18
</span><del>-            RenderText {#text} at (240,54) size 61x18
-              text run at (240,54) width 61: &quot;elements&quot;
-          RenderText {#text} at (320,54) size 25x18
-            text run at (320,54) width 25: &quot; &quot;
</del><ins>+            RenderText {#text} at (220,54) size 61x18
+              text run at (220,54) width 61: &quot;elements&quot;
+          RenderText {#text} at (300,54) size 5x18
+            text run at (300,54) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (344,56) size 48x15
-              text run at (344,56) width 48: &quot;within&quot;
-          RenderText {#text} at (411,54) size 62x18
-            text run at (411,54) width 62: &quot; elements&quot;
-          RenderText {#text} at (492,54) size 867x36
-            text run at (492,54) width 375: &quot; too. (with comment (no preceeding space)&quot;
-            text run at (0,72) width 212: &quot;between elements and too)&quot;
-          RenderBR {BR} at (211,86) size 1x0
</del><ins>+            RenderText {#text} at (304,56) size 48x15
+              text run at (304,56) width 48: &quot;within&quot;
+          RenderText {#text} at (371,54) size 62x18
+            text run at (371,54) width 62: &quot; elements&quot;
+          RenderText {#text} at (452,54) size 847x36
+            text run at (452,54) width 395: &quot; too. (with comment (no preceeding space)&quot;
+            text run at (0,72) width 232: &quot;between elements and too)&quot;
+          RenderBR {BR} at (231,86) size 1x0
</ins><span class="cx">           RenderText {#text} at (0,90) size 179x18
</span><span class="cx">             text run at (0,90) width 60: &quot;Word &quot;
</span><span class="cx">             text run at (59,90) width 120: &quot;spacing test &quot;
</span><span class="lines">@@ -362,23 +362,23 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 19x18
</span><span class="cx">             RenderText {#text} at (178,90) size 19x18
</span><span class="cx">               text run at (178,90) width 19: &quot;for&quot;
</span><del>-          RenderText {#text} at (216,90) size 25x18
-            text run at (216,90) width 25: &quot; &quot;
</del><ins>+          RenderText {#text} at (216,90) size 5x18
+            text run at (216,90) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 61x18
</span><del>-            RenderText {#text} at (240,90) size 61x18
-              text run at (240,90) width 61: &quot;elements&quot;
-          RenderText {#text} at (320,90) size 25x18
-            text run at (320,90) width 25: &quot; &quot;
</del><ins>+            RenderText {#text} at (220,90) size 61x18
+              text run at (220,90) width 61: &quot;elements&quot;
+          RenderText {#text} at (300,90) size 5x18
+            text run at (300,90) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 48x15
</span><del>-            RenderText {#text} at (344,92) size 48x15
-              text run at (344,92) width 48: &quot;within&quot;
-          RenderText {#text} at (411,90) size 106x18
-            text run at (411,90) width 106: &quot; elements &quot;
-          RenderText {#text} at (516,90) size 843x36
-            text run at (516,90) width 327: &quot;too. (with comment (no trailing space)&quot;
-            text run at (0,108) width 212: &quot;between elements and too)&quot;
-          RenderBR {BR} at (211,122) size 1x0
-          RenderInline {SPAN} at (0,0) size 335x15
</del><ins>+            RenderText {#text} at (304,92) size 48x15
+              text run at (304,92) width 48: &quot;within&quot;
+          RenderText {#text} at (371,90) size 106x18
+            text run at (371,90) width 106: &quot; elements &quot;
+          RenderText {#text} at (476,90) size 823x36
+            text run at (476,90) width 347: &quot;too. (with comment (no trailing space)&quot;
+            text run at (0,108) width 232: &quot;between elements and too)&quot;
+          RenderBR {BR} at (231,122) size 1x0
+          RenderInline {SPAN} at (0,0) size 315x15
</ins><span class="cx">             RenderText {#text} at (0,128) size 201x15
</span><span class="cx">               text run at (0,128) width 60: &quot;Word &quot;
</span><span class="cx">               text run at (59,128) width 142: &quot;spacing test &quot;
</span><span class="lines">@@ -385,41 +385,41 @@
</span><span class="cx">             RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">               RenderText {#text} at (200,128) size 24x15
</span><span class="cx">                 text run at (200,128) width 24: &quot;for&quot;
</span><del>-            RenderText {#text} at (243,128) size 29x15
-              text run at (243,128) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (243,128) size 9x15
+              text run at (243,128) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 64x15
</span><del>-              RenderText {#text} at (271,128) size 64x15
-                text run at (271,128) width 64: &quot;elements&quot;
-          RenderText {#text} at (354,126) size 25x18
-            text run at (354,126) width 25: &quot; &quot;
</del><ins>+              RenderText {#text} at (251,128) size 64x15
+                text run at (251,128) width 64: &quot;elements&quot;
+          RenderText {#text} at (334,126) size 5x18
+            text run at (334,126) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 47x15
</span><del>-            RenderText {#text} at (378,128) size 47x15
-              text run at (378,128) width 47: &quot;within&quot;
-          RenderText {#text} at (444,126) size 813x36
-            text run at (444,126) width 369: &quot; elements too. (with monospace font from&quot;
-            text run at (0,144) width 138: &quot;Word to elements)&quot;
-          RenderBR {BR} at (137,158) size 1x0
</del><ins>+            RenderText {#text} at (338,128) size 47x15
+              text run at (338,128) width 47: &quot;within&quot;
+          RenderText {#text} at (404,126) size 793x36
+            text run at (404,126) width 389: &quot; elements too. (with monospace font from&quot;
+            text run at (0,144) width 158: &quot;Word to elements)&quot;
+          RenderBR {BR} at (157,158) size 1x0
</ins><span class="cx">           RenderText {#text} at (0,162) size 179x18
</span><span class="cx">             text run at (0,162) width 60: &quot;Word &quot;
</span><span class="cx">             text run at (59,162) width 120: &quot;spacing test &quot;
</span><del>-          RenderInline {SPAN} at (0,0) size 229x15
</del><ins>+          RenderInline {SPAN} at (0,0) size 189x15
</ins><span class="cx">             RenderInline {EM} at (0,0) size 24x15
</span><span class="cx">               RenderText {#text} at (178,164) size 24x15
</span><span class="cx">                 text run at (178,164) width 24: &quot;for&quot;
</span><del>-            RenderText {#text} at (221,164) size 29x15
-              text run at (221,164) width 29: &quot; &quot;
</del><ins>+            RenderText {#text} at (221,164) size 9x15
+              text run at (221,164) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 63x15
</span><del>-              RenderText {#text} at (249,164) size 63x15
-                text run at (249,164) width 63: &quot;elements&quot;
-            RenderText {#text} at (331,164) size 29x15
-              text run at (331,164) width 29: &quot; &quot;
</del><ins>+              RenderText {#text} at (229,164) size 63x15
+                text run at (229,164) width 63: &quot;elements&quot;
+            RenderText {#text} at (311,164) size 9x15
+              text run at (311,164) width 9: &quot; &quot;
</ins><span class="cx">             RenderInline {TT} at (0,0) size 48x15
</span><del>-              RenderText {#text} at (359,164) size 48x15
-                text run at (359,164) width 48: &quot;within&quot;
-          RenderText {#text} at (426,162) size 838x36
-            text run at (426,162) width 412: &quot; elements too. (with monospace font from for&quot;
-            text run at (0,180) width 63: &quot;to within)&quot;
-          RenderBR {BR} at (62,194) size 1x0
</del><ins>+              RenderText {#text} at (319,164) size 48x15
+                text run at (319,164) width 48: &quot;within&quot;
+          RenderText {#text} at (386,162) size 818x36
+            text run at (386,162) width 432: &quot; elements too. (with monospace font from for&quot;
+            text run at (0,180) width 83: &quot;to within)&quot;
+          RenderBR {BR} at (82,194) size 1x0
</ins><span class="cx">           RenderText {#text} at (0,198) size 179x18
</span><span class="cx">             text run at (0,198) width 60: &quot;Word &quot;
</span><span class="cx">             text run at (59,198) width 120: &quot;spacing test &quot;
</span><span class="lines">@@ -426,21 +426,21 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 19x18
</span><span class="cx">             RenderText {#text} at (178,198) size 19x18
</span><span class="cx">               text run at (178,198) width 19: &quot;for&quot;
</span><del>-          RenderText {#text} at (216,198) size 25x18
-            text run at (216,198) width 25: &quot; &quot;
</del><ins>+          RenderText {#text} at (216,198) size 5x18
+            text run at (216,198) width 5: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 61x18
</span><del>-            RenderText {#text} at (240,198) size 61x18
-              text run at (240,198) width 61: &quot;elements&quot;
-          RenderText {#text} at (320,198) size 25x18
-            text run at (320,198) width 25: &quot; &quot;
-          RenderInline {SPAN} at (0,0) size 189x15
</del><ins>+            RenderText {#text} at (220,198) size 61x18
+              text run at (220,198) width 61: &quot;elements&quot;
+          RenderText {#text} at (300,198) size 5x18
+            text run at (300,198) width 5: &quot; &quot;
+          RenderInline {SPAN} at (0,0) size 209x15
</ins><span class="cx">             RenderInline {TT} at (0,0) size 48x15
</span><del>-              RenderText {#text} at (344,200) size 48x15
-                text run at (344,200) width 48: &quot;within&quot;
-            RenderText {#text} at (411,200) size 122x15
-              text run at (411,200) width 122: &quot; elements too&quot;
-          RenderText {#text} at (532,198) size 776x36
-            text run at (532,198) width 244: &quot;. (with monospace font from&quot;
</del><ins>+              RenderText {#text} at (304,200) size 48x15
+                text run at (304,200) width 48: &quot;within&quot;
+            RenderText {#text} at (371,200) size 142x15
+              text run at (371,200) width 142: &quot; elements too&quot;
+          RenderText {#text} at (512,198) size 776x36
+            text run at (512,198) width 264: &quot;. (with monospace font from&quot;
</ins><span class="cx">             text run at (0,216) width 148: &quot;elements to too) &quot;
</span><span class="cx">         RenderText {#text} at (0,0) size 0x0
</span><span class="cx">         RenderBR {BR} at (0,0) size 0x0
</span><span class="lines">@@ -904,133 +904,133 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,15) size 40x15
</span><span class="cx">               text run at (536,15) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,15) size 34x15
-            text run at (595,15) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,15) size 14x15
+            text run at (595,15) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,15) size 103x15
-              text run at (628,15) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,15) size 34x15
-            text run at (750,15) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,15) size 103x15
+              text run at (608,15) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,15) size 14x15
+            text run at (730,15) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,15) size 78x15
-              text run at (783,15) width 78: &quot;within&quot;
-          RenderText {#text} at (880,15) size 1100x30
-            text run at (880,15) width 200: &quot; elements too.&quot;
-            text run at (1099,15) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (743,15) size 78x15
+              text run at (743,15) width 78: &quot;within&quot;
+          RenderText {#text} at (840,15) size 1060x30
+            text run at (840,15) width 200: &quot; elements too.&quot;
+            text run at (1059,15) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,30) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,30) size 40x15
</span><span class="cx">               text run at (536,30) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,30) size 34x15
-            text run at (595,30) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,30) size 14x15
+            text run at (595,30) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,30) size 103x15
-              text run at (628,30) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,30) size 34x15
-            text run at (750,30) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,30) size 103x15
+              text run at (608,30) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,30) size 14x15
+            text run at (730,30) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,30) size 78x15
-              text run at (783,30) width 78: &quot;within&quot;
-          RenderText {#text} at (880,30) size 149x15
-            text run at (880,30) width 149: &quot; elements &quot;
-          RenderText {#text} at (1028,30) size 1745x30
-            text run at (1028,30) width 697: &quot; too. (with comment between elements and too)&quot;
-            text run at (1744,30) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (743,30) size 78x15
+              text run at (743,30) width 78: &quot;within&quot;
+          RenderText {#text} at (840,30) size 149x15
+            text run at (840,30) width 149: &quot; elements &quot;
+          RenderText {#text} at (988,30) size 1705x30
+            text run at (988,30) width 697: &quot; too. (with comment between elements and too)&quot;
+            text run at (1704,30) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,45) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,45) size 40x15
</span><span class="cx">               text run at (536,45) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,45) size 34x15
-            text run at (595,45) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,45) size 14x15
+            text run at (595,45) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,45) size 103x15
-              text run at (628,45) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,45) size 34x15
-            text run at (750,45) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,45) size 103x15
+              text run at (608,45) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,45) size 14x15
+            text run at (730,45) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,45) size 78x15
-              text run at (783,45) width 78: &quot;within&quot;
-          RenderText {#text} at (880,45) size 116x15
-            text run at (880,45) width 116: &quot; elements&quot;
-          RenderText {#text} at (1015,45) size 2073x30
-            text run at (1015,45) width 1038: &quot; too. (with comment (no preceeding space) between elements and too)&quot;
-            text run at (2072,45) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (743,45) size 78x15
+              text run at (743,45) width 78: &quot;within&quot;
+          RenderText {#text} at (840,45) size 116x15
+            text run at (840,45) width 116: &quot; elements&quot;
+          RenderText {#text} at (975,45) size 2033x30
+            text run at (975,45) width 1038: &quot; too. (with comment (no preceeding space) between elements and too)&quot;
+            text run at (2032,45) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,60) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,60) size 40x15
</span><span class="cx">               text run at (536,60) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,60) size 34x15
-            text run at (595,60) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,60) size 14x15
+            text run at (595,60) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,60) size 103x15
-              text run at (628,60) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,60) size 34x15
-            text run at (750,60) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,60) size 103x15
+              text run at (608,60) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,60) size 14x15
+            text run at (730,60) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,60) size 78x15
-              text run at (783,60) width 78: &quot;within&quot;
-          RenderText {#text} at (880,60) size 149x15
-            text run at (880,60) width 149: &quot; elements &quot;
-          RenderText {#text} at (1028,60) size 1020x15
-            text run at (1028,60) width 1000: &quot;too. (with comment (no trailing space) between elements and too)&quot;
-            text run at (2047,60) width 1: &quot; &quot;
-          RenderInline {SPAN} at (0,0) size 731x15
</del><ins>+            RenderText {#text} at (743,60) size 78x15
+              text run at (743,60) width 78: &quot;within&quot;
+          RenderText {#text} at (840,60) size 149x15
+            text run at (840,60) width 149: &quot; elements &quot;
+          RenderText {#text} at (988,60) size 1020x15
+            text run at (988,60) width 1000: &quot;too. (with comment (no trailing space) between elements and too)&quot;
+            text run at (2007,60) width 1: &quot; &quot;
+          RenderInline {SPAN} at (0,0) size 711x15
</ins><span class="cx">             RenderText {#text} at (0,75) size 537x15
</span><span class="cx">               text run at (0,75) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">             RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">               RenderText {#text} at (536,75) size 40x15
</span><span class="cx">                 text run at (536,75) width 40: &quot;for&quot;
</span><del>-            RenderText {#text} at (595,75) size 34x15
-              text run at (595,75) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (595,75) size 14x15
+              text run at (595,75) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 103x15
</span><del>-              RenderText {#text} at (628,75) size 103x15
-                text run at (628,75) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,75) size 34x15
-            text run at (750,75) width 34: &quot; &quot;
</del><ins>+              RenderText {#text} at (608,75) size 103x15
+                text run at (608,75) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,75) size 14x15
+            text run at (730,75) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,75) size 78x15
-              text run at (783,75) width 78: &quot;within&quot;
-          RenderText {#text} at (880,75) size 1803x30
-            text run at (880,75) width 903: &quot; elements too. (with monospace font from Word to elements)&quot;
-            text run at (1802,75) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (743,75) size 78x15
+              text run at (743,75) width 78: &quot;within&quot;
+          RenderText {#text} at (840,75) size 1763x30
+            text run at (840,75) width 903: &quot; elements too. (with monospace font from Word to elements)&quot;
+            text run at (1762,75) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,90) width 537: &quot;Word and letter   spacing test &quot;
</span><del>-          RenderInline {SPAN} at (0,0) size 325x15
</del><ins>+          RenderInline {SPAN} at (0,0) size 285x15
</ins><span class="cx">             RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">               RenderText {#text} at (536,90) size 40x15
</span><span class="cx">                 text run at (536,90) width 40: &quot;for&quot;
</span><del>-            RenderText {#text} at (595,90) size 34x15
-              text run at (595,90) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (595,90) size 14x15
+              text run at (595,90) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 103x15
</span><del>-              RenderText {#text} at (628,90) size 103x15
-                text run at (628,90) width 103: &quot;elements&quot;
-            RenderText {#text} at (750,90) size 34x15
-              text run at (750,90) width 34: &quot; &quot;
</del><ins>+              RenderText {#text} at (608,90) size 103x15
+                text run at (608,90) width 103: &quot;elements&quot;
+            RenderText {#text} at (730,90) size 14x15
+              text run at (730,90) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {TT} at (0,0) size 78x15
</span><del>-              RenderText {#text} at (783,90) size 78x15
-                text run at (783,90) width 78: &quot;within&quot;
-          RenderText {#text} at (880,90) size 1765x30
-            text run at (880,90) width 865: &quot; elements too. (with monospace font from for to within)&quot;
-            text run at (1764,90) width 1: &quot; &quot;
</del><ins>+              RenderText {#text} at (743,90) size 78x15
+                text run at (743,90) width 78: &quot;within&quot;
+          RenderText {#text} at (840,90) size 1725x30
+            text run at (840,90) width 865: &quot; elements too. (with monospace font from for to within)&quot;
+            text run at (1724,90) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,105) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,105) size 40x15
</span><span class="cx">               text run at (536,105) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,105) size 34x15
-            text run at (595,105) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,105) size 14x15
+            text run at (595,105) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,105) size 103x15
-              text run at (628,105) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,105) size 34x15
-            text run at (750,105) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,105) size 103x15
+              text run at (608,105) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,105) size 14x15
+            text run at (730,105) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {SPAN} at (0,0) size 284x15
</span><span class="cx">             RenderInline {TT} at (0,0) size 78x15
</span><del>-              RenderText {#text} at (783,105) size 78x15
-                text run at (783,105) width 78: &quot;within&quot;
-            RenderText {#text} at (880,105) size 187x15
-              text run at (880,105) width 187: &quot; elements too&quot;
-          RenderText {#text} at (1066,105) size 724x15
-            text run at (1066,105) width 704: &quot;. (with monospace font from elements to too)&quot;
-            text run at (1789,105) width 1: &quot; &quot;
</del><ins>+              RenderText {#text} at (743,105) size 78x15
+                text run at (743,105) width 78: &quot;within&quot;
+            RenderText {#text} at (840,105) size 187x15
+              text run at (840,105) width 187: &quot; elements too&quot;
+          RenderText {#text} at (1026,105) size 724x15
+            text run at (1026,105) width 704: &quot;. (with monospace font from elements to too)&quot;
+            text run at (1749,105) width 1: &quot; &quot;
</ins><span class="cx">       RenderBlock (anonymous) at (0,1595) size 769x194
</span><span class="cx">         RenderBR {BR} at (1450,0) size 1x18
</span><span class="cx">       RenderBlock {PRE} at (0,1803) size 769x153
</span><span class="lines">@@ -1044,133 +1044,133 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,15) size 40x15
</span><span class="cx">               text run at (536,15) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,15) size 34x15
-            text run at (595,15) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,15) size 14x15
+            text run at (595,15) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,15) size 103x15
-              text run at (628,15) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,15) size 34x15
-            text run at (750,15) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,15) size 103x15
+              text run at (608,15) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,15) size 14x15
+            text run at (730,15) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,15) size 78x15
-              text run at (783,15) width 78: &quot;within&quot;
-          RenderText {#text} at (880,15) size 1100x30
-            text run at (880,15) width 200: &quot; elements too.&quot;
-            text run at (1099,15) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (743,15) size 78x15
+              text run at (743,15) width 78: &quot;within&quot;
+          RenderText {#text} at (840,15) size 1060x30
+            text run at (840,15) width 200: &quot; elements too.&quot;
+            text run at (1059,15) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,30) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,30) size 40x15
</span><span class="cx">               text run at (536,30) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,30) size 34x15
-            text run at (595,30) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,30) size 14x15
+            text run at (595,30) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,30) size 103x15
-              text run at (628,30) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,30) size 34x15
-            text run at (750,30) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,30) size 103x15
+              text run at (608,30) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,30) size 14x15
+            text run at (730,30) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,30) size 78x15
-              text run at (783,30) width 78: &quot;within&quot;
-          RenderText {#text} at (880,30) size 149x15
-            text run at (880,30) width 149: &quot; elements &quot;
-          RenderText {#text} at (1028,30) size 1745x30
-            text run at (1028,30) width 697: &quot; too. (with comment between elements and too)&quot;
-            text run at (1744,30) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (743,30) size 78x15
+              text run at (743,30) width 78: &quot;within&quot;
+          RenderText {#text} at (840,30) size 149x15
+            text run at (840,30) width 149: &quot; elements &quot;
+          RenderText {#text} at (988,30) size 1705x30
+            text run at (988,30) width 697: &quot; too. (with comment between elements and too)&quot;
+            text run at (1704,30) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,45) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,45) size 40x15
</span><span class="cx">               text run at (536,45) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,45) size 34x15
-            text run at (595,45) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,45) size 14x15
+            text run at (595,45) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,45) size 103x15
-              text run at (628,45) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,45) size 34x15
-            text run at (750,45) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,45) size 103x15
+              text run at (608,45) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,45) size 14x15
+            text run at (730,45) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,45) size 78x15
-              text run at (783,45) width 78: &quot;within&quot;
-          RenderText {#text} at (880,45) size 116x15
-            text run at (880,45) width 116: &quot; elements&quot;
-          RenderText {#text} at (1015,45) size 2073x30
-            text run at (1015,45) width 1038: &quot; too. (with comment (no preceeding space) between elements and too)&quot;
-            text run at (2072,45) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (743,45) size 78x15
+              text run at (743,45) width 78: &quot;within&quot;
+          RenderText {#text} at (840,45) size 116x15
+            text run at (840,45) width 116: &quot; elements&quot;
+          RenderText {#text} at (975,45) size 2033x30
+            text run at (975,45) width 1038: &quot; too. (with comment (no preceeding space) between elements and too)&quot;
+            text run at (2032,45) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,60) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,60) size 40x15
</span><span class="cx">               text run at (536,60) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,60) size 34x15
-            text run at (595,60) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,60) size 14x15
+            text run at (595,60) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,60) size 103x15
-              text run at (628,60) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,60) size 34x15
-            text run at (750,60) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,60) size 103x15
+              text run at (608,60) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,60) size 14x15
+            text run at (730,60) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,60) size 78x15
-              text run at (783,60) width 78: &quot;within&quot;
-          RenderText {#text} at (880,60) size 149x15
-            text run at (880,60) width 149: &quot; elements &quot;
-          RenderText {#text} at (1028,60) size 1020x15
-            text run at (1028,60) width 1000: &quot;too. (with comment (no trailing space) between elements and too)&quot;
-            text run at (2047,60) width 1: &quot; &quot;
-          RenderInline {SPAN} at (0,0) size 731x15
</del><ins>+            RenderText {#text} at (743,60) size 78x15
+              text run at (743,60) width 78: &quot;within&quot;
+          RenderText {#text} at (840,60) size 149x15
+            text run at (840,60) width 149: &quot; elements &quot;
+          RenderText {#text} at (988,60) size 1020x15
+            text run at (988,60) width 1000: &quot;too. (with comment (no trailing space) between elements and too)&quot;
+            text run at (2007,60) width 1: &quot; &quot;
+          RenderInline {SPAN} at (0,0) size 711x15
</ins><span class="cx">             RenderText {#text} at (0,75) size 537x15
</span><span class="cx">               text run at (0,75) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">             RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">               RenderText {#text} at (536,75) size 40x15
</span><span class="cx">                 text run at (536,75) width 40: &quot;for&quot;
</span><del>-            RenderText {#text} at (595,75) size 34x15
-              text run at (595,75) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (595,75) size 14x15
+              text run at (595,75) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 103x15
</span><del>-              RenderText {#text} at (628,75) size 103x15
-                text run at (628,75) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,75) size 34x15
-            text run at (750,75) width 34: &quot; &quot;
</del><ins>+              RenderText {#text} at (608,75) size 103x15
+                text run at (608,75) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,75) size 14x15
+            text run at (730,75) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (783,75) size 78x15
-              text run at (783,75) width 78: &quot;within&quot;
-          RenderText {#text} at (880,75) size 1803x30
-            text run at (880,75) width 903: &quot; elements too. (with monospace font from Word to elements)&quot;
-            text run at (1802,75) width 1: &quot; &quot;
</del><ins>+            RenderText {#text} at (743,75) size 78x15
+              text run at (743,75) width 78: &quot;within&quot;
+          RenderText {#text} at (840,75) size 1763x30
+            text run at (840,75) width 903: &quot; elements too. (with monospace font from Word to elements)&quot;
+            text run at (1762,75) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,90) width 537: &quot;Word and letter   spacing test &quot;
</span><del>-          RenderInline {SPAN} at (0,0) size 325x15
</del><ins>+          RenderInline {SPAN} at (0,0) size 285x15
</ins><span class="cx">             RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">               RenderText {#text} at (536,90) size 40x15
</span><span class="cx">                 text run at (536,90) width 40: &quot;for&quot;
</span><del>-            RenderText {#text} at (595,90) size 34x15
-              text run at (595,90) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (595,90) size 14x15
+              text run at (595,90) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 103x15
</span><del>-              RenderText {#text} at (628,90) size 103x15
-                text run at (628,90) width 103: &quot;elements&quot;
-            RenderText {#text} at (750,90) size 34x15
-              text run at (750,90) width 34: &quot; &quot;
</del><ins>+              RenderText {#text} at (608,90) size 103x15
+                text run at (608,90) width 103: &quot;elements&quot;
+            RenderText {#text} at (730,90) size 14x15
+              text run at (730,90) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {TT} at (0,0) size 78x15
</span><del>-              RenderText {#text} at (783,90) size 78x15
-                text run at (783,90) width 78: &quot;within&quot;
-          RenderText {#text} at (880,90) size 1765x30
-            text run at (880,90) width 865: &quot; elements too. (with monospace font from for to within)&quot;
-            text run at (1764,90) width 1: &quot; &quot;
</del><ins>+              RenderText {#text} at (743,90) size 78x15
+                text run at (743,90) width 78: &quot;within&quot;
+          RenderText {#text} at (840,90) size 1725x30
+            text run at (840,90) width 865: &quot; elements too. (with monospace font from for to within)&quot;
+            text run at (1724,90) width 1: &quot; &quot;
</ins><span class="cx">             text run at (0,105) width 537: &quot;Word and letter   spacing test &quot;
</span><span class="cx">           RenderInline {EM} at (0,0) size 40x15
</span><span class="cx">             RenderText {#text} at (536,105) size 40x15
</span><span class="cx">               text run at (536,105) width 40: &quot;for&quot;
</span><del>-          RenderText {#text} at (595,105) size 34x15
-            text run at (595,105) width 34: &quot; &quot;
</del><ins>+          RenderText {#text} at (595,105) size 14x15
+            text run at (595,105) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 103x15
</span><del>-            RenderText {#text} at (628,105) size 103x15
-              text run at (628,105) width 103: &quot;elements&quot;
-          RenderText {#text} at (750,105) size 34x15
-            text run at (750,105) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (608,105) size 103x15
+              text run at (608,105) width 103: &quot;elements&quot;
+          RenderText {#text} at (730,105) size 14x15
+            text run at (730,105) width 14: &quot; &quot;
</ins><span class="cx">           RenderInline {SPAN} at (0,0) size 284x15
</span><span class="cx">             RenderInline {TT} at (0,0) size 78x15
</span><del>-              RenderText {#text} at (783,105) size 78x15
-                text run at (783,105) width 78: &quot;within&quot;
-            RenderText {#text} at (880,105) size 187x15
-              text run at (880,105) width 187: &quot; elements too&quot;
-          RenderText {#text} at (1066,105) size 724x15
-            text run at (1066,105) width 704: &quot;. (with monospace font from elements to too)&quot;
-            text run at (1789,105) width 1: &quot; &quot;
</del><ins>+              RenderText {#text} at (743,105) size 78x15
+                text run at (743,105) width 78: &quot;within&quot;
+            RenderText {#text} at (840,105) size 187x15
+              text run at (840,105) width 187: &quot; elements too&quot;
+          RenderText {#text} at (1026,105) size 724x15
+            text run at (1026,105) width 704: &quot;. (with monospace font from elements to too)&quot;
+            text run at (1749,105) width 1: &quot; &quot;
</ins><span class="cx">       RenderBlock (anonymous) at (0,1968) size 769x19
</span><span class="cx">         RenderBR {BR} at (0,0) size 0x18
</span><span class="cx">         RenderInline {SPAN} at (0,0) size 0x0
</span><span class="lines">@@ -1180,7 +1180,7 @@
</span><span class="cx">           RenderText {#text} at (0,0) size 160x22
</span><span class="cx">             text run at (0,0) width 160: &quot;In a span&quot;
</span><span class="cx">       RenderBlock (anonymous) at (0,2046) size 769x343
</span><del>-        RenderInline {SPAN} at (0,0) size 862x342
</del><ins>+        RenderInline {SPAN} at (0,0) size 822x342
</ins><span class="cx">           RenderText {#text} at (0,0) size 428x18
</span><span class="cx">             text run at (0,0) width 244: &quot;Word and letter &quot;
</span><span class="cx">             text run at (243,0) width 185: &quot;spacing test &quot;
</span><span class="lines">@@ -1187,18 +1187,18 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 34x18
</span><span class="cx">             RenderText {#text} at (427,0) size 34x18
</span><span class="cx">               text run at (427,0) width 34: &quot;for&quot;
</span><del>-          RenderText {#text} at (480,0) size 30x18
-            text run at (480,0) width 30: &quot; &quot;
</del><ins>+          RenderText {#text} at (480,0) size 10x18
+            text run at (480,0) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 101x18
</span><del>-            RenderText {#text} at (509,0) size 101x18
-              text run at (509,0) width 101: &quot;elements&quot;
-          RenderText {#text} at (629,0) size 30x18
-            text run at (629,0) width 30: &quot; &quot;
</del><ins>+            RenderText {#text} at (489,0) size 101x18
+              text run at (489,0) width 101: &quot;elements&quot;
+          RenderText {#text} at (609,0) size 10x18
+            text run at (609,0) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (658,2) size 78x15
-              text run at (658,2) width 78: &quot;within&quot;
-          RenderText {#text} at (755,0) size 862x36
-            text run at (755,0) width 107: &quot; elements&quot;
</del><ins>+            RenderText {#text} at (618,2) size 78x15
+              text run at (618,2) width 78: &quot;within&quot;
+          RenderText {#text} at (715,0) size 822x36
+            text run at (715,0) width 107: &quot; elements&quot;
</ins><span class="cx">             text run at (0,18) width 45: &quot;too.&quot;
</span><span class="cx">           RenderBR {BR} at (44,32) size 1x0
</span><span class="cx">           RenderText {#text} at (0,36) size 428x18
</span><span class="lines">@@ -1207,21 +1207,21 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 34x18
</span><span class="cx">             RenderText {#text} at (427,36) size 34x18
</span><span class="cx">               text run at (427,36) width 34: &quot;for&quot;
</span><del>-          RenderText {#text} at (480,36) size 30x18
-            text run at (480,36) width 30: &quot; &quot;
</del><ins>+          RenderText {#text} at (480,36) size 10x18
+            text run at (480,36) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 101x18
</span><del>-            RenderText {#text} at (509,36) size 101x18
-              text run at (509,36) width 101: &quot;elements&quot;
-          RenderText {#text} at (629,36) size 30x18
-            text run at (629,36) width 30: &quot; &quot;
</del><ins>+            RenderText {#text} at (489,36) size 101x18
+              text run at (489,36) width 101: &quot;elements&quot;
+          RenderText {#text} at (609,36) size 10x18
+            text run at (609,36) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (658,38) size 78x15
-              text run at (658,38) width 78: &quot;within&quot;
-          RenderText {#text} at (755,36) size 107x18
-            text run at (755,36) width 107: &quot; elements&quot;
-          RenderText {#text} at (0,54) size 621x18
-            text run at (0,54) width 621: &quot;too. (with comment between elements and too)&quot;
-          RenderBR {BR} at (620,68) size 1x0
</del><ins>+            RenderText {#text} at (618,38) size 78x15
+              text run at (618,38) width 78: &quot;within&quot;
+          RenderText {#text} at (715,36) size 107x18
+            text run at (715,36) width 107: &quot; elements&quot;
+          RenderText {#text} at (0,54) size 641x18
+            text run at (0,54) width 641: &quot;too. (with comment between elements and too)&quot;
+          RenderBR {BR} at (640,68) size 1x0
</ins><span class="cx">           RenderText {#text} at (0,72) size 428x18
</span><span class="cx">             text run at (0,72) width 244: &quot;Word and letter &quot;
</span><span class="cx">             text run at (243,72) width 185: &quot;spacing test &quot;
</span><span class="lines">@@ -1228,22 +1228,22 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 34x18
</span><span class="cx">             RenderText {#text} at (427,72) size 34x18
</span><span class="cx">               text run at (427,72) width 34: &quot;for&quot;
</span><del>-          RenderText {#text} at (480,72) size 30x18
-            text run at (480,72) width 30: &quot; &quot;
</del><ins>+          RenderText {#text} at (480,72) size 10x18
+            text run at (480,72) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 101x18
</span><del>-            RenderText {#text} at (509,72) size 101x18
-              text run at (509,72) width 101: &quot;elements&quot;
-          RenderText {#text} at (629,72) size 30x18
-            text run at (629,72) width 30: &quot; &quot;
</del><ins>+            RenderText {#text} at (489,72) size 101x18
+              text run at (489,72) width 101: &quot;elements&quot;
+          RenderText {#text} at (609,72) size 10x18
+            text run at (609,72) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (658,74) size 78x15
-              text run at (658,74) width 78: &quot;within&quot;
-          RenderText {#text} at (755,72) size 107x18
-            text run at (755,72) width 107: &quot; elements&quot;
-          RenderText {#text} at (0,90) size 668x36
-            text run at (0,90) width 668: &quot;too. (with comment (no preceeding space) between&quot;
-            text run at (0,108) width 219: &quot;elements and too)&quot;
-          RenderBR {BR} at (218,122) size 1x0
</del><ins>+            RenderText {#text} at (618,74) size 78x15
+              text run at (618,74) width 78: &quot;within&quot;
+          RenderText {#text} at (715,72) size 107x18
+            text run at (715,72) width 107: &quot; elements&quot;
+          RenderText {#text} at (0,90) size 688x36
+            text run at (0,90) width 688: &quot;too. (with comment (no preceeding space) between&quot;
+            text run at (0,108) width 239: &quot;elements and too)&quot;
+          RenderBR {BR} at (238,122) size 1x0
</ins><span class="cx">           RenderText {#text} at (0,126) size 428x18
</span><span class="cx">             text run at (0,126) width 244: &quot;Word and letter &quot;
</span><span class="cx">             text run at (243,126) width 185: &quot;spacing test &quot;
</span><span class="lines">@@ -1250,23 +1250,23 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 34x18
</span><span class="cx">             RenderText {#text} at (427,126) size 34x18
</span><span class="cx">               text run at (427,126) width 34: &quot;for&quot;
</span><del>-          RenderText {#text} at (480,126) size 30x18
-            text run at (480,126) width 30: &quot; &quot;
</del><ins>+          RenderText {#text} at (480,126) size 10x18
+            text run at (480,126) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 101x18
</span><del>-            RenderText {#text} at (509,126) size 101x18
-              text run at (509,126) width 101: &quot;elements&quot;
-          RenderText {#text} at (629,126) size 30x18
-            text run at (629,126) width 30: &quot; &quot;
</del><ins>+            RenderText {#text} at (489,126) size 101x18
+              text run at (489,126) width 101: &quot;elements&quot;
+          RenderText {#text} at (609,126) size 10x18
+            text run at (609,126) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (658,128) size 78x15
-              text run at (658,128) width 78: &quot;within&quot;
-          RenderText {#text} at (755,126) size 107x18
-            text run at (755,126) width 107: &quot; elements&quot;
-          RenderText {#text} at (0,144) size 634x36
-            text run at (0,144) width 634: &quot;too. (with comment (no trailing space) between&quot;
-            text run at (0,162) width 219: &quot;elements and too)&quot;
-          RenderBR {BR} at (218,176) size 1x0
-          RenderInline {SPAN} at (0,0) size 665x15
</del><ins>+            RenderText {#text} at (618,128) size 78x15
+              text run at (618,128) width 78: &quot;within&quot;
+          RenderText {#text} at (715,126) size 107x18
+            text run at (715,126) width 107: &quot; elements&quot;
+          RenderText {#text} at (0,144) size 654x36
+            text run at (0,144) width 654: &quot;too. (with comment (no trailing space) between&quot;
+            text run at (0,162) width 239: &quot;elements and too)&quot;
+          RenderBR {BR} at (238,176) size 1x0
+          RenderInline {SPAN} at (0,0) size 645x15
</ins><span class="cx">             RenderText {#text} at (0,182) size 472x15
</span><span class="cx">               text run at (0,182) width 265: &quot;Word and letter &quot;
</span><span class="cx">               text run at (264,182) width 208: &quot;spacing test &quot;
</span><span class="lines">@@ -1273,39 +1273,39 @@
</span><span class="cx">             RenderInline {EM} at (0,0) size 39x15
</span><span class="cx">               RenderText {#text} at (471,182) size 39x15
</span><span class="cx">                 text run at (471,182) width 39: &quot;for&quot;
</span><del>-            RenderText {#text} at (529,182) size 34x15
-              text run at (529,182) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (529,182) size 14x15
+              text run at (529,182) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 103x15
</span><del>-              RenderText {#text} at (562,182) size 103x15
-                text run at (562,182) width 103: &quot;elements&quot;
-          RenderText {#text} at (684,180) size 30x18
-            text run at (684,180) width 30: &quot; &quot;
</del><ins>+              RenderText {#text} at (542,182) size 103x15
+                text run at (542,182) width 103: &quot;elements&quot;
+          RenderText {#text} at (664,180) size 10x18
+            text run at (664,180) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {TT} at (0,0) size 78x15
</span><del>-            RenderText {#text} at (713,182) size 78x15
-              text run at (713,182) width 78: &quot;within&quot;
-          RenderText {#text} at (0,198) size 675x36
-            text run at (0,198) width 675: &quot;elements too. (with monospace font from Word to&quot;
</del><ins>+            RenderText {#text} at (673,182) size 78x15
+              text run at (673,182) width 78: &quot;within&quot;
+          RenderText {#text} at (0,198) size 695x36
+            text run at (0,198) width 695: &quot;elements too. (with monospace font from Word to&quot;
</ins><span class="cx">             text run at (0,216) width 108: &quot;elements)&quot;
</span><span class="cx">           RenderBR {BR} at (107,230) size 1x0
</span><span class="cx">           RenderText {#text} at (0,234) size 428x18
</span><span class="cx">             text run at (0,234) width 244: &quot;Word and letter &quot;
</span><span class="cx">             text run at (243,234) width 185: &quot;spacing test &quot;
</span><del>-          RenderInline {SPAN} at (0,0) size 324x15
</del><ins>+          RenderInline {SPAN} at (0,0) size 284x15
</ins><span class="cx">             RenderInline {EM} at (0,0) size 39x15
</span><span class="cx">               RenderText {#text} at (427,236) size 39x15
</span><span class="cx">                 text run at (427,236) width 39: &quot;for&quot;
</span><del>-            RenderText {#text} at (485,236) size 34x15
-              text run at (485,236) width 34: &quot; &quot;
</del><ins>+            RenderText {#text} at (485,236) size 14x15
+              text run at (485,236) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {STRONG} at (0,0) size 103x15
</span><del>-              RenderText {#text} at (518,236) size 103x15
-                text run at (518,236) width 103: &quot;elements&quot;
-            RenderText {#text} at (640,236) size 34x15
-              text run at (640,236) width 34: &quot; &quot;
</del><ins>+              RenderText {#text} at (498,236) size 103x15
+                text run at (498,236) width 103: &quot;elements&quot;
+            RenderText {#text} at (620,236) size 14x15
+              text run at (620,236) width 14: &quot; &quot;
</ins><span class="cx">             RenderInline {TT} at (0,0) size 78x15
</span><del>-              RenderText {#text} at (673,236) size 78x15
-                text run at (673,236) width 78: &quot;within&quot;
-          RenderText {#text} at (0,252) size 654x36
-            text run at (0,252) width 654: &quot;elements too. (with monospace font from for to&quot;
</del><ins>+              RenderText {#text} at (633,236) size 78x15
+                text run at (633,236) width 78: &quot;within&quot;
+          RenderText {#text} at (0,252) size 674x36
+            text run at (0,252) width 674: &quot;elements too. (with monospace font from for to&quot;
</ins><span class="cx">             text run at (0,270) width 82: &quot;within)&quot;
</span><span class="cx">           RenderBR {BR} at (81,284) size 1x0
</span><span class="cx">           RenderText {#text} at (0,288) size 428x18
</span><span class="lines">@@ -1314,20 +1314,20 @@
</span><span class="cx">           RenderInline {EM} at (0,0) size 34x18
</span><span class="cx">             RenderText {#text} at (427,288) size 34x18
</span><span class="cx">               text run at (427,288) width 34: &quot;for&quot;
</span><del>-          RenderText {#text} at (480,288) size 30x18
-            text run at (480,288) width 30: &quot; &quot;
</del><ins>+          RenderText {#text} at (480,288) size 10x18
+            text run at (480,288) width 10: &quot; &quot;
</ins><span class="cx">           RenderInline {STRONG} at (0,0) size 101x18
</span><del>-            RenderText {#text} at (509,288) size 101x18
-              text run at (509,288) width 101: &quot;elements&quot;
-          RenderText {#text} at (629,288) size 30x18
-            text run at (629,288) width 30: &quot; &quot;
-          RenderInline {SPAN} at (0,0) size 736x33
</del><ins>+            RenderText {#text} at (489,288) size 101x18
+              text run at (489,288) width 101: &quot;elements&quot;
+          RenderText {#text} at (609,288) size 10x18
+            text run at (609,288) width 10: &quot; &quot;
+          RenderInline {SPAN} at (0,0) size 696x33
</ins><span class="cx">             RenderInline {TT} at (0,0) size 78x15
</span><del>-              RenderText {#text} at (658,290) size 78x15
-                text run at (658,290) width 78: &quot;within&quot;
-            RenderText {#text} at (0,308) size 154x15
-              text run at (0,308) width 154: &quot;elements too&quot;
-          RenderText {#text} at (153,306) size 709x36
-            text run at (153,306) width 556: &quot;. (with monospace font from elements to&quot;
</del><ins>+              RenderText {#text} at (618,290) size 78x15
+                text run at (618,290) width 78: &quot;within&quot;
+            RenderText {#text} at (0,308) size 174x15
+              text run at (0,308) width 174: &quot;elements too&quot;
+          RenderText {#text} at (173,306) size 749x36
+            text run at (173,306) width 576: &quot;. (with monospace font from elements to&quot;
</ins><span class="cx">             text run at (0,324) width 46: &quot;too)&quot;
</span><span class="cx">         RenderText {#text} at (0,0) size 0x0
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacfasttextwhitespacespaninwordspacecausesoverflowexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/platform/mac/fast/text/whitespace/span-in-word-space-causes-overflow-expected.txt        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -9,5 +9,5 @@
</span><span class="cx">         RenderInline {SPAN} at (0,0) size 21x18
</span><span class="cx">           RenderText {#text} at (151,0) size 21x18
</span><span class="cx">             text run at (151,0) width 21: &quot;not&quot;
</span><del>-        RenderText {#text} at (0,18) size 134x18
-          text run at (0,18) width 134: &quot;even be tolerated.&quot;
</del><ins>+        RenderText {#text} at (0,18) size 154x18
+          text run at (0,18) width 154: &quot;even be tolerated.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacfasttextwordspaceexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/fast/text/word-space-expected.txt (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/fast/text/word-space-expected.txt        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/platform/mac/fast/text/word-space-expected.txt        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -47,11 +47,11 @@
</span><span class="cx">         RenderInline {SPAN} at (0,0) size 12x18
</span><span class="cx">           RenderText {#text} at (3,3) size 12x18
</span><span class="cx">             text run at (3,3) width 12: &quot;A&quot;
</span><del>-        RenderText {#text} at (64,3) size 55x18
-          text run at (64,3) width 55: &quot; &quot;
</del><ins>+        RenderText {#text} at (64,3) size 5x18
+          text run at (64,3) width 5: &quot; &quot;
</ins><span class="cx">         RenderInline {SPAN} at (0,0) size 12x18
</span><del>-          RenderText {#text} at (118,3) size 12x18
-            text run at (118,3) width 12: &quot;B&quot;
</del><ins>+          RenderText {#text} at (68,3) size 12x18
+            text run at (68,3) width 12: &quot;B&quot;
</ins><span class="cx">       RenderBlock (floating) {DIV} at (0,230) size 83x24 [border: (3px solid #000000)]
</span><span class="cx">         RenderInline {SPAN} at (0,0) size 12x18
</span><span class="cx">           RenderText {#text} at (3,3) size 12x18
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacsvgcustomsvgfontsinhtmlexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/svg/custom/svg-fonts-in-html-expected.txt (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/svg/custom/svg-fonts-in-html-expected.txt        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/platform/mac/svg/custom/svg-fonts-in-html-expected.txt        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -21,9 +21,9 @@
</span><span class="cx">       RenderInline {SPAN} at (0,0) size 0x0
</span><span class="cx"> layer at (173,47) size 454x188
</span><span class="cx">   RenderBlock (positioned) {H1} at (0,15) size 454x189 [color=#DD9955]
</span><del>-    RenderInline {SPAN} at (0,0) size 354x190
-      RenderText {#text} at (50,-1) size 354x190
-        text run at (50,-1) width 354: &quot;CSS ZEN&quot;
</del><ins>+    RenderInline {SPAN} at (0,0) size 341x190
+      RenderText {#text} at (64,-1) size 341x190
+        text run at (64,-1) width 326: &quot;CSS ZEN&quot;
</ins><span class="cx">         text run at (56,93) width 341: &quot;GARDEN&quot;
</span><span class="cx"> layer at (173,119) size 454x21
</span><span class="cx">   RenderBlock (positioned) {H2} at (0,87) size 454x22 [color=#EEFF00]
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacsvgcustomsvgfontswordspacingexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/svg/custom/svg-fonts-word-spacing-expected.txt (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/svg/custom/svg-fonts-word-spacing-expected.txt        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/LayoutTests/platform/mac/svg/custom/svg-fonts-word-spacing-expected.txt        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -21,8 +21,8 @@
</span><span class="cx">         RenderInline {SPAN} at (0,0) size 14x18
</span><span class="cx">           RenderText {#text} at (125,1) size 14x18
</span><span class="cx">             text run at (125,1) width 14: &quot;ab&quot;
</span><del>-        RenderText {#text} at (138,1) size 32x18
-          text run at (138,1) width 32: &quot;c abc&quot;
</del><ins>+        RenderText {#text} at (138,1) size 132x18
+          text run at (138,1) width 132: &quot;c abc&quot;
</ins><span class="cx">       RenderBlock {P} at (0,186) size 784x20
</span><span class="cx">         RenderText {#text} at (0,1) size 126x18
</span><span class="cx">           text run at (0,1) width 126: &quot;abc &quot;
</span><span class="lines">@@ -32,8 +32,8 @@
</span><span class="cx">         RenderInline {SPAN} at (0,0) size 7x18
</span><span class="cx">           RenderText {#text} at (132,1) size 7x18
</span><span class="cx">             text run at (132,1) width 7: &quot;b&quot;
</span><del>-        RenderText {#text} at (138,1) size 32x18
-          text run at (138,1) width 32: &quot;c abc&quot;
</del><ins>+        RenderText {#text} at (138,1) size 132x18
+          text run at (138,1) width 132: &quot;c abc&quot;
</ins><span class="cx">       RenderBlock {P} at (0,224) size 784x20
</span><span class="cx">         RenderText {#text} at (0,1) size 126x18
</span><span class="cx">           text run at (0,1) width 126: &quot;abc &quot;
</span><span class="lines">@@ -48,24 +48,24 @@
</span><span class="cx">         RenderText {#text} at (244,1) size 26x18
</span><span class="cx">           text run at (244,1) width 26: &quot; abc&quot;
</span><span class="cx">       RenderBlock {P} at (0,262) size 784x20
</span><del>-        RenderText {#text} at (0,1) size 33x18
-          text run at (0,1) width 33: &quot;abc a&quot;
</del><ins>+        RenderText {#text} at (0,1) size 133x18
+          text run at (0,1) width 133: &quot;abc a&quot;
</ins><span class="cx">         RenderInline {SPAN} at (0,0) size 7x18
</span><del>-          RenderText {#text} at (32,1) size 7x18
-            text run at (32,1) width 7: &quot;b&quot;
</del><ins>+          RenderText {#text} at (132,1) size 7x18
+            text run at (132,1) width 7: &quot;b&quot;
</ins><span class="cx">         RenderInline {SPAN} at (0,0) size 7x18
</span><del>-          RenderText {#text} at (38,1) size 7x18
-            text run at (38,1) width 7: &quot;c&quot;
-        RenderText {#text} at (144,1) size 26x18
-          text run at (144,1) width 26: &quot; abc&quot;
</del><ins>+          RenderText {#text} at (138,1) size 7x18
+            text run at (138,1) width 7: &quot;c&quot;
+        RenderText {#text} at (244,1) size 26x18
+          text run at (244,1) width 26: &quot; abc&quot;
</ins><span class="cx">       RenderBlock {P} at (0,300) size 784x20
</span><del>-        RenderText {#text} at (0,1) size 33x18
-          text run at (0,1) width 33: &quot;abc a&quot;
</del><ins>+        RenderText {#text} at (0,1) size 133x18
+          text run at (0,1) width 133: &quot;abc a&quot;
</ins><span class="cx">         RenderInline {SPAN} at (0,0) size 7x18
</span><del>-          RenderText {#text} at (32,1) size 7x18
-            text run at (32,1) width 7: &quot;b&quot;
-        RenderText {#text} at (38,1) size 32x18
-          text run at (38,1) width 32: &quot;c abc&quot;
</del><ins>+          RenderText {#text} at (132,1) size 7x18
+            text run at (132,1) width 7: &quot;b&quot;
+        RenderText {#text} at (138,1) size 132x18
+          text run at (138,1) width 132: &quot;c abc&quot;
</ins><span class="cx">       RenderBlock {P} at (0,338) size 784x20
</span><span class="cx">         RenderText {#text} at (0,1) size 126x18
</span><span class="cx">           text run at (0,1) width 126: &quot;abc &quot;
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/Source/WebCore/ChangeLog        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2016-12-15  Zalan Bujtas  &lt;zalan@apple.com&gt;
+
+        text-align: justify and word-spacing combine to overflow column
+        https://bugs.webkit.org/show_bug.cgi?id=165796
+        rdar://problem/29672168
+
+        Reviewed by Myles C. Maxfield.
+
+        The value of the word-spacing property is not applied on the inline-tree boxes (normal line layout)
+        with kerning enabled. It causes hittest failures and selection/rendering glitches.
+        We normally use the pre-computed 'WordMeasurements' values to figure out the run widths. However
+        with kerning on, in some cases we need to re-measure a certain part of the text by calling RenderText::width().
+        This function omits the word-spacing value for leading whitespace, so when this text fragment starts with a whitespace,
+        (while it's not at the beginning of the run) we have to manually add the word-spacing value back.
+        r146087 added this logic with the restriction of applying it only to whitespace-only runs.
+
+        Test: fast/css/word-spacing-with-normal-layout.html
+
+        * rendering/RenderBlockLineLayout.cpp:
+        (WebCore::setLogicalWidthForTextRun):
+
</ins><span class="cx"> 2016-12-15  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Stop reinterpret_casting UBreakIterators to the undefined type TextBreakIterator
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBlockLineLayoutcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp (209909 => 209910)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp        2016-12-16 05:54:24 UTC (rev 209909)
+++ trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp        2016-12-16 06:32:36 UTC (rev 209910)
</span><span class="lines">@@ -486,9 +486,9 @@
</span><span class="cx">     
</span><span class="cx">     // Since we don't cache glyph overflows, we need to re-measure the run if
</span><span class="cx">     // the style is linebox-contain: glyph.
</span><del>-    
</del><span class="cx">     if (!lineBox-&gt;fitsToGlyphs() &amp;&amp; canUseSimpleFontCodePath) {
</span><span class="cx">         unsigned lastEndOffset = run-&gt;m_start;
</span><ins>+        bool atFirstWordMeasurement = true;
</ins><span class="cx">         for (size_t i = 0, size = wordMeasurements.size(); i &lt; size &amp;&amp; lastEndOffset &lt; run-&gt;m_stop; ++i) {
</span><span class="cx">             WordMeasurement&amp; wordMeasurement = wordMeasurements[i];
</span><span class="cx">             if (wordMeasurement.width &lt;= 0 || wordMeasurement.startOffset == wordMeasurement.endOffset)
</span><span class="lines">@@ -503,10 +503,13 @@
</span><span class="cx">                 measuredWidth += renderer.width(wordMeasurement.startOffset, wordLength, xPos + measuredWidth, lineInfo.isFirstLine(),
</span><span class="cx">                     &amp;wordMeasurement.fallbackFonts, &amp;overflow);
</span><span class="cx">                 UChar c = renderer.characterAt(wordMeasurement.startOffset);
</span><del>-                if (i &gt; 0 &amp;&amp; wordLength == 1 &amp;&amp; (c == ' ' || c == '\t'))
</del><ins>+                // renderer.width() omits word-spacing value for leading whitespace, so let's just add it back here.
+                if (!atFirstWordMeasurement &amp;&amp; (c == ' ' || c == '\t'))
</ins><span class="cx">                     measuredWidth += renderer.style().fontCascade().wordSpacing();
</span><span class="cx">             } else
</span><span class="cx">                 measuredWidth += wordMeasurement.width;
</span><ins>+            atFirstWordMeasurement = false;
+
</ins><span class="cx">             if (!wordMeasurement.fallbackFonts.isEmpty()) {
</span><span class="cx">                 HashSet&lt;const Font*&gt;::const_iterator end = wordMeasurement.fallbackFonts.end();
</span><span class="cx">                 for (HashSet&lt;const Font*&gt;::const_iterator it = wordMeasurement.fallbackFonts.begin(); it != end; ++it)
</span></span></pre>
</div>
</div>

</body>
</html>