mmaxfield@apple.com | 4195a70 | 2016-04-27 01:25:26 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
mmaxfield@apple.com | 72fd0b4 | 2016-03-30 17:34:20 +0000 | [diff] [blame] | 2 | <html> |
| 3 | <head> |
mmaxfield@apple.com | 4195a70 | 2016-04-27 01:25:26 +0000 | [diff] [blame] | 4 | <script> |
| 5 | if (window.internals) { |
| 6 | internals.settings.setUserInterfaceDirectionPolicy("View"); |
| 7 | internals.settings.setSystemLayoutDirection("RTL"); |
| 8 | } |
| 9 | </script> |
mmaxfield@apple.com | 72fd0b4 | 2016-03-30 17:34:20 +0000 | [diff] [blame] | 10 | </head> |
| 11 | <body style="margin: 0px;"> |
| 12 | <div style="position: absolute; left: 8px; top: 200px;">This test makes sure that cliking on the rightmost part of an item causes it to be selected.</div> |
| 13 | <select id="container" multiple="multiple" style="margin: 0px; border: 0px solid black; padding: 0px; width: 200px;"> |
| 14 | <option id="january">January</option> |
| 15 | <option>February</option> |
| 16 | <option>March</option> |
| 17 | <option>April</option> |
| 18 | <option>May</option> |
| 19 | <option>June</option> |
| 20 | <option>July</option> |
| 21 | <option>August</option> |
| 22 | <option>September</option> |
| 23 | <option>October</option> |
| 24 | <option>November</option> |
| 25 | <option>December</option> |
| 26 | </select> |
| 27 | <script> |
| 28 | var container = document.getElementById("container"); |
| 29 | container.focus(); |
| 30 | var january = document.getElementById("january"); |
| 31 | january.selected = true; |
| 32 | </script> |
| 33 | </body> |
mmaxfield@apple.com | 4195a70 | 2016-04-27 01:25:26 +0000 | [diff] [blame] | 34 | </html> |