nav-up-006

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

WeasyPrint

This browser

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

Source

 1 <!DOCTYPE html>
 2 <html><head><title>CSS Basic User Interface Test: Directional Focus Navigation - elements floating in opposite to 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 right." name="assert">
 8 <style type="text/css">
 9     div > a {
10         float: right;
11         margin-up: 1em;
12         margin-right: 1em;
13     }
14 
15     div {
16         clear: right;
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       <a href="">ignore 1</a>
35       <a href="" id="intermediate">ignore 3</a>
36       <a href="" id="end">FINISH</a>
37       <a href="">ignore 2</a>
38     </div>
39 
40     <div>
41       <a href="">ignore 4</a>
42       <a href="">START</a>
43       <a href="">ignore 5</a>
44       <a href="">ignore 6</a>
45     </div>
46 
47 
48 </body></html>