ladybird/Tests/LibWeb/Text/input/HTML/place-items-shorthand.html
2025-03-20 11:50:49 +01:00

35 lines
1 KiB
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
for (const alignValue of [
"normal",
"stretch",
"start",
"end",
"self-start",
"self-end",
"center",
"flex-start",
"flex-end",
"baseline",
// "first baseline",
// "last baseline",
// "safe flex-end",
// "unsafe end",
// "safe end",
// "unsafe flex-start",
// "safe center",
"normal start",
"normal center",
]) {
println("=== place-items: " + alignValue);
var div = document.createElement("div");
div.setAttribute("style", "place-items: " + alignValue + ";");
document.body.appendChild(div);
for (const prop of ["place-items", "align-items", "justify-items"]) {
println(prop + ": " + div.style[prop]);
}
}
});
</script>