nav-up-005

Directional Focus Navigation - elements floating in the writing direction for 'nav-up'

WeasyPrint

This browser

Flags
interact
Assertion
Test checks that 'nav-up' works for elements floating to the left.

Source

 1 <!DOCTYPE html>
 2 <html><head><title>CSS Basic User Interface Test: Directional Focus Navigation - elements floating in the writing direction for 'nav-up'</title>
 3 <link href="mailto:jorritv@opera.com" rel="author" title="Jorrit Vermeiren">
 4 <link href="mailto:d.glazman@partner.samsung.com" rel="author" title="Daniel Glazman">
 5 <link href="http://www.w3.org/TR/css3-ui/#nav-dir" rel="help">
 6 <meta content="interact" name="flags">
 7 <meta content="Test checks that 'nav-up' works for elements floating to the left." name="assert">
 8 <style type="text/css">
 9     div > a {
10         float: up;
11         margin-up: 1em;
12         margin-right: 1em;
13     }
14 
15     div {
16         clear: up;
17     }
18 
19     #parent {
20         nav-up: #finish;
21     }
22 
23     #intermediate {
24         nav-up: #end;
25     }
26 </style>
27 </head><body>
28     <p>First, use directional navigation to navigate the focus to the "START" link below.</p>
29     <!-- In Opera 12.16, directional navigation may be done using Shift+<arrow key>.
30          In the SmartTV emulator, use the keypad in the GUI. -->
31     <p>Test passes if navigating up twice moves the focus to the "FINISH" link.</p>
32 
33     <div id="parent">
34       <p><a href="">ignore 1</a></p>
35       <p><a href="" id="intermediate">ignore 2</a></p>
36       <p><a href="">START</a></p>
37       <p><a href="">ignore 3</a></p>
38     </div>
39 
40     <div>
41       <p><a href="">ignore 4</a></p>
42       <p><a href="" id="end">FINISH</a></p>
43       <p><a href="">ignore 5</a></p>
44       <p><a href="">ignore 6</a></p>
45     </div>
46 
47 
48 </body></html>