mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Constructed stylesheets updated their rule lists, but adopted documents and shadow roots were not restyled when replace(), replaceSync(), or disabled-state changes modified the sheet. That left several CSSOM tests passing stale computed styles. Invalidate stylesheet owners after those updates so adopted sheets recompute promptly. Also set replace()-produced rules' parent stylesheet so non-import rules keep their stylesheet context. The imported baseURL test assumes a tuple origin, so move it to the HTTP fixture now that replaceSync() actually triggers a restyle.
6.2 KiB
6.2 KiB