Changeset 169639 in webkit


Ignore:
Timestamp:
Jun 5, 2014 11:44:55 PM (10 years ago)
Author:
mihnea@adobe.com
Message:

[CSSRegions] Region box incorrectly overlaps floating box
https://bugs.webkit.org/show_bug.cgi?id=133545

Reviewed by David Hyatt.

Source/WebCore:
A region box creates a BFC and it should not overlap a floating box in the same formatting context: http://www.w3.org/TR/CSS21/visuren.html#bfc-next-to-float

Test: fast/regions/region-as-bfc-avoids-float.html

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::avoidsFloats):

LayoutTests:
Add test to check that a region does not incorrectly overlap a floating
element in the same formatting context.

  • fast/regions/region-as-bfc-avoids-float-expected.html: Added.
  • fast/regions/region-as-bfc-avoids-float.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r169637 r169639  
     12014-06-05  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        [CSSRegions] Region box incorrectly overlaps floating box
     4        https://bugs.webkit.org/show_bug.cgi?id=133545
     5
     6        Reviewed by David Hyatt.
     7
     8        Add test to check that a region does not incorrectly overlap a floating
     9        element in the same formatting context.
     10
     11        * fast/regions/region-as-bfc-avoids-float-expected.html: Added.
     12        * fast/regions/region-as-bfc-avoids-float.html: Added.
     13
    1142014-06-05  Yoav Weiss  <yoav@yoav.ws>
    215
  • trunk/Source/WebCore/ChangeLog

    r169637 r169639  
     12014-06-05  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        [CSSRegions] Region box incorrectly overlaps floating box
     4        https://bugs.webkit.org/show_bug.cgi?id=133545
     5
     6        Reviewed by David Hyatt.
     7
     8        A region box creates a BFC and it should not overlap a floating box in the same formatting context: http://www.w3.org/TR/CSS21/visuren.html#bfc-next-to-float
     9
     10        Test: fast/regions/region-as-bfc-avoids-float.html
     11
     12        * rendering/RenderBlock.cpp:
     13        (WebCore::RenderBlock::avoidsFloats):
     14
    1152014-06-05  Yoav Weiss  <yoav@yoav.ws>
    216
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r169515 r169639  
    24682468{
    24692469    // Floats can't intrude into our box if we have a non-auto column count or width.
    2470     return RenderBox::avoidsFloats() || !style().hasAutoColumnCount() || !style().hasAutoColumnWidth();
     2470    return RenderBox::avoidsFloats()
     2471        || !style().hasAutoColumnCount()
     2472        || !style().hasAutoColumnWidth()
     2473        || style().hasFlowFrom();
    24712474}
    24722475
Note: See TracChangeset for help on using the changeset viewer.