| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <rml>
- <head>
- <link type="text/rcss" href="/../Tests/Data/style.rcss" />
- <title>Flex 02 - Various features</title>
- <meta name="Description" content="Testing various flexible box layout features. Should be comparable to the output in a web browser." />
- <style>
- .flex-container {
- display: flex;
- margin: 10dp 20dp;
- background-color: #333;
- max-height: 210dp;
- flex-wrap: wrap-reverse;
- }
- .flex-item {
- width: 50dp;
- margin: 20dp;
- background-color: #eee;
- height: 50dp;
- text-align: center;
- }
- .flex-direction-row {
- flex-direction: row;
- }
- .flex-direction-row-reverse {
- flex-direction: row-reverse;
- }
- .flex-direction-column {
- flex-direction: column;
- }
- .flex-direction-column-reverse {
- flex-direction: column-reverse;
- }
- .absolute {
- margin: 0;
- position: absolute;
- right: 0;
- bottom: 10dp;
- }
- </style>
- </head>
- <body>
- <div class="flex-container flex-direction-row" style="position: relative">
- <div class="flex-item absolute">Abs</div>
- <div class="flex-item" style="margin: 50dp;">1</div>
- <div class="flex-item" style="margin-top: auto">2</div>
- <div class="flex-item" style="margin: auto">3</div>
- </div>
- <div class="flex-container flex-direction-row-reverse" style="height: 200dp; justify-content: space-around;">
- <div class="flex-item absolute" style="right: auto; margin-left: auto; margin-right: auto;"><br/>Abs</div>
- <div class="flex-item">1</div>
- <div class="flex-item" style="margin-bottom: auto;">2</div>
- <div class="flex-item" style="margin-right: 40dp;">3</div>
- </div>
- <div class="flex-container flex-direction-column">
- <div class="flex-item" id="test" style="margin-right: auto">1</div>
- <div class="flex-item">2</div>
- <div class="flex-item">3</div>
- </div>
- <div class="flex-container flex-direction-column-reverse">
- <div class="flex-item">1</div>
- <div class="flex-item">2 LONG_OVERFLOWING_WORD</div>
- <div class="flex-item">3</div>
- </div>
- <handle size_target="#document"/>
- </body>
- </rml>
|