Skip to content

Commit

Permalink
[css-flexbox] Move negative-margins-assert.html to WPT
Browse files Browse the repository at this point in the history
This CL migrates this test out of
third_party/blink/web_tests/css3/flexbox and into the WPT-specific
directory, adding links to the relevant specs and a test assertion
describing its purpose and renames it to
negative-flex-margins-crash.html.

Bug: 1063749
Change-Id: Ibd2006646b62247ec4b0fd77165b7bb5fc058040
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144801
Reviewed-by: David Grogan <dgrogan@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
Cr-Commit-Position: refs/heads/master@{#758491}
  • Loading branch information
MyidShin authored and chromium-wpt-export-bot committed Apr 13, 2020
1 parent ec1023a commit 5f23150
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions css/css-flexbox/negative-flex-margins-crash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Flexbox: Crash caused by negative width in flex box</title>
<link rel="author" title="Christian Biesinger" href="mailto:cbiesinger@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#box-model">
<link rel="issue" href="https://crbug.com/490423">
<meta name="assert" content="Check that crash doesn't happen in flex box with negative margin.">

<style>
div {
display: flex;
}

.inner {
margin-left: -4em;
}
</style>
<div>
<div>
<div class="inner">PASS if we don't assert</div>
</div>
</div>

0 comments on commit 5f23150

Please sign in to comment.