mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1698730 [wpt PR 28041] - Workaround for legacy markers leaving empty anonymous blocks, a=testonly
Automatic update from web-platform-tests Workaround for legacy markers leaving empty anonymous blocks We should not leave empty anonymous block boxes, but we intentionally do that in LayoutListItem::UpdateMarkerLocation(). This change skips empty anonymous block boxes looking for ::first-letter text. Fixes a fuzzer crash. Bug: 1174985 Change-Id: Ibb3a869c9c3d80b49e2dc8d3a64b86c472584340 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2754547 Reviewed-by: Oriol Brufau <obrufau@igalia.com> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#862345} -- wpt-commits: a081e09311c19ae69131da5598d0db39a35aa78b wpt-pr: 28041
This commit is contained in:
parent
a2ac53c880
commit
a6a846ebe4
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<title>Test innerText for a combination of a list item with ::first-letter in multicol</title>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/dom.html#dom-innertext">
|
||||
<link rel="help" href="https://crbug.com/1174985">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
#item { display: list-item; }
|
||||
#item::first-letter { background: lime; }
|
||||
.col { column-count: 1; }
|
||||
</style>
|
||||
<div id="item" class="col"><div class="col">PASS</div></div>
|
||||
<script>
|
||||
test(() => {
|
||||
assert_equals(item.innerText, "PASS");
|
||||
}, "");
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user