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

16 lines
405 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<table id="table"><td id="td"></td></table>
<script>
function testCellpadding(value) {
table.setAttribute("cellpadding", value);
println(getComputedStyle(td).padding);
}
test(() => {
testCellpadding("1");
testCellpadding("5");
testCellpadding("0");
testCellpadding("-1");
});
</script>