ladybird/Tests/LibWeb/Text/input/HTML/table-cellpadding.html

16 lines
389 B
HTML
Raw Normal View History

<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>