tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81412 Sutichaykuna

⎇ 5fc9c4c5d9cf54b7a24dcc78d46031507d3dcfb8 test_fixtures/block/block_aspect_ratio_stretch_width_max_height.html HTML · 19 siq'ikuna · 466 B Ñawpa willay ch'uya

block: derive definite height from aspect-ratio at final layout (#965) 8609e92f1 · Umut Cevdet Koçak ·

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    Test description
8  </title>
9</head>
10<body>
11
12<div id="test-root" style="display: block; width: 100px; height: 200px;">
13  <div style="display: block; aspect-ratio: 1; max-height: 40px;">
14    <div style="display: block;"></div>
15  </div>
16</div>
17
18</body>
19</html>