mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-27 03:10:01 +00:00
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.
22 lines
797 B
HTML
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>
|