ignore style sheet changes before the target DOM was serialized

The serialized DOM will contains all the styles, so this looks safe.
This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 79a7191916
commit bd5aa59589
5 changed files with 37 additions and 23 deletions

View File

@@ -399,18 +399,6 @@ exports[`stylesheet-rules 1`] = `
}
}
},
{
\\"type\\": 3,
\\"data\\": {
\\"source\\": 8,
\\"id\\": -1,
\\"adds\\": [
{
\\"rule\\": \\"body { background: #000; }\\"
}
]
}
},
{
\\"type\\": 3,
\\"data\\": {