ladybird/Tests/LibWeb/Text/input/css/CSSStyleDeclaration-has-indexed-property-getter.html
InvalidUsernameException 417f4edc46 Tests/LibWeb: Print properties without indexes
The test CSSStyleDeclaration-has-indexed-property-getter is a frequent
source of merge conflicts between PRs that are adding to or otherwise
modifying the list of supported CSS properties.

This is primarily because the test prints out a numeric index of each
property along with the property. As far as I can tell the indexes are
inconsequential for what the test is trying to verify. So lets modify
the printout to only contain the properties without indexes.
2025-06-01 19:09:10 +01:00

22 lines
797 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
function printProperties(properties) {
println(JSON.stringify(Object.values(properties), null, 4));
}
println("All properties associated with getComputedStyle(document.body):");
printProperties(getComputedStyle(document.body));
println("All properties associated with document.body.style by default:");
printProperties(document.body.style);
document.body.style.display = "none";
document.body.style.backgroundColor = "red";
document.body.style.fontSize = "15px";
println("All properties associated with document.body.style after setting some properties:");
printProperties(document.body.style);
});
</script>