summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/display-flex-svg-overflow-default.html
blob: 5fb69d0e09db2205f8c7679775a6a1ec136cbf86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<meta charset="utf-8">
<title>display:flex on svg uses 0 as min size with default overflow</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#valdef-overflow">
<link rel="author" title="Khushal Sagar" href="mailto:khushalsagar@chromium.org">
<link rel="match" href="display-flex-svg-overflow-default-ref.html">
<style>
  body {
    background: lightblue;
  }
  div {
    display: flex;
    width: 100px;
    height: 100px;
  }
  svg {
    flex-grow: 1;
  }
</style>
<div>
  <svg>
    <rect width="150" height="150" fill="green"></rect>
  </svg>
</div>