Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /compat/webkit-box-align-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="match" href="green-ref.html">
<meta name="assert" content="This test checks that a legacy flex container with -webkit-box-align:start doesn't stretch the cross-axis of its items.">
<style>
.container {
display: -webkit-inline-box;
-webkit-box-align: start; /* Map to align-items: flex-start */
height: 100px;
background: green;
}
.item {
padding: 15px;
border-inline: 25px solid green;
margin: 10px;
aspect-ratio: 1/1;
}
</style>
<div class="container">
<div class="item"></div>
</div>