зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset c3799309b95c (bug 1642364) for wpt failures on abspos-dialog-layout.html . CLOSED TREE
This commit is contained in:
Родитель
243786d713
Коммит
05b019f27f
|
@ -828,7 +828,6 @@ dialog {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
background: white;
|
background: white;
|
||||||
width: -moz-fit-content;
|
width: -moz-fit-content;
|
||||||
height: -moz-fit-content;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog:not([open]) {
|
dialog:not([open]) {
|
||||||
|
@ -837,13 +836,6 @@ dialog:not([open]) {
|
||||||
|
|
||||||
dialog:-moz-modal-dialog {
|
dialog:-moz-modal-dialog {
|
||||||
-moz-top-layer: top !important;
|
-moz-top-layer: top !important;
|
||||||
/* This is a temporary solution until the relevant CSSWG issues are resolved */
|
|
||||||
position: fixed;
|
|
||||||
max-height: 100vh;
|
|
||||||
max-width: 100vw;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
overflow: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* https://html.spec.whatwg.org/#flow-content-3 */
|
/* https://html.spec.whatwg.org/#flow-content-3 */
|
||||||
|
|
|
@ -1,11 +1,34 @@
|
||||||
[abspos-dialog-layout.html]
|
[abspos-dialog-layout.html]
|
||||||
prefs:[dom.dialog_element.enabled:true]
|
[showModal() should center in the viewport]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[The dialog is a positioned element, so the top and bottom should not have style auto.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Dialog should be recentered if showModal() is called after close()]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Dialog should not recenter on relayout.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[A tall dialog should be positioned at the top of the viewport.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
[The dialog should be centered regardless of the presence of a horizontal scrollbar.]
|
[The dialog should be centered regardless of the presence of a horizontal scrollbar.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Centering should work when dialog is inside positioned containers.]
|
[Centering should work when dialog is inside positioned containers.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[A centered dialog's position should survive becoming display:none temporarily.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Dialog should lose centering when removed from the document.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[Dialog's specified position should survive after close() and showModal().]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
[Dialog should be recentered if showModal() is called after removing 'open'.]
|
[Dialog should be recentered if showModal() is called after removing 'open'.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче