Files
sousa-gecko/testing/web-platform/tests/css/css-sizing/min-content-negative-margin-inline-crash.html
T
Nishaanth Shriram M S d71d559e24 Bug 2031875 [wpt PR 59140] - Check negative margin sizes for min-content while computing indent position, a=testonly
Automatic update from web-platform-tests
Check negative margin sizes for min-content while computing indent position

Bug: 496807859
Change-Id: Id954d9463407ef4f858005026692398fdd91b296
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7703993
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Auto-Submit: Nishaanth Shriram M S <nishaanthshriramms@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1613611}

--

wpt-commits: 47d9ecb2ccfeb8ca7f7c005ae1f89236204c3676
wpt-pr: 59140
2026-04-23 10:11:51 +00:00

29 lines
1.1 KiB
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: min-content with negative margins cancelling inline sizes must not crash</title>
<!-- Span with padding followed by a different span with negative margin -->
<div style="width:min-content">
<span style="padding-left:50px;"></span><span style="margin-left:-50px;"></span>text content here
</div>
<!-- Border variant -->
<div style="width:min-content">
<span style="border-left:50px solid transparent;"></span><span style="margin-left:-50px;"></span>text content here
</div>
<!-- padding-right + negative margin-left on next element -->
<div style="width:min-content">
<span style="padding-right:50px;"></span><span style="margin-left:-50px;"></span>text content here
</div>
<!-- Multiple cancellations -->
<div style="width:min-content">
<span style="padding-left:30px;"></span><span style="padding-left:20px;"></span><span style="margin-left:-50px;"></span>text
</div>
<!-- Long word variant -->
<div style="width:min-content">
<span style="padding-left:50px;"></span><span style="margin-left:-50px;"></span>longwordwithoutbreaks
</div>