[css-lists] Avoid newline when changing list marker position in legacy
Dynamic changes to 'list-style-position' in legacy layout are so broken, especially with nested list items. In lots of cases, some markers end up nested inside the wrong list item, or appear in the wrong position, or an empty line is inserted somewhere. This patch doesn't fix all the cases, which would require a big refactorization. It only fixes the case that I need for bug 457718. The case is: - Initially, <div><div style="list-style-position: inside"><div></div></div></div> - After being laid out, the middle <div> is set to 'outside': <div><div><div></div></div></div> - After reflowing, the inner <div> is set to 'inside': <div><div><div style="list-style-position: inside"></div></div></div> This used to place the 2 outside markers in a 1st line and the inside one in a 2nd line, creating an empty line between them. This patch fixes it. BUG=1051114 TEST=web_tests/external/wpt/css/css-lists/change-list-style-position-002.html The patch also fixes some typos in change-list-style-position-001.html Change-Id: Ib42433ec43eca1925d0a47f4caaabbce7951360c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2049854Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Oriol Brufau <obrufau@igalia.com> Cr-Commit-Position: refs/heads/master@{#740617}
Showing
Please register or sign in to comment