DescriptionRevert 122501 - Percentage width replaced element in zero percent/fixed width container block incorrectly rendered.
https://bugs.webkit.org/show_bug.cgi?id=9493
Patch by Pravin D <pravind.2k4@gmail.com> on 2012-07-12
Reviewed by Andy Estes.
Source/WebCore:
When the width of the container is zero percent/fixed value then the width of the replaced element must also be zero.
Test: fast/css/percent-width-img-inside-zero-percent-and-fixed-container.html
* rendering/RenderBox.cpp:
(WebCore::RenderBox::computeReplacedLogicalWidthUsing):
When the containing block's available width is zero there can be two cases.
The containing block is floated/positioned in which case the width of the replaced child element must be its instrinsic width.
On the other hand if the width of the container is specified to be either zero percent or fixed value then the width of the
replaced elment must be zero.
LayoutTests:
* fast/css/percent-width-img-inside-zero-percent-and-fixed-container-expected.html: Added.
* fast/css/percent-width-img-inside-zero-percent-and-fixed-container.html: Added.
* fast/css/resources/red-box.png: Added.
Image resource file for the test case.
TBR=commit-queue@webkit.org
Committed: https://trac.webkit.org/changeset/127651
Patch Set 1 #
Messages
Total messages: 1 (0 generated)
|