Bug 236526 - Style elements should not block scripts if media attribute value doesn't match
Summary: Style elements should not block scripts if media attribute value doesn't match
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 245872 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-02-11 14:21 PST by Xiaocheng Hu
Modified: 2022-09-30 15:02 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaocheng Hu 2022-02-11 14:21:20 PST
The HTML spec wasn't clear about this, and is being revised at:

https://github.com/whatwg/html/pull/7601

WPT test cases under html/semantics/document-metadata/interactions-of-styling-and-scripting/ will soon be added.

There is also a live test case available at:

https://purring-various-felidae.glitch.me/delayed-import-media-mismatch.html

Expected behavior:

The <style> shouldn't block scripts, so a number smaller than 1000 should be shown

Actual behavior

The <style> blocks scripts, then a number greater than 1000 is shown
Comment 1 Radar WebKit Bug Importer 2022-02-14 19:57:43 PST
<rdar://problem/88943567>
Comment 2 Alexey Proskuryakov 2022-09-30 15:02:45 PDT
*** Bug 245872 has been marked as a duplicate of this bug. ***