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/masonry/tentative/grid-placement/column-explicit-placement-002.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<html>
<link rel="match" href="column-explicit-placement-002-ref.html">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<style>
.masonry {
    display: masonry;
    background: gray;
    item-tolerance: 0;
    width: 200px;
    gap: 20px;
    padding: 20px;
}
.first-track {
    background: lightskyblue;
    grid-column-start: 1;
    writing-mode: vertical-rl;
    margin-left: 10px;
}
.second-track {
    background: lightcoral;
    grid-column-start: 2;
}
.third-track {
    background: lightgreen;
    grid-column-start: 3;
    writing-mode: vertical-lr;
}
</style>
<body>
  <p>Test that orthoganal masonry items with explicit placement are correctly positioned within the grid axis.</p>
  <div class="masonry">
    <div class="first-track">This is some text</div>
    <div class="second-track">Some larger words in this sentence</div>
    <div class="third-track">The cat cannot be separated from milk</div>
  </div>
</body>
</html>