mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb/CSS: Move property code from CSSStyleDeclaration to *Properties
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.
This commit is contained in:
Notes:
github-actions[bot]
2025-03-19 13:54:14 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/a28197669a9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3983
@@ -0,0 +1,18 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user