mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 07:04:58 +00:00

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.
9 lines
258 B
HTML
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>
|