ladybird/Tests/LibWeb/Text/input/css/getComputedStyle-print-all.html
Sam Atkins b8ede72107 LibWeb: Add a test for getComputedStyle()
Print out the value of each property in the computed-style of the body
element. This is by no means a thorough test that we're serializing
every property's value correctly in every configuration, (and in fact,
some are definitely wrong,) but it does give us a nice baseline.
2023-09-29 20:20:55 +02:00

9 lines
258 B
HTML

<script src="../include.js"></script>
<script>
test(() => {
const style = getComputedStyle(document.body);
for (const property_name of style) {
println(`${property_name}: ${style[property_name]}`);
}
});
</script>