Skip to content
  • mihnea@adobe.com's avatar
    [CSSRegions] Wrong auto-height region computation for nested named flows · 3cb7870e
    mihnea@adobe.com authored
    https://bugs.webkit.org/show_bug.cgi?id=119517
    
    Reviewed by David Hyatt.
    
    Source/WebCore:
    
    Test: fast/regions/abspos-autoheight-nested-region.html
    
    In the case of an (inner) auto-height region that is absolutely positioned in a named flow that is displayed in an (outer) auto-height region,
    when we are doing the layout for the named flow we need to add a "forced region break" also for the case of simplified layout, otherwise
    the outer auto-height region will not get the chance to compute its auto-height, ending up with a huge value that was used to initialize
    the auto-height computed value before the start of the layout algorithm.
    
    * rendering/RenderBlock.cpp:
    (WebCore::RenderBlock::simplifiedLayout):
    
    LayoutTests:
    
    * fast/regions/abspos-autoheight-nested-region-expected.txt: Added.
    * fast/regions/abspos-autoheight-nested-region.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3cb7870e