mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00

CSSStyleDeclaration is a base class that's used by various collections of style properties or descriptors. This commit moves all style-property-related code into CSSStyleProperties, where it belongs. As noted in the previous commit, we also apply the CSSStyleProperties prototype now.
18 lines
744 B
HTML
18 lines
744 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 CSSStyleProperties from getComputedStyle:");
|
|
for (const supportedProperty of supportedProperties) {
|
|
println(`'${supportedProperty}': '${defaultStyle[supportedProperty]}'`);
|
|
}
|
|
});
|
|
</script>
|