grid-lanes-justify-content-002.html (3516B)
1 <!DOCTYPE HTML> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html><head> 7 <meta charset="utf-8"> 8 <title>CSS Grid Test: Grid Lanes layout with `justify-content` in grid axis (vertical writing mode)</title> 9 <meta name="assert" 10 content="Test passes if justify-content distributes tracks 11 in the grid axis of a vertical writing-mode grid-lanes grid container."> 12 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com"> 13 <link rel="author" title="Kurt Catti-Schmidt" href="mailto:kschmi@microsoft.com"> 14 <link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment"> 15 <link rel="match" href="grid-lanes-justify-content-002-ref.html"> 16 <style> 17 html,body { 18 color:black; background-color:white; font:15px/1 monospace; padding:0; margin:0; 19 } 20 21 grid { 22 display: inline-grid-lanes; 23 gap: 1px 2px; 24 grid-template-columns: repeat(4,20px); 25 color: #444; 26 border: 1px solid; 27 padding: 2px; 28 height: 100px; 29 writing-mode: vertical-lr; 30 } 31 32 item { 33 background-color: #444; 34 color: #fff; 35 } 36 37 .safe { 38 height: 10px; 39 } 40 </style> 41 </head> 42 <body> 43 44 <grid style="justify-content:start"> 45 <item style="padding-right:30px">1</item> 46 <item>2</item> 47 <item>3</item> 48 <item>4</item> 49 <item>5</item> 50 <item>6</item> 51 </grid> 52 53 <grid style="justify-content:start"> 54 <item>1</item> 55 <item style="padding-right:30px">2</item> 56 <item>3</item> 57 <item>4</item> 58 <item>5</item> 59 <item>6</item> 60 </grid> 61 62 <grid style="justify-content:safe start" class="safe"> 63 <item style="padding-right:30px">1</item> 64 <item>2</item> 65 <item>3</item> 66 <item>4</item> 67 <item>5</item> 68 <item>6</item> 69 </grid> 70 71 <grid style="justify-content:end"> 72 <item style="padding-right:30px">1</item> 73 <item>2</item> 74 <item>3</item> 75 <item>4</item> 76 <item>5</item> 77 <item>6</item> 78 </grid> 79 80 <grid style="justify-content:end"> 81 <item>1</item> 82 <item style="padding-right:30px">2</item> 83 <item>3</item> 84 <item>4</item> 85 <item>5</item> 86 <item>6</item> 87 </grid> 88 89 <grid style="justify-content:safe end" class="safe"> 90 <item style="padding-right:30px">1</item> 91 <item>2</item> 92 <item>3</item> 93 <item>4</item> 94 <item>5</item> 95 <item>6</item> 96 </grid> 97 98 <grid style="justify-content:center"> 99 <item style="padding-right:30px">1</item> 100 <item>2</item> 101 <item>3</item> 102 <item>4</item> 103 <item>5</item> 104 <item>6</item> 105 </grid> 106 107 <grid style="justify-content:center"> 108 <item>1</item> 109 <item style="padding-right:30px">2</item> 110 <item>3</item> 111 <item>4</item> 112 <item>5</item> 113 <item>6</item> 114 </grid> 115 116 <grid style="justify-content:safe center" class="safe"> 117 <item style="padding-right:30px">1</item> 118 <item>2</item> 119 <item>3</item> 120 <item>4</item> 121 <item>5</item> 122 <item>6</item> 123 </grid> 124 125 <grid style="justify-content:stretch"> 126 <item style="padding-right:30px">1</item> 127 <item>2</item> 128 <item>3</item> 129 <item>4</item> 130 <item>5</item> 131 <item>6</item> 132 </grid> 133 134 <grid style="justify-content:space-between"> 135 <item style="padding-right:30px">1</item> 136 <item>2</item> 137 <item>3</item> 138 <item>4</item> 139 <item>5</item> 140 <item>6</item> 141 </grid> 142 143 <grid style="justify-content:space-around"> 144 <item style="padding-right:30px">1</item> 145 <item>2</item> 146 <item>3</item> 147 <item>4</item> 148 <item>5</item> 149 <item>6</item> 150 </grid> 151 152 <grid style="justify-content:space-evenly"> 153 <item style="padding-right:30px">1</item> 154 <item>2</item> 155 <item>3</item> 156 <item>4</item> 157 <item>5</item> 158 <item>6</item> 159 </grid>