mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-11 18:51:05 +00:00
19 lines
745 B
HTML
19 lines
745 B
HTML
|
|
<!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);
|
||
|
|
|
||
|
|
println("All supported properties and their default values exposed from CSSStyleDeclaration from getComputedStyle:");
|
||
|
|
for (const supportedProperty of supportedProperties) {
|
||
|
|
println(`'${supportedProperty}': '${defaultStyle[supportedProperty]}'`);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
</script>
|