зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1176782 part 8 - [css-align] Update three tests that assumed that the computed value of 'align-items' is 'stretch' on all types of boxes which is no longer true.
This commit is contained in:
Родитель
7c6b7fe751
Коммит
87a0b397a7
|
@ -32,7 +32,7 @@
|
|||
.inline { display:inline; }
|
||||
.columns { -moz-columns:2; columns:2; height:4em; }
|
||||
|
||||
.contents { display:contents; }
|
||||
.contents { display:contents; align-items:inherit; justify-items:inherit; }
|
||||
|
||||
.c1 { color:lime; }
|
||||
.c2 { background:blue; color:pink; }
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
<div class="auto" style="height: 100%">auto</div>
|
||||
<div class="unspecified" style="height: 100%">unspec</div>
|
||||
<div class="initial" style="height: 100%">initial</div>
|
||||
<div class="inherit" style="height: 100%">inherit</div>
|
||||
<div class="inherit">inherit</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -63,22 +63,22 @@ function getComputedAlignSelf(elem) {
|
|||
*/
|
||||
function testGeneralNode(elem) {
|
||||
// Test initial computed style
|
||||
// (Initial value should be 'auto', which should compute to 'stretch')
|
||||
is(getComputedAlignSelf(elem), "stretch",
|
||||
"initial computed value of 'align-self' should be 'stretch', " +
|
||||
// (Initial value should be 'auto', which should compute to 'start')
|
||||
is(getComputedAlignSelf(elem), "start",
|
||||
"initial computed value of 'align-self' should be 'start', " +
|
||||
"if we haven't explicitly set any style on the parent");
|
||||
|
||||
// Test value after setting align-self explicitly to "auto"
|
||||
elem.style.alignSelf = "auto";
|
||||
is(getComputedAlignSelf(elem), "stretch",
|
||||
"computed value of 'align-self: auto' should be 'stretch', " +
|
||||
is(getComputedAlignSelf(elem), "start",
|
||||
"computed value of 'align-self: auto' should be 'start', " +
|
||||
"if we haven't explicitly set any style on the parent");
|
||||
elem.style.alignSelf = ""; // clean up
|
||||
|
||||
// Test value after setting align-self explicitly to "inherit"
|
||||
elem.style.alignSelf = "inherit";
|
||||
is(getComputedAlignSelf(elem), "stretch",
|
||||
"computed value of 'align-self: inherit' should be 'stretch', " +
|
||||
is(getComputedAlignSelf(elem), "start",
|
||||
"computed value of 'align-self: inherit' should be 'start', " +
|
||||
"if we haven't explicitly set any style on the parent");
|
||||
elem.style.alignSelf = ""; // clean up
|
||||
}
|
||||
|
@ -111,11 +111,11 @@ function testNodeThatHasParent(elem) {
|
|||
|
||||
// Finally: test computed style after setting "align-self" to "inherit"
|
||||
// and leaving parent at its initial value (which should be "auto", which
|
||||
// should compute to "stretch")
|
||||
// should compute to "start")
|
||||
elem.style.alignSelf = "inherit";
|
||||
is(getComputedAlignSelf(elem), "stretch",
|
||||
is(getComputedAlignSelf(elem), "start",
|
||||
"computed value of 'align-self: inherit' should take parent's " +
|
||||
"computed 'align-self' value (which should be 'stretch', " +
|
||||
"computed 'align-self' value (which should be 'start', " +
|
||||
"if we haven't explicitly set any other style");
|
||||
elem.style.alignSelf = ""; // clean up
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче