RESOLVED CONFIGURATION CHANGED 121673
CSS Media type property is not working when adding type within <style> tag
https://bugs.webkit.org/show_bug.cgi?id=121673
Summary CSS Media type property is not working when adding type within <style> tag
Sunesh Chekkiyil
Reported 2013-09-20 05:26:10 PDT
Add the following code in the html and check for the color displayed. <style type="text/css" media="tv"> body { background-color:red; } </style> The above code doesn't work. When i try with the below code, it'works. <style Type= "text/css"> @media tv { body{ background-color:red; } } </style>
Attachments
Test Case (387 bytes, text/html)
2013-09-20 05:27 PDT, Sunesh Chekkiyil
no flags
Sunesh Chekkiyil
Comment 1 2013-09-20 05:27:22 PDT
Created attachment 212153 [details] Test Case
Sunesh Chekkiyil
Comment 2 2013-10-08 00:10:49 PDT
Any Update on this issue?
Abhijeet Kandalkar
Comment 3 2014-03-12 08:59:50 PDT
Could you please let me know, on which platform and browser you have tested
Sunesh Chekkiyil
Comment 4 2014-03-12 22:03:02 PDT
I tested in QT webkit.
Sunesh Chekkiyil
Comment 5 2014-03-12 22:39:07 PDT
If i use something like below, <style type="text/css" media=""> body { background-color:blue; } </style> with other three style tags for TV,screen,print as like in the attached test app, this executes the output for media="", doesn't check it's tv or screen. You can add this above code with the attached Test case application and try in Chrome also.
Ahmad Saleem
Comment 6 2022-08-20 16:49:28 PDT
All browsers (Chrome Canary 106, Firefox Nightly 105, Safari 15.6.1 and Safari Technology Preview 151) show "Red" for the attached test case and all browsers are matching with each other. I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Please reopen, if I am wrong. Thanks!
Note You need to log in before you can comment on or make changes to this bug.