gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 87Markdown 12TOML 91924 Definiciones

⎇ main test_fixtures/flex/bevy_issue_16304.html HTML · 22 líneas · 700 B Historia crudo

Flexbox: clamp indefinite available space by min- and max- size as appropriate (#742) 8c748748e · Nico Burns ·

1<!DOCTYPE html>
2<html lang="en">
3<head>
4  <script src="../../scripts/gentest/test_helper.js"></script>
5  <link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css">
6  <title>
7    min width causing height issues
8  </title>
9</head>
10<body>
11
12<div id="test-root" style="display: flex; background-color: grey;">
13  <div style="display: flex; flex-direction: column; width: 50px;">
14    <div style="display: flex; min-width: 50px; flex-wrap: wrap; gap: 10px; background-color: blue;">
15      <div style="width: 20px; height: 40px; background-color: red;"></div>
16      <div style="width: 20px; height: 40px; background-color: red;"></div>
17    </div>
18  </div>
19</div>
20
21</body>
22</html>