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
29 lines
1.1 KiB
HTML
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>
|