2024-11-14 16:57:14 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<script src="../include.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
test(() => {
|
|
|
|
|
const defaultStyleIframe = document.createElement("iframe");
|
|
|
|
|
document.body.appendChild(defaultStyleIframe);
|
|
|
|
|
|
|
|
|
|
const defaultStyle = getComputedStyle(defaultStyleIframe.contentDocument.body);
|
|
|
|
|
|
|
|
|
|
const stylePrototype = Object.getPrototypeOf(defaultStyle);
|
|
|
|
|
const supportedProperties = Object.getOwnPropertyNames(stylePrototype);
|
|
|
|
|
|
2025-03-18 14:07:08 +00:00
|
|
|
println("All supported properties and their default values exposed from CSSStyleProperties from getComputedStyle:");
|
2024-11-14 16:57:14 +00:00
|
|
|
for (const supportedProperty of supportedProperties) {
|
|
|
|
|
println(`'${supportedProperty}': '${defaultStyle[supportedProperty]}'`);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
</script>
|