Summary: | width of overflow:hidden blocks is wrong when their margins overlap floats | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dave Hyatt <hyatt> | ||||
Component: | Layout and Rendering | Assignee: | Dave Hyatt <hyatt> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | browserbugs2, dglazkov, phiw2, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Dave Hyatt
2012-02-20 14:39:22 PST
The relevant thread for discussion is: http://lists.w3.org/Archives/Public/www-style/2012Feb/0954.html See additional tests mentioned here: http://lists.w3.org/Archives/Public/www-style/2012Feb/1007.html Created attachment 127854 [details]
Patch
Comment on attachment 127854 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127854&action=review > Source/WebCore/rendering/RenderBox.cpp:1261 > + LayoutUnit offsetFromLogicalTopOfRegion = region ? region->offsetFromLogicalTopOfFirstPage() - offsetFromLogicalTopOfFirstPage : 0; No need to test region here. > LayoutTests/fast/block/float/centered-float-avoidance-complexity.html:69 > + <h3>The orange stripe has 'overflow: auto', 'margin-left: auto' and 'margin-right: auto'<br> The lime stripes are floats with various width (topmost is 0, bottommost is 150px)<br>The wrapping container has a solid silver border.</h3> This text is lying about the margins of the orange stripe. Might as well get it right. Comment on attachment 127854 [details] Patch Attachment 127854 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11546579 New failing tests: fast/forms/float-before-fieldset.html fast/block/float/centered-float-avoidance-complexity.html fast/block/float/shrink-to-avoid-float-complexity.html (In reply to comment #3) > > LayoutTests/fast/block/float/centered-float-avoidance-complexity.html:69 > > + <h3>The orange stripe has 'overflow: auto', 'margin-left: auto' and 'margin-right: auto'<br> > This text is lying about the margins of the orange stripe. I fixed that error in http://www.gtalbot.org/BrowserBugsSection/css21testsuite/Floats-And-BFCs-With-Margins-AG.html Gérard |