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 230042 - css function w/ expression as argument(s) parsing fails
Summary: css function w/ expression as argument(s) parsing fails
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-21 12:19 UTC by junichi11
Modified: 2014-10-06 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wp-admin.css (10.76 KB, image/png)
2013-05-21 12:21 UTC, junichi11
Details
thickbox.css (19.93 KB, image/png)
2013-05-21 12:21 UTC, junichi11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description junichi11 2013-05-21 12:19:18 UTC
Errors is displayed in two css files of WordPress. 

1. download wordpress and unzip[1]
2. create a new project
3. show error(/path/to/wordpress/wp-admin/css/wp-admin.css, /path/to/wordpress/wp-includes/js/thickbox/thickbox.css)

my environment:
Product Version: NetBeans IDE Dev (Build 201305202300)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8;

[1] http://wordpress.org/download/

Thanks.
Comment 1 junichi11 2013-05-21 12:21:06 UTC
Created attachment 134677 [details]
wp-admin.css
Comment 2 junichi11 2013-05-21 12:21:52 UTC
Created attachment 134678 [details]
thickbox.css
Comment 3 Marek Fukala 2013-05-21 13:34:26 UTC
the "comma issue" (the error in thickbox.css) has been fixed in web-main#79ceb11fddb6

although the first problem (expression function content from wp-admin.css remains):

div {
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}

Css3ParserTest.testIEExpressionHack_fails()

Thank you for reporting the issues!
Comment 4 Quality Engineering 2013-05-22 02:34:27 UTC
Integrated into 'main-golden', will be available in build *201305212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/79ceb11fddb6
User: Marek Fukala <mfukala@netbeans.org>
Log: #230042 / case#1 - Error for WordPress css files
Comment 5 Quality Engineering 2013-06-22 02:05:48 UTC
Integrated into 'main-golden', will be available in build *201306212301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f1042cdb6e32
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #230042: Make sure value of cdl does not mutate inside of finishExitState method
Comment 6 Vladimir Riha 2013-10-02 07:18:47 UTC
One more case with expression

.item img {
	display: inline;
	margin-top: expression((80 - this.height ) / 2);
	border: 0;
}