Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/fixpos-dialog-layout-expected.txt

Issue 2577893004: position:fixed content is not offset by relative positioned ancestors (Closed)
Patch Set: position:fixed content is not offset by relative positioned ancestors Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Tests layout of fixed positioned dialogs. 1 Tests layout of fixed positioned 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 dialog is a positioned element, so the top and bottom should not have style auto. 10 The dialog is a positioned element, so the top and bottom should not have style auto.
(...skipping 10 matching lines...) Expand all
21 PASS dialog.getBoundingClientRect().top is centeredTop 21 PASS dialog.getBoundingClientRect().top is centeredTop
22 22
23 Centering should work when dialog is inside positioned containers. 23 Centering should work when dialog is inside positioned containers.
24 PASS dialog.getBoundingClientRect().top is centeredTop 24 PASS dialog.getBoundingClientRect().top is centeredTop
25 PASS dialog.getBoundingClientRect().top is centeredTop 25 PASS dialog.getBoundingClientRect().top is centeredTop
26 26
27 A centered dialog's position should survive becoming display:none temporarily. 27 A centered dialog's position should survive becoming display:none temporarily.
28 PASS dialog.getBoundingClientRect().top is expectedTop 28 PASS dialog.getBoundingClientRect().top is expectedTop
29 29
30 Dialog should lose centering when removed from the document. 30 Dialog should lose centering when removed from the document.
31 FAIL dialog.getBoundingClientRect().top should be 0. Was 800. 31 FAIL dialog.getBoundingClientRect().top should be 0. Was 820.
32 32
33 Dialog's specified position should survive after close() and showModal(). 33 Dialog's specified position should survive after close() and showModal().
34 PASS dialog.getBoundingClientRect().top is expectedTop 34 PASS dialog.getBoundingClientRect().top is expectedTop
35 35
36 Dialog should not be centered if showModal() was called when an ancestor had dis play 'none'. 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. 37 FAIL dialog.getBoundingClientRect().top should be 0. Was 10016.
38 38
39 A dialog with specified 'top' should be positioned as usual 39 A dialog with specified 'top' should be positioned as usual
40 PASS dialog.getBoundingClientRect().top is offset 40 PASS dialog.getBoundingClientRect().top is offset
41 PASS successfullyParsed is true 41 PASS successfullyParsed is true
42 42
43 TEST COMPLETE 43 TEST COMPLETE
44 44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698