Automatic update from web-platform-tests layout: Correctly repair `OutsideMarker::list_item_style` `OutsideMarker::repair_style()` was setting `list_item_style` to the style of the marker, not the style of the list item. This patch sets it to `node.parent_style(context)` instead, and it fixes `ServoThreadSafeLayoutNode::parent_style()` to take the pseudo-element chain into account. This requires modifying a bunch of logic to pass the `SharedStyleContext` around. Signed-off-by: Oriol Brufau <obrufau@igalia.com> -- wpt-commits: 7a11a9645ff58b8da44957630be654bfe0c4b240 wpt-pr: 58021
20 lines
680 B
HTML
20 lines
680 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<meta charset="utf-8">
|
|
<title>CSS Test: List item with dynamic padding</title>
|
|
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-display-4/#valdef-display-list-item">
|
|
<link rel="help" href="https://drafts.csswg.org/css-box-4/#paddings">
|
|
<link rel="match" href="list-item-dynamic-padding-ref.html">
|
|
<ul>
|
|
<li id="target">text</li>
|
|
</ul>
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<script>
|
|
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
document.getElementById("target").style.paddingLeft = "100px";
|
|
takeScreenshot();
|
|
}));
|
|
</script>
|
|
</html>
|