LibWeb: Fix two problems where media queries didn't invalidate properly

There were two things going wrong here:

- Transformed text (via CSS text-transform) was not invalidated after a
  `@media` rule changed state.

- Removing the `style` attribute from an element didn't trigger a style
  update.

This fixes the regression in subtest 46 of Acid3.

Fixes #21777
This commit is contained in:
Andreas Kling 2024-04-17 11:33:41 +02:00
commit 41667f969d
Notes: sideshowbarker 2024-07-17 07:06:47 +09:00
4 changed files with 29 additions and 1 deletions

View file

@ -2503,6 +2503,7 @@ void Document::evaluate_media_rules()
if (any_media_queries_changed_match_state) {
style_computer().invalidate_rule_cache();
invalidate_style();
invalidate_layout();
}
}