diff options
author | Yuri Kobets <[email protected]> | 2024-01-31 03:48:44 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-31 03:48:44 +0300 |
commit | 6ca1ab0419e770e6d35a1ef690238773a1dafcee (patch) | |
tree | 16df635edd594dc1d1b9d0044993e2ae4d0e0200 /test/render/flex/-nested-orthogonal-flexbox-relayout.htm | |
parent | 8c320007878795fe629de7fe1eaef9328ac9c719 (diff) | |
parent | d85ebec101e77825e5708e58df0e2508ec4fd389 (diff) |
Flex layout
Diffstat (limited to 'test/render/flex/-nested-orthogonal-flexbox-relayout.htm')
-rw-r--r-- | test/render/flex/-nested-orthogonal-flexbox-relayout.htm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/render/flex/-nested-orthogonal-flexbox-relayout.htm b/test/render/flex/-nested-orthogonal-flexbox-relayout.htm new file mode 100644 index 00000000..fb5f085a --- /dev/null +++ b/test/render/flex/-nested-orthogonal-flexbox-relayout.htm @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html><head><title>CSS Flexbox: nested orthogonal children on relayout.</title> +<link href="https://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help"> +<link href="reference/nested-orthogonal-flexbox-relayout-ref.htm" rel="match"> +<meta content="This test ensures nested orthogonal flex items get properly relaid out when flexbox changes dimensions." name="assert"> +<style> +#column { + display: flex; + flex-direction: column; + border: 5px solid yellow; +} + +#row { + display: flex; + flex-direction: row; + border: 5px solid blue; +} + +.item { + border: 5px solid green; +} +</style> +</head><body> +<div id="column"> + <div id="row"> + <div class="item">This text should not overflow its box</div> + </div> +</div> +<script> +var columnBox = document.getElementById("column"); +columnBox.offsetHeight; +columnBox.style.width = "200px"; +</script> +</body></html>
\ No newline at end of file |