Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLDialogElement / non-anchored-dialog-positioning-expected.txt
1 Tests positioning of non-anchored dialogs.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 showModal() should center in the viewport.
7 PASS dialog.getBoundingClientRect().top is centeredTop
8
9 The computed top and bottom of a centered dialog should still have position auto
10 PASS window.getComputedStyle(dialog).top is "auto"
11 PASS window.getComputedStyle(dialog).bottom is "auto"
12
13 Dialog should be recentered if showModal() is called after close().
14 PASS dialog.getBoundingClientRect().top is centeredTop
15
16 Dialog should not be recentered on a relayout.
17 PASS dialog.getBoundingClientRect().top is expectedTop
18
19 A tall dialog should be positioned at the top of the viewport.
20 PASS dialog.getBoundingClientRect().top is 0
21
22 The dialog should be centered regardless of the presence of a horizontal scrollbar.
23 PASS dialog.getBoundingClientRect().top is centeredTop
24
25 Test that centering works when dialog is inside positioned containers.
26 PASS dialog.getBoundingClientRect().top is centeredTop
27 PASS dialog.getBoundingClientRect().top is centeredTop
28
29 Dialog's position should survive after becoming display:none temporarily.
30 PASS dialog.getBoundingClientRect().top is expectedTop
31
32 Dialog loses centering position when removed from document.
33 PASS dialog.getBoundingClientRect().top is relativeContainer.getBoundingClientRect().top
34
35 Dialog's specified position should survive after close() and showModal().
36 PASS dialog.getBoundingClientRect().top is expectedTop
37
38 Dialog is recentered if showModal() is called after removing 'open'
39 PASS dialog.getBoundingClientRect().top is centeredTop
40
41 Dialog should not be centered if showModal() was called when an ancestor had display 'none'.
42 PASS dialog.getBoundingClientRect().top is expectedTop
43
44 Test setting 'top' on an abspos modal dialog
45 PASS dialog.getBoundingClientRect().top + window.scrollY is offset
46
47 Test setting 'bottom' on an abspos modal dialog
48 PASS dialog.getBoundingClientRect().bottom + window.scrollY is window.innerHeight - offset
49
50 Test fixed position for a modal dialog
51 PASS dialog.getBoundingClientRect().top is offset
52
53 Test absolute position for a non-modal dialog
54 PASS dialog.getBoundingClientRect().top is relativeContainer.getBoundingClientRect().top + offset
55
56 Test static position for a non-modal dialog
57 PASS dialog.getBoundingClientRect().top is relativeContainer.getBoundingClientRect().top
58
59 Test relative position for a non-modal dialog
60 PASS dialog.getBoundingClientRect().top is relativeContainer.getBoundingClientRect().top + offset
61 PASS dialog.getBoundingClientRect().left is relativeContainer.getBoundingClientRect().left + offset
62 PASS successfullyParsed is true
63
64 TEST COMPLETE
65