OLD | NEW |
| (Empty) |
1 Tests layout of fixed positioned dialogs. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 showModal() should center in the viewport. | |
8 PASS dialog.getBoundingClientRect().top is centeredTop | |
9 | |
10 The dialog is a positioned element, so the top and bottom should not have style
auto. | |
11 PASS window.getComputedStyle(dialog).top is "290px" | |
12 PASS window.getComputedStyle(dialog).bottom is "290px" | |
13 | |
14 The dialog shold stay centered on scroll. | |
15 PASS dialog.getBoundingClientRect().top is centeredTop | |
16 | |
17 A tall dialog should be positioned at the top of the viewport. | |
18 PASS dialog.getBoundingClientRect().top is 0 | |
19 | |
20 The dialog should be centered regardless of the presence of a horizontal scrollb
ar. | |
21 PASS dialog.getBoundingClientRect().top is centeredTop | |
22 | |
23 Centering should work when dialog is inside positioned containers. | |
24 PASS dialog.getBoundingClientRect().top is centeredTop | |
25 PASS dialog.getBoundingClientRect().top is centeredTop | |
26 | |
27 A centered dialog's position should survive becoming display:none temporarily. | |
28 PASS dialog.getBoundingClientRect().top is expectedTop | |
29 | |
30 Dialog should lose centering when removed from the document. | |
31 FAIL dialog.getBoundingClientRect().top should be 0. Was 820. | |
32 | |
33 Dialog's specified position should survive after close() and showModal(). | |
34 PASS dialog.getBoundingClientRect().top is expectedTop | |
35 | |
36 Dialog should not be centered if showModal() was called when an ancestor had dis
play 'none'. | |
37 FAIL dialog.getBoundingClientRect().top should be 0. Was 10016. | |
38 | |
39 A dialog with specified 'top' should be positioned as usual | |
40 PASS dialog.getBoundingClientRect().top is offset | |
41 PASS successfullyParsed is true | |
42 | |
43 TEST COMPLETE | |
44 | |
OLD | NEW |