Bug 121673 - CSS Media type property is not working when adding type within <style> tag
Summary: CSS Media type property is not working when adding type within <style> tag
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P1 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-20 05:26 PDT by Sunesh Chekkiyil
Modified: 2014-03-12 22:39 PDT (History)
2 users (show)

See Also:


Attachments
Test Case (387 bytes, text/html)
2013-09-20 05:27 PDT, Sunesh Chekkiyil
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sunesh Chekkiyil 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>
Comment 1 Sunesh Chekkiyil 2013-09-20 05:27:22 PDT
Created attachment 212153 [details]
Test Case
Comment 2 Sunesh Chekkiyil 2013-10-08 00:10:49 PDT
Any Update on this issue?
Comment 3 Abhijeet Kandalkar 2014-03-12 08:59:50 PDT
Could you please let me know, on which platform and browser you have tested
Comment 4 Sunesh Chekkiyil 2014-03-12 22:03:02 PDT
I tested in QT webkit.
Comment 5 Sunesh Chekkiyil 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.