mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 6d85a3b422cab97d032ad3db47cb741ca364185f
This commit is contained in:
parent
cd663ea332
commit
b524b7c279
37 changed files with 1446 additions and 178 deletions
|
@ -19,39 +19,39 @@ document.body.appendChild(container);
|
|||
test(function() {
|
||||
element = document.createElement("div");
|
||||
document.body.appendChild(element);
|
||||
checkValues(element, "justifyItems", "justify-items", "", "legacy");
|
||||
checkValues(element, "justifyItems", "justify-items", "", "normal");
|
||||
}, "Test 'initial' value when nothing is specified");
|
||||
|
||||
test(function() {
|
||||
container.style.display = "";
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "center", "legacy");
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "center", "normal");
|
||||
}, "Test justify-items: 'initial'");
|
||||
|
||||
test(function() {
|
||||
container.style.display = "grid";
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "safe start", "legacy");
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "safe start", "normal");
|
||||
}, "Test grid items justify-items: 'initial'");
|
||||
|
||||
test(function() {
|
||||
container.style.display = "flex";
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "unsafe end", "legacy");
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "unsafe end", "normal");
|
||||
}, "Test flex items justify-items: 'initial'");
|
||||
|
||||
test(function() {
|
||||
container.style.display = "";
|
||||
element.style.position = "absolute";
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "start", "legacy");
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "start", "normal");
|
||||
}, "Test absolute positioned elements justify-items: 'initial'");
|
||||
|
||||
test(function() {
|
||||
container.style.display = "grid";
|
||||
element.style.position = "absolute";
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "end", "legacy");
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "end", "normal");
|
||||
}, "Test absolute positioned grid items justify-items: 'initial'");
|
||||
|
||||
test(function() {
|
||||
container.style.display = "flex";
|
||||
element.style.position = "absolute";
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "end", "legacy");
|
||||
checkInitialValues(element, "justifyItems", "justify-items", "end", "normal");
|
||||
}, "Test absolute positioned flex items justify-items: 'initial'");
|
||||
</script>
|
||||
|
|
|
@ -37,7 +37,18 @@
|
|||
checkInvalidValues("auto")
|
||||
checkInvalidValues("auto right")
|
||||
checkInvalidValues("auto auto")
|
||||
}, "Verify 'auto' value is invalid as first longhand value.");
|
||||
checkInvalidValues("center auto")
|
||||
}, "Verify 'auto' value is invalid.");
|
||||
|
||||
test(function() {
|
||||
checkInvalidValues("legacy")
|
||||
checkInvalidValues("legacy start")
|
||||
checkInvalidValues("end legacy")
|
||||
checkInvalidValues("legacy left")
|
||||
checkInvalidValues("center legacy")
|
||||
checkInvalidValues("start legacy center")
|
||||
}, "Verify 'legacy' value is invalid.");
|
||||
|
||||
|
||||
test(function() {
|
||||
checkInvalidValues("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue