Add first letter test when first letter is inside a floated block.

This CL adds a test for the RenderBlock::computePreferredLogicalWidths
call to updateFirstLetter. In the case where we don't call
updateFirstLetter we will incorrectly draw the word Foo flowing out
of the enclosing border.

BUG=391288

Review URL: https://codereview.chromium.org/373503002

git-svn-id: svn://svn.chromium.org/blink/trunk@178584 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4c28aaac
<!DOCTYPE html>
<style type="text/css">
#inner { font-size: 200px }
</style>
<p>This test is successful if the word Foo is fully contained inside the
surrounding border.</p>
<div style="height: 200px; width: 300px; overflow: scroll;">
<div style="float: left; border: 3px solid;">
<div><span id="inner">F</span>oo</div>
</div>
</div>
<!DOCTYPE html>
<style type="text/css">
#inner::first-letter { font-size: 200px }
</style>
<p>This test is successful if the word Foo is fully contained inside the
surrounding border.</p>
<div style="height: 200px; width: 300px; overflow: scroll;">
<div style="float: left; border: 3px solid;">
<div id="inner">Foo</div>
</div>
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment