[LayoutNG] Fix list markers not to overlap with previous blocks
This patch fixes when list marker is taller than the content of the list item, list markers not to intrude previous blocks. This behavior is not defined, but Blink, WebKit, and Edge do this by including list marker height into the first line box. This turned out to require a bit complex propagation. Instead, this patch includes list marker height into the list item. This is being tracked in https://github.com/w3c/csswg-drafts/issues/2418 but I think this patch has close enough behavior and turns following tests good enough to rebaseline. fast/css/first-child-pseudo-class.html fast/css/first-of-type-pseudo-class.html fast/css/last-child-pseudo-class.html fast/css/last-of-type-pseudo-class.html fast/css/only-child-pseudo-class.html fast/css/only-of-type-pseudo-class.html Bug: 725277 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: Ic911a96f7804a91d6dccf2bf64bc6fd49169e8cb Reviewed-on: https://chromium-review.googlesource.com/994915Reviewed-by:cathie chen <cathiechen@tencent.com> Reviewed-by:
Emil A Eklund <eae@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#549843}
Showing
Please register or sign in to comment