OLD | NEW |
1 Tests layout of absolutely positioned modal dialogs. | 1 Tests layout of absolutely positioned modal dialogs. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 | 6 |
7 showModal() should center in the viewport. | 7 showModal() should center in the viewport. |
8 PASS dialog.getBoundingClientRect().top is centeredTop | 8 PASS dialog.getBoundingClientRect().top is centeredTop |
9 | 9 |
10 The computed top and bottom of a centered dialog should still have position auto
. | 10 The dialog is a positioned element, so the top and bottom should not have style
auto. |
11 PASS window.getComputedStyle(dialog).top is "auto" | 11 PASS window.getComputedStyle(dialog).top is "790px" |
12 PASS window.getComputedStyle(dialog).bottom is "auto" | 12 PASS window.getComputedStyle(dialog).bottom is "-210px" |
13 | 13 |
14 Dialog should be recentered if showModal() is called after close(). | 14 Dialog should be recentered if showModal() is called after close(). |
15 PASS dialog.getBoundingClientRect().top is centeredTop | 15 PASS dialog.getBoundingClientRect().top is centeredTop |
16 | 16 |
17 Dialog should not recenter on relayout. | 17 Dialog should not recenter on relayout. |
18 PASS dialog.getBoundingClientRect().top is expectedTop | 18 PASS dialog.getBoundingClientRect().top is expectedTop |
19 | 19 |
20 A tall dialog should be positioned at the top of the viewport. | 20 A tall dialog should be positioned at the top of the viewport. |
21 PASS dialog.getBoundingClientRect().top is 0 | 21 PASS dialog.getBoundingClientRect().top is 0 |
22 | 22 |
(...skipping 21 matching lines...) Expand all Loading... |
44 | 44 |
45 A dialog with specified 'top' should be positioned as usual | 45 A dialog with specified 'top' should be positioned as usual |
46 PASS dialog.getBoundingClientRect().top + window.scrollY is offset | 46 PASS dialog.getBoundingClientRect().top + window.scrollY is offset |
47 | 47 |
48 A dialog with specified 'bottom' should be positioned as usual | 48 A dialog with specified 'bottom' should be positioned as usual |
49 PASS dialog.getBoundingClientRect().bottom + window.scrollY is window.innerHeigh
t - offset | 49 PASS dialog.getBoundingClientRect().bottom + window.scrollY is window.innerHeigh
t - offset |
50 PASS successfullyParsed is true | 50 PASS successfullyParsed is true |
51 | 51 |
52 TEST COMPLETE | 52 TEST COMPLETE |
53 | 53 |
OLD | NEW |