From 52c9f27d954db1faa13bf018cff7ef5cc8b4e5af Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Fri, 4 Oct 2019 14:58:18 +0000 Subject: [PATCH] Bug 1564572 [wpt PR 17733] - [LayoutNG] Ensure self-collapsing block relayout when ancestor resolves., a=testonly Automatic update from web-platform-tests [LayoutNG] Ensure self-collapsing block relayout when ancestor resolves. This bug was a combination of older code before we had "forced" BFC block-offsets. We didn't correctly detect when we had a self-collapsing block (which had floats within it) that needed relayout if the initial estimate was wrong. This makes sure we give ourselves enough information to detect these cases. Bug: 980803 Change-Id: Id1ea5e10d819cb4509fd7664564b75b876f0f7cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1690720 Commit-Queue: Ian Kilpatrick Commit-Queue: Emil A Eklund Reviewed-by: Emil A Eklund Cr-Commit-Position: refs/heads/master{#675729} -- wpt-commits: 137960cfe6ce5b4dfb7a6d0bad126d517e03e009 wpt-pr: 17733 UltraBlame original commit: a77ec3f112e35fc557439dc56d526bde3b8dee0a --- ...ing-float-nested-forced-clearance-004.html | 214 ++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 testing/web-platform/tests/css/CSS2/floats-clear/adjoining-float-nested-forced-clearance-004.html diff --git a/testing/web-platform/tests/css/CSS2/floats-clear/adjoining-float-nested-forced-clearance-004.html b/testing/web-platform/tests/css/CSS2/floats-clear/adjoining-float-nested-forced-clearance-004.html new file mode 100644 index 0000000000000..c0c0deac05c27 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/floats-clear/adjoining-float-nested-forced-clearance-004.html @@ -0,0 +1,214 @@ +< +! +DOCTYPE +html +> +< +html +> +< +link +rel += +" +match +" +href += +" +. +. +/ +. +. +/ +reference +/ +ref +- +filled +- +green +- +100px +- +square +- +only +. +html +" +/ +> +< +link +rel += +" +help +" +href += +" +https +: +/ +/ +www +. +w3 +. +org +/ +TR +/ +CSS22 +/ +visuren +. +html +# +flow +- +control +" +title += +" +9 +. +5 +. +2 +Controlling +flow +next +to +floats +: +the +' +clear +' +property +" +> +< +p +> +Test +passes +if +there +is +a +filled +green +square +. +< +/ +p +> +< +div +style += +" +overflow +: +hidden +; +" +> +< +/ +div +> +< +div +style += +" +float +: +left +; +width +: +100px +; +height +: +50px +; +background +: +green +; +" +> +< +/ +div +> +< +span +> +< +div +style += +" +clear +: +both +; +" +> +< +div +style += +" +height +: +10px +; +" +> +< +div +style += +" +float +: +left +; +width +: +100px +; +height +: +50px +; +background +: +green +; +" +> +< +/ +div +> +< +/ +div +> +< +/ +span +>