[Webkit-unassigned] [Bug 203073] New: Inline stylesheet with a non-standard media attribute value is not parsed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 17 00:25:51 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=203073
Bug ID: 203073
Summary: Inline stylesheet with a non-standard media attribute
value is not parsed
Product: WebKit
Version: Safari 13
Hardware: Macintosh
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jouni at vaadin.com
The following code works in Chrome and Firefox – a CSSStyleSheet object is printed in the console. In Safari, undefined is printed.
<style media="foobar">
foo {
color: red;
}
</style>
<script>
console.log(document.styleSheets[0]);
</script>
Using a non-standard media value for the <link> element or for an @import statement works the same in all three browsers, and document.styleSheets contains the parsed stylesheet(s).
<link rel="stylesheet" href="some-stylesheet.css" media="foobar">
<style>
@import "some-stylesheet.css" foobar;
</style>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191017/10be162c/attachment.html>
More information about the webkit-unassigned
mailing list