Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-lanes/tentative/item-placement/row-reverse-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<link rel="match" href="row-reverse-003-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
display: grid-lanes;
item-tolerance: 0;
grid-template-rows: repeat(3, 50px);
gap: 10px;
masonry-direction: row-reverse;
direction: rtl;
}
</style>
<body>
<p>The CSS property `direction` is correctly applied on top of `masonry-direction`</p>
<div class="grid-lanes">
<div style="background: lavender;">Some larger words in this sentence</div>
<div style="background: lightgreen; width: min-content;">milk</div>
<div style="background: lightskyblue;">The cat cannot be separated from milk</div>
<div style="background: lavender;">Some larger words in this sentence</div>
</div>
</body>
</html>