mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
a4bbe77771
In inline layout there's no need to do anything with overflow areas since RelativePositionFrames handles it. Apparently doing some of the work messes things up somehow, so the easy fix is to make the inline ::first-letter codepath behave more like nsInlineFrame and not do any messing with overflow areas. So this moves the rest of the overflow code in nsFirstLetterFrame::Reflow into the float-only codepath. There don't appear to be any ordering issues with the movement, since the code that the FinishAndStoreOverflow call is moved across deals with creating and destroying continuations of the child. All the added tests pass with the patch, but without the patch overflow-inline-nooverflow.html fails.
16 lines
286 B
HTML
16 lines
286 B
HTML
<title>::first-letter and overflow</title>
|
|
<style>
|
|
|
|
div {
|
|
height: 8em; width: 5em;
|
|
padding: 3px;
|
|
background: yellow; color: black;
|
|
overflow: auto;
|
|
line-height: 1.0;
|
|
}
|
|
div::first-letter { font-size: 1.2em }
|
|
|
|
</style>
|
|
|
|
<div>Hello world, testing, testing, testing, testing</div>
|