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) { |
weinig@apple.com | 110273b | 2020-11-13 17:46:58 +0000 | [diff] [blame] | 6 | internals.settings.setUserInterfaceDirectionPolicy("System"); |
mmaxfield@apple.com | 4195a70 | 2016-04-27 01:25:26 +0000 | [diff] [blame] | 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'> |
drousso@apple.com | c817e64 | 2019-04-16 19:48:37 +0000 | [diff] [blame] | 18 | <div style='display: inline-block; position: static; width: 800px; height: 100px; background: blue;'></div><div style='display: inline-block; position: sticky; left: 0px; right: 0px; width: 100px; height: 100px; background: green;'></div><div style='display: inline-block; position: static; width: 800px; height: 100px; background: blue;'></div> |
mmaxfield@apple.com | 3934fdd | 2016-03-28 21:37:39 +0000 | [diff] [blame] | 19 | </div> |
| 20 | </body> |
| 21 | </html"> |
| 22 | </body> |
mmaxfield@apple.com | 4195a70 | 2016-04-27 01:25:26 +0000 | [diff] [blame] | 23 | </html> |