grid-abspos-staticpos-justify-self-vertWM-003.html (3851B)
1 <!DOCTYPE html> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html> 7 <head> 8 <meta charset="utf-8"> 9 <title>CSS Test: Static position of abspos children in a vertical-rl static-pos grid container, with various "justify-self" values</title> 10 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 11 <link rel="help" href="https://drafts.csswg.org/css-grid/#abspos-items"> 12 <link rel="match" href="grid-abspos-staticpos-justify-self-vertWM-003-ref.html"> 13 <style> 14 .container { 15 display: grid; 16 writing-mode: vertical-rl; 17 padding: 1px 2px; 18 border: 1px solid black; 19 background: yellow; 20 margin-bottom: 5px; 21 margin-right: 5px; 22 float: left; /* For testing in "rows" of containers */ 23 } 24 br { clear: both } 25 26 .big > .container { 27 height: 30px; 28 width: 22px; 29 grid: 3px 14px 3px / 2px 20px 2px; 30 } 31 .small > .container { 32 grid: 3px 2px 3px / 0px 2px 0px; 33 height: 2px; 34 width: 4px; 35 } 36 37 .container > * { 38 position: absolute; 39 grid-area: 2 / 2 / 3 / 3; 40 background: teal; 41 height: 6px; 42 width: 8px; 43 } 44 </style> 45 </head> 46 <body> 47 <div class="big"> 48 <!-- The various justify-self values, from 49 https://www.w3.org/TR/css-align-3/#propdef-justify-self --> 50 <!-- auto | normal | stretch --> 51 <div class="container"><div style="justify-self: auto"></div></div> 52 <div class="container"><div style="justify-self: normal"></div></div> 53 <div class="container"><div style="justify-self: stretch"></div></div> 54 <br> 55 <!-- <baseline-position> --> 56 <div class="container"><div style="justify-self: baseline"></div></div> 57 <br> 58 <!-- <self-position>, part 1 --> 59 <div class="container"><div style="justify-self: center"></div></div> 60 <div class="container"><div style="justify-self: start"></div></div> 61 <div class="container"><div style="justify-self: end"></div></div> 62 <div class="container"><div style="justify-self: self-start"></div></div> 63 <div class="container"><div style="justify-self: self-end"></div></div> 64 <br> 65 <!-- <self-position>, part 2 --> 66 <div class="container"><div style="justify-self: flex-start"></div></div> 67 <div class="container"><div style="justify-self: flex-end"></div></div> 68 <div class="container"><div style="justify-self: left"></div></div> 69 <div class="container"><div style="justify-self: right"></div></div> 70 <br> 71 </div> 72 <div class="small"> 73 <!-- The various justify-self values, from 74 https://www.w3.org/TR/css-align-3/#propdef-justify-self --> 75 <!-- auto | normal | stretch --> 76 <div class="container"><div style="justify-self: auto"></div></div> 77 <div class="container"><div style="justify-self: normal"></div></div> 78 <div class="container"><div style="justify-self: stretch"></div></div> 79 <br> 80 <!-- <baseline-position> --> 81 <div class="container"><div style="justify-self: baseline"></div></div> 82 <br> 83 <!-- <self-position>, part 1 --> 84 <div class="container"><div style="justify-self: center"></div></div> 85 <div class="container"><div style="justify-self: start"></div></div> 86 <div class="container"><div style="justify-self: end"></div></div> 87 <div class="container"><div style="justify-self: self-start"></div></div> 88 <div class="container"><div style="justify-self: self-end"></div></div> 89 <br> 90 <!-- <self-position>, part 2 --> 91 <div class="container"><div style="justify-self: flex-start"></div></div> 92 <div class="container"><div style="justify-self: flex-end"></div></div> 93 <div class="container"><div style="justify-self: left"></div></div> 94 <div class="container"><div style="justify-self: right"></div></div> 95 <br> 96 </div> 97 </body> 98 </html>