|
1 <?xml version="1.0"?> |
|
2 <!DOCTYPE window> |
|
3 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
4 title="XUL Grid Test"> |
|
5 <style xmlns="http://www.w3.org/1999/xhtml"><![CDATA[ |
|
6 window { background: black; } |
|
7 hbox { height: 100px; width: 100px; } |
|
8 row, column { -moz-box-align: start; } |
|
9 ]]></style> |
|
10 <grid flex="1"> |
|
11 <columns> |
|
12 <column style="background: rgb(0, 255, 0)"> |
|
13 <hbox /> |
|
14 <hbox /> |
|
15 <hbox /> |
|
16 </column> |
|
17 <column> |
|
18 <hbox style="background: rgb(0, 255, 0)" /> |
|
19 <hbox style="background: rgb(0, 255, 0)" /> |
|
20 <hbox style="background: rgb(0, 255, 0)" /> |
|
21 </column> |
|
22 <column> |
|
23 <hbox /> |
|
24 <hbox /> |
|
25 <hbox /> |
|
26 </column> |
|
27 </columns> |
|
28 <rows> |
|
29 <row style="background: rgba(0, 0, 255, 0.6)"> |
|
30 <hbox /> |
|
31 <hbox /> |
|
32 <hbox /> |
|
33 </row> |
|
34 <row> |
|
35 <hbox style="background: rgba(0, 0, 255, 0.6)" /> |
|
36 <hbox style="background: rgba(0, 0, 255, 0.6)" /> |
|
37 <hbox style="background: rgba(0, 0, 255, 0.6)" /> |
|
38 </row> |
|
39 <row> |
|
40 <hbox /> |
|
41 <hbox /> |
|
42 <hbox /> |
|
43 </row> |
|
44 </rows> |
|
45 </grid> |
|
46 </window> |