nav-down-005

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

WeasyPrint

This browser

Flags
interact
Assertion
Test checks that 'nav-down' 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-down'</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-down' works for elements floating to the left." name="assert">
 8 <style type="text/css">
 9     div > a {
10         float: left;
11         margin-left: 1em;
12         margin-right: 1em;
13     }
14 
15     div {
16         clear: left;
17     }
18 
19     #parent {
20         nav-down: #finish;
21     }
22 
23     #intermediate {
24         nav-down: #end;
25     }
26 
27 </style>
28 </head><body>
29     <p>First, use directional navigation to navigate the focus to the "START" link below.</p>
30     <!-- In Opera 12.16, directional navigation may be done using Shift+<arrow key>.
31          In the SmartTV emulator, use the keypad in the GUI. -->
32     <p>Test passes if navigating down twice moves the focus to the "FINISH" link.</p>
33 
34     <div id="parent">
35       <a href="">ignore 1</a>
36       <a href="">START</a>
37       <a href="" id="end">FINISH</a>
38       <a href="">ignore 3</a>
39     </div>
40 
41     <div>
42       <a href="">ignore 4</a>
43       <a href="" id="intermediate">ignore 2</a>
44       <a href="">ignore 5</a>
45       <a href="">ignore 6</a>
46     </div>
47 
48 
49 </body></html>