<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>208278</bug_id>
          
          <creation_ts>2020-02-26 17:10:59 -0800</creation_ts>
          <short_desc>REGRESSION (r257507): [ macOS ] ASSERTION FAILED: blockFormattingState.hasPositiveAndNegativeVerticalMargin(layoutBox)</short_desc>
          <delta_ts>2020-02-26 18:56:48 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jacob Uphoff">jacob_uphoff</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1623291</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-02-26 17:10:59 -0800</bug_when>
    <thetext>The following tests started to have assertion failures after commit r257507:

fast/layoutformattingcontext/block-only/floating-and-next-previous-inflow-with-margin-with-no-border.html	
fast/layoutformattingcontext/block-only/floating-with-new-block-formatting-context.html
fast/layoutformattingcontext/block-only/floats-and-block-formatting-roots.html
fast/layoutformattingcontext/block-only/margin-collapse-first-last-are-floating.html

These failures are happening on Catalina and Mojave debug 

History:

https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=fast%2Flayoutformattingcontext%2Fblock-only%2Ffloating-and-next-previous-inflow-with-margin-with-no-border.html&amp;test=fast%2Flayoutformattingcontext%2Fblock-only%2Ffloating-with-new-block-formatting-context.html&amp;test=fast%2Flayoutformattingcontext%2Fblock-only%2Ffloats-and-block-formatting-roots.html&amp;test=fast%2Flayoutformattingcontext%2Fblock-only%2Fmargin-collapse-first-last-are-floating.html

Failure:

stderr:
ASSERTION FAILED: blockFormattingState.hasPositiveAndNegativeVerticalMargin(layoutBox)
./layout/blockformatting/BlockMarginCollapse.cpp(513) : PositiveAndNegativeVerticalMargin::Values WebCore::Layout::BlockFormattingContext::MarginCollapse::positiveNegativeValues(const WebCore::Layout::Box &amp;, WebCore::Layout::BlockFormattingContext::MarginCollapse::MarginType) const
1   0x520f50de9 WTFCrash
2   0x5044bacfb WTFCrashWithInfo(int, char const*, char const*, int)
3   0x5077b3d2d WebCore::Layout::BlockFormattingContext::MarginCollapse::positiveNegativeValues(WebCore::Layout::Box const&amp;, WebCore::Layout::BlockFormattingContext::MarginCollapse::MarginType) const
4   0x5077b40e7 WebCore::Layout::BlockFormattingContext::MarginCollapse::positiveNegativeMarginBefore(WebCore::Layout::Box const&amp;, WebCore::Layout::UsedVerticalMargin::NonCollapsedValues) const::$_14::operator()() const
5   0x5077b3e6b WebCore::Layout::BlockFormattingContext::MarginCollapse::positiveNegativeMarginBefore(WebCore::Layout::Box const&amp;, WebCore::Layout::UsedVerticalMargin::NonCollapsedValues) const
6   0x5077b4656 WebCore::Layout::BlockFormattingContext::MarginCollapse::precomputedPositiveNegativeValues(WebCore::Layout::Box const&amp;, WebCore::Layout::BlockFormattingContext::MarginCollapse::MarginType) const
7   0x5077b4987 WebCore::Layout::BlockFormattingContext::MarginCollapse::precomputedPositiveNegativeMarginBefore(WebCore::Layout::Box const&amp;, WebCore::Layout::UsedVerticalMargin::NonCollapsedValues) const::$_17::operator()() const
8   0x5077b46eb WebCore::Layout::BlockFormattingContext::MarginCollapse::precomputedPositiveNegativeMarginBefore(WebCore::Layout::Box const&amp;, WebCore::Layout::UsedVerticalMargin::NonCollapsedValues) const
9   0x5077acf3c WebCore::Layout::BlockFormattingContext::MarginCollapse::precomputedMarginBefore(WebCore::Layout::Box const&amp;, WebCore::Layout::UsedVerticalMargin::NonCollapsedValues)
10  0x5077ac78c WebCore::Layout::BlockFormattingContext::precomputeVerticalPosition(WebCore::Layout::Box const&amp;, WebCore::Layout::HorizontalConstraints const&amp;, WebCore::Layout::VerticalConstraints const&amp;)
11  0x5077ac6b7 WebCore::Layout::BlockFormattingContext::precomputeVerticalPositionForAncestors(WebCore::Layout::Box const&amp;, WebCore::Layout::BlockFormattingContext::ConstraintsPair&lt;WebCore::Layout::HorizontalConstraints&gt; const&amp;, WebCore::Layout::BlockFormattingContext::ConstraintsPair&lt;WebCore::Layout::VerticalConstraints&gt; const&amp;)
12  0x5077abe7b WebCore::Layout::BlockFormattingContext::computePositionToAvoidFloats(WebCore::Layout::FloatingContext const&amp;, WebCore::Layout::Box const&amp;, WebCore::Layout::BlockFormattingContext::ConstraintsPair&lt;WebCore::Layout::HorizontalConstraints&gt; const&amp;, WebCore::Layout::BlockFormattingContext::ConstraintsPair&lt;WebCore::Layout::VerticalConstraints&gt; const&amp;)
13  0x5077aa965 WebCore::Layout::BlockFormattingContext::layoutInFlowContent(WebCore::Layout::InvalidationState&amp;, WebCore::Layout::HorizontalConstraints const&amp;, WebCore::Layout::VerticalConstraints const&amp;)
14  0x50778f09e WebCore::Layout::LayoutContext::layoutFormattingContextSubtree(WebCore::Layout::ContainerBox const&amp;, WebCore::Layout::InvalidationState&amp;)
15  0x50778ed57 WebCore::Layout::LayoutContext::layoutWithPreparedRootGeometry(WebCore::Layout::InvalidationState&amp;)
16  0x50778ebe3 WebCore::Layout::LayoutContext::layout(WebCore::LayoutSize const&amp;, WebCore::Layout::InvalidationState&amp;)
17  0x507b17c13 WebCore::FrameViewLayoutContext::layoutUsingFormattingContext()
18  0x507b18feb WebCore::FrameViewLayoutContext::layout()
19  0x506d0b613 WebCore::Document::implicitClose()
20  0x5078b705b WebCore::FrameLoader::checkCallImplicitClose()
21  0x5078b6b3a WebCore::FrameLoader::checkCompleted()
22  0x5078b4dd5 WebCore::FrameLoader::finishedParsing()
23  0x506d1e340 WebCore::Document::finishedParsing()
24  0x50749a1b8 WebCore::HTMLConstructionSite::finishedParsing()
25  0x5074e2475 WebCore::HTMLTreeBuilder::finished()
26  0x5074a13d8 WebCore::HTMLDocumentParser::end()
27  0x50749f358 WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd()
28  0x50749f074 WebCore::HTMLDocumentParser::prepareToStopParsing()
29  0x5074a143f WebCore::HTMLDocumentParser::attemptToEnd()
30  0x5074a1514 WebCore::HTMLDocumentParser::finish()
31  0x507851f9a WebCore::DocumentWriter::end()
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1623292</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-26 17:11:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/59828533&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1623339</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2020-02-26 18:56:48 -0800</bug_when>
    <thetext>Committed r257549: &lt;https://trac.webkit.org/changeset/257549&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>