mmaxfield@apple.com | 4195a70 | 2016-04-27 01:25:26 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
mmaxfield@apple.com | 3934fdd | 2016-03-28 21:37:39 +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 | 3934fdd | 2016-03-28 21:37:39 +0000 | [diff] [blame] | 10 | </head> |
| 11 | <body style="margin: 0px;"> |
| 12 | This test makes sure that position-sticky obeys RTL scrollbars when positioning. |
| 13 | <iframe style="position: relative; width: 600px; height: 500px; border: 0px solid black;" srcdoc="<!DOCTYPE html> |
| 14 | <head> |
| 15 | </head> |
| 16 | <body> |
| 17 | <div style='position: absolute; top: 0px; left: 0px; width: 2000px; height: 2000px'> |
| 18 | <div style='position: absolute; width: 485px; height: 100px; background: blue;'></div> |
| 19 | <div style='position: absolute; left: 485px; width: 100px; height: 100px; background: green;'></div> |
| 20 | </div> |
| 21 | </body> |
| 22 | </html"> |
| 23 | </body> |
mmaxfield@apple.com | 4195a70 | 2016-04-27 01:25:26 +0000 | [diff] [blame] | 24 | </html> |