[css-pseudo] Let non-replaced images be list items with markers
<img> elements are usually replaced, so they can't originate a ::marker pseudo-element even if they have 'display: list-item'. However, if they point to an invalid image and have an alternative text, then they are not replaced. Therefore they can have ::before and ::after pseudo-elements, and also a ::marker if they have 'display: list-item'. Before this patch, markers with 'content: normal' were never generated. And non-normal ones worked fine in the inside case, but when outside they triggerede a DCHECK failure because the marker was created but not laid out. BUG=1038644 TEST=external/wpt/css/css-pseudo/marker-content-017.html The test fails in legacy because the 'content' property is not supported yet in ::marker. Change-Id: I4420bc2e9a0460f3a59fa030e5e3d249428aa6be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985759Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Oriol Brufau <obrufau@igalia.com> Cr-Commit-Position: refs/heads/master@{#728012}
Showing
Please register or sign in to comment