mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 08:59:50 +00:00
Invalidation for adopted style sheets was broken because we had an assumption that "active" style sheet is always attached to StyleSheetList which is not true for adopted style sheets. This change addresses that by keeping track of all documents/shadow roots that own a style sheet and notifying them about invalidation instead of going through the StyleSheetList.
4 lines
210 B
Text
4 lines
210 B
Text
color of box 1 before rule insertion: rgb(255, 0, 0)
|
|
color of box 2 before rule insertion: rgb(255, 0, 0)
|
|
color of box 1 after rule insertion: rgb(0, 128, 0)
|
|
color of box 2 after rule insertion: rgb(0, 128, 0)
|