Bug 228977 - HTMLStyleElement should create its style sheet even if its media attribute is invalid
Summary: HTMLStyleElement should create its style sheet even if its media attribute is...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-08-10 15:34 PDT by Chris Dumez
Modified: 2021-08-11 08:41 PDT (History)
15 users (show)

See Also:


Attachments
Patch (3.55 KB, patch)
2021-08-10 15:35 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2021-08-10 15:34:01 PDT
HTMLStyleElement should create its style sheet even if its media attribute is invalid.

WebKit currently doesn't and this is causing us to fail the following WPT test:
- html/semantics/document-metadata/the-style-element/style_non_matching_media.html

This test is passing in both Firefox and Chrome.
Comment 1 Chris Dumez 2021-08-10 15:35:53 PDT
Created attachment 435307 [details]
Patch
Comment 2 Chris Dumez 2021-08-10 15:37:06 PDT
Corresponding Blink change: https://chromium-review.googlesource.com/631859
Comment 3 EWS 2021-08-11 08:40:23 PDT
Committed r280910 (240432@main): <https://commits.webkit.org/240432@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 435307 [details].
Comment 4 Radar WebKit Bug Importer 2021-08-11 08:41:17 PDT
<rdar://problem/81795830>