|
| 1 | + |
| 2 | +<!DOCTYPE html> |
| 3 | +<html> |
| 4 | + <head> |
| 5 | + <meta charset="UTF-8"> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 7 | + <meta name="application-name" content="Various overflow regions"> |
| 8 | + <meta name="author" content="Yeonjae Koo"> |
| 9 | + <meta name="description" content="There are many overflow css property values like scroll, visible, hidden. You can check the behavior of the focus navigation in various overflow situations."> |
| 10 | + |
| 11 | + <link rel="stylesheet" href="spatnav-style.css"> |
| 12 | + <script src="spatnav-utils.js"></script> |
| 13 | + <script src="../polyfill/spatnav-heuristic.js"></script> |
| 14 | + </head> |
| 15 | + |
| 16 | + <body> |
| 17 | + <h1>Spatial Navigation Overflow region Test Cases</h1> |
| 18 | + |
| 19 | + <div class="container" tabindex="0" style="height: 200px; width: 600px; overflow-y: scroll;"> |
| 20 | + overflow-y: scroll |
| 21 | + <button class="box" style="top: 70px; left: 200px;"></button> |
| 22 | + <button class="box" style="top: 550px; left: 200px;"></button> |
| 23 | + </div> |
| 24 | + |
| 25 | + <div class="container" tabindex="0" style="height: 160px; width: 600px; overflow-y: visible;"> |
| 26 | + overflow-y: visible |
| 27 | + <button class="box" style="top: 30px; left: 200px;"></button> |
| 28 | + <button class="box" style="top: 160px; left: 200px;"></button> |
| 29 | + </div> |
| 30 | + |
| 31 | + <div class="container" tabindex="0" style="height: 180px; width: 600px; overflow-y: hidden;"> |
| 32 | + overflow-y: hidden |
| 33 | + <button class="box" style="top: 70px; left: 200px;"></button> |
| 34 | + <button class="box" style="top: 180px; left: 200px;"></button> |
| 35 | + </div> |
| 36 | + |
| 37 | + <div class="container" tabindex="0" style="height: 200px; width: 600px; overflow-y: scroll;"> |
| 38 | + overflow-y: scroll, offscreen test |
| 39 | + <button class="box" style="top: 10px; left: 200px;"></button> |
| 40 | + |
| 41 | + <div class="container c1" style="width:300px; height:1500px;"> |
| 42 | + </div> |
| 43 | + <span style="color: red;">Can't scroll up back when container DIV tabIndex<0 </span> |
| 44 | + <br> |
| 45 | + |
| 46 | + </div> |
| 47 | + |
| 48 | + <div class="container" tabindex="0" style="height: 200px; width: 600px; overflow-y: scroll;"> |
| 49 | + overflow-y: scroll<br> |
| 50 | + <div class="box " style="margin:15px; width: 250px; height: 150px; display: inline-flex;"> |
| 51 | + overflow: unset |
| 52 | + <button class="box" style="top: 70px; left: 50px;"></button> |
| 53 | + <button class="box" style="top: 180px; left: 50px;"></button> |
| 54 | + </div> |
| 55 | + |
| 56 | + <div style="margin:15px; width: 250px; height: 150px; overflow: inherit; display: inline-flex;"> |
| 57 | + overflow: inherit |
| 58 | + <button class="box" style="top: 70px; left: 50px;"></button> |
| 59 | + <button class="box" style="top: 180px; left: 50px;"></button> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + |
| 63 | + <div class="container" tabindex="0" style="height: 200px; width: 600px; overflow-y: scroll;"> |
| 64 | + overflow-y: scroll<br> |
| 65 | + <p class="box polyfillContainer" style="margin:15px; width: 250px; height: 150px; display: inline-flex;"> |
| 66 | + <p> tag container<br> overflow: unset |
| 67 | + <button class="box c1" style="top: 70px; left: 50px;"></button> |
| 68 | + <button class="box c1" style="top: 180px; left: 50px;"></button> |
| 69 | + </p> |
| 70 | + <button class="box" style="position: absolute; top: 1350px; left: 180px;"></button> |
| 71 | + <p style="margin:15px; width: 250px; height: 150px; overflow: inherit; display: inline-flex;"> |
| 72 | + <p> tag<br> overflow: inherit |
| 73 | + <button class="box" style="top: 70px; left: 50px;"></button> |
| 74 | + <button class="box" style="top: 180px; left: 50px;"></button> |
| 75 | + </p> |
| 76 | + </div> |
| 77 | + |
| 78 | + <p tabIndex=1 style="width:300px; height:100px; overflow-y:scroll; display: inline-flex;">This is a paragraph tabIndex=1.<br>This is a paragraph tabIndex=1.<br>This is a paragraph tabIndex=1.<br>This is a paragraph tabIndex=1.<br>This is a paragraph tabIndex=1.<br>This is a paragraph tabIndex=1.<br>This is a paragraph tabIndex=1.<br>This is a paragraph tabIndex=1.<br></p> |
| 79 | + |
| 80 | + <p style="width:300px; height:100px; overflow-y:scroll; display: inline-flex;"><span style="color: red;">Can't scroll when scrollable area is tabIndex<0</span><br>This is a paragraph no tabIndex.<br>This is a paragraph no tabIndex.<br>This is a paragraph no tabIndex.<br>This is a paragraph no tabIndex.<br>This is a paragraph no tabIndex.<br>This is a paragraph no tabIndex.<br>This is a paragraph no tabIndex.<br>This is a paragraph no tabIndex.<br>This is a paragraph no tabIndex.<br></p> |
| 81 | + <br> |
| 82 | + <div tabIndex=1 style="width:300px; height:100px; overflow-y:scroll; display: inline-flex;"><span style="color: red;">Can't scroll up</span><br>This is a DIV tabIndex=1 without delegation.<br>This is a DIV tabIndex=1 without delegation.<br>This is a DIV tabIndex=1 without delegation.<br>This is a DIV tabIndex=1 without delegation.<br>This is a DIV tabIndex=1 without delegation.<br>This is a DIV tabIndex=1 without delegation.<br></div> |
| 83 | + |
| 84 | + <div style="width:300px; height:100px; overflow-y:scroll; display: inline-flex;"><span style="color: red;">Can't scroll when scrollable area is tabIndex<0 </span><br>This is a DIV no tabIndex, no delegation.<br>This is a DIV no tabIndex, no delegation.<br>This is a DIV no tabIndex, no delegation.<br>This is a DIV no tabIndex, no delegation.<br>This is a DIV no tabIndex, no delegation.<br>This is a DIV no tabIndex, no delegation.<br>This is a DIV no tabIndex, no delegation.<br></div> |
| 85 | + |
| 86 | + </body> |
| 87 | +</html> |
0 commit comments