blob: 89a38801507618754ba202e70b2e9b8deaa70eaa [file] [log] [blame]
mmaxfield@apple.com4195a702016-04-27 01:25:26 +00001<!DOCTYPE html>
mmaxfield@apple.com3934fdd2016-03-28 21:37:39 +00002<html>
3<head>
mmaxfield@apple.com4195a702016-04-27 01:25:26 +00004<script>
5if (window.internals) {
weinig@apple.com110273b2020-11-13 17:46:58 +00006 internals.settings.setUserInterfaceDirectionPolicy("System");
mmaxfield@apple.com4195a702016-04-27 01:25:26 +00007 internals.settings.setSystemLayoutDirection("RTL");
8}
9</script>
mmaxfield@apple.com3934fdd2016-03-28 21:37:39 +000010</head>
11<body style="margin: 0px;">
12This 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.comc817e642019-04-16 19:48:37 +000018 <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.com3934fdd2016-03-28 21:37:39 +000019</div>
20</body>
21</html">
22</body>
mmaxfield@apple.com4195a702016-04-27 01:25:26 +000023</html>