RESOLVED FIXED 267423
Media-query sensitive meta tags may not get updated after some style changes
https://bugs.webkit.org/show_bug.cgi?id=267423
Summary Media-query sensitive meta tags may not get updated after some style changes
Simon Fraser (smfr)
Reported 2024-01-11 10:37:25 PST
https://github.com/WebKit/WebKit/pull/22531 caused the TestWebKitAPI.WKWebViewThemeColor.KVO API test to break, when changing the to the `print` media type failed to cause a change of theme color when the theme meta tag had `media=screen`. That PR reduces the frequency of style diffs caused by FontCascade differences. In the API test, this results in a change to the `print` media type no longer triggering a layout on the (empty) document. Since the layout no longer occurs, we never hit `updateStyleForLayout()`, so don't end up calling `updateElementsAffectedByMediaQueries()`.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-01-11 10:37:41 PST
Simon Fraser (smfr)
Comment 2 2024-01-11 10:46:59 PST
EWS
Comment 3 2024-01-11 16:41:32 PST
Committed 272947@main (8c75d0ea90ce): <https://commits.webkit.org/272947@main> Reviewed commits have been landed. Closing PR #22669 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.