mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
d4185c2d7c
The main change here is to have nsCSSFrameConstructor able to construct a scrollframe for nsFieldSetFrame's inner frame. To make this work properly (as much like normal scrolled elements, and to be consistent with Chrome), we need another major change, which is to move the padding from the nsFieldSetFrame to its inner frame. We do this by copying the padding to the inner frame and ignoring the padding on the outer frame. To get this right for percentage padding and intrinsic widths is a little tricky. For that, we need nsLayoutUtils::IntrinsicForContainer to be able to ignore the padding on a frame so we don't add it twice. Overriding nsFieldSetFrame::GetScrollTargetFrame makes setting scrollTop/ scrollLeft on a <fieldset> work as expected. * * * Bug 261037 - A fieldset overflow:auto reftest. --HG-- extra : rebase_source : 6ca585f685965d3a538bde64ad4057c5fd7b538f
9 lines
146 B
HTML
9 lines
146 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<body>
|
|
<fieldset style="width:0; padding:0;">
|
|
<div style="width:400px; height:200px;"></div>
|
|
</fieldset>
|
|
</body>
|
|
</html>
|