Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="column-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-columns: repeat(3, min-content);
gap: 10px;
masonry-direction: column-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: lightskyblue;">The cat cannot be separated from milk</div>
<div style="background: lightgreen; width: min-content;">The cat still cannot be separated from milk</div>
</div>
</body>
</html>