Skip to content

Commit

Permalink
Add test for negative inline margin + fit-content
Browse files Browse the repository at this point in the history
Also fixes a DCHECK that incorrectly hits.

Bug: 1028817
Change-Id: I43cb472031f4d3842eb302a5460e6dea047120e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1941451
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719890}
  • Loading branch information
kojiishi authored and chromium-wpt-export-bot committed Nov 28, 2019
1 parent 38526f6 commit 8365af3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions css/CSS2/linebox/inline-negative-margin-minmax-crash-001.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<title>CSS Test: Check inline negative margin with fit-content should not cause hang</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://crbug.com/1028817">
<link rel="help" href="https://drafts.csswg.org/css2/visudet.html#inline-width">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<style>
div {
width: fit-content;
}
span {
margin-left: -15px;
}
</style>
<body>
<div>| <span>Operation</span></div>
<script>test(() => {});</script>
</body>

0 comments on commit 8365af3

Please sign in to comment.