Skip to content

Commit 3b5719a

Browse files
asamuzaKdomenic
authored andcommitted
Comment out the _readonly flag
1 parent 2ea5320 commit 3b5719a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/CSSStyleDeclaration.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ class CSSStyleDeclaration {
5050
if (typeof context.getComputedStyle === "function") {
5151
this._global = context;
5252
this._computed = true;
53-
this._readonly = true;
53+
// FIXME: The `_readonly` flag should initially be `false` to be editable,
54+
// but should eventually be set to `true`.
55+
// this._readonly = true;
5456
} else if (context.nodeType === 1 && Object.hasOwn(context, "style")) {
5557
this._global = context.ownerDocument.defaultView;
5658
this._ownerNode = context;

test/CSSStyleDeclaration.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe("CSSStyleDeclaration", () => {
6262
);
6363
});
6464

65-
it("sets internals for Window", () => {
65+
it.skip("sets internals for Window", () => {
6666
const window = {
6767
getComputedStyle: () => {},
6868
DOMException: globalThis.DOMException

0 commit comments

Comments
 (0)