Commit 3c80ef1b authored by David Grogan's avatar David Grogan Committed by Commit Bot

[css-flex] Add regression test for SVG sizing bug fixed in FlexNG

Just a test, no behavior change.

Fixed: 965672
Change-Id: Iaf1f86a92aa6c65e33736850ea2fbd5411db45d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2488984Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819403}
parent db175858
<!DOCTYPE html>
<title>SVG root as flex item</title>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item" title="Part E">
<link rel="help" href="https://crbug.com/965672">
<meta name="assert" content="When SVG has aspect ratio and no intrinsic height its flex-basis is available width * ratio, not 150px, when in a column flexbox." />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
The test passes if you see a 600x300 blue rectangle.
<div style="display: flex; flex-direction: column; width: 600px;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" data-expected-width=600 data-expected-height=300>
<rect x="0" y="0" width="200" height="100" fill="blue" />
</svg>
</div>
<script>
checkLayout('svg');
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment