This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243625 - Wrong CSS syntax highlighting when using CSS media queries with vendor properties
Summary: Wrong CSS syntax highlighting when using CSS media queries with vendor proper...
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 09:28 UTC by bennyn
Modified: 2015-06-01 12:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of wrong syntax colors (23.25 KB, image/png)
2014-04-07 09:28 UTC, bennyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bennyn 2014-04-07 09:28:20 UTC
Created attachment 146599 [details]
Screenshot of wrong syntax colors

The problem can be seen in the screenshot. The closing bracket of CSS style class "big" is blue instead of black. This happens when I use "-webkit-min-device-pixel-ratio: 1.5" in my media query. If I put in "orientation: landscape" in the media query condition then the bug does not occur. Here is the CSS code that I used in my HTML page:

<style>
	.small {
		width: 400px;
		height: 400px;
	}

	.big {
		width: 800px;
		height: 800px;
	}

	#wrapper {
		background-image: url("images/Full-Size-Getting-Started-Desktop.png");
		background-position: center center;
	}

	@media screen and (-webkit-min-device-pixel-ratio: 1.5) {
		body { background-color: black; }
	}
</style>
Comment 1 Milutin Kristofic 2015-06-01 12:08:31 UTC
Product Version: NetBeans IDE Dev (Build 201504070001)
Updates: Updates available

I cannot reproduce this bug. What version of Netbeans are you using? It is problem in latest version? Thank you