Bug 126677 Improper handling with importing CSS file which contains underscore in selector
When trying to import a CSS file in BIRT report designer 2.0 which contains underscore in selector, e.g: table_Footer_Row { background-color: #000099; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: medium; font-weight: bold; } BIRT just ignores this style without poping up any message, thus my question is does BIRT supports the selector with underscore? Thanks!
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/CssPropertyUtil.java
if ( CssPropertyConstants.ATTR_BORDER_LEFT_STYLE.equals( name ) )
			return IStyleModel.BORDER_LEFT_STYLE_PROP;
		if ( CssPropertyConstants.ATTR_BORDER_LEFT_WIDTH.equals( name ) )
			return IStyleModel.BORDER_LEFT_WIDTH_PROP;
		if ( CssPropertyConstants.ATTR_BORDER_RIGHT_COLOR.equals( name ) )
			return IStyleModel.BORDER_RIGHT_COLOR_PROP;
		if ( CssPropertyConstants.ATTR_BORDER_RIGHT_STYLE.equals( name ) )
			return IStyleModel.BORDER_RIGHT_STYLE_PROP;
		if ( CssPropertyConstants.ATTR_BORDER_RIGHT_WIDTH.equals( name ) )
			return IStyleModel.BORDER_RIGHT_WIDTH_PROP;
		if ( CssPropertyConstants.ATTR_BORDER_TOP_COLOR.equals( name ) )
			return IStyleModel.BORDER_TOP_COLOR_PROP;
		if ( CssPropertyConstants.ATTR_BORDER_TOP_STYLE.equals( name ) )
			return IStyleModel.BORDER_TOP_STYLE_PROP;
		if ( CssPropertyConstants.ATTR_BORDER_TOP_WIDTH.equals( name ) )
			return IStyleModel.BORDER_TOP_WIDTH_PROP;
		return null;
	}
	
	public static String getURLValue( String cssValue )
	{
		if ( !cssURLPattern.matcher( cssValue ).matches( ) )
			return WRONG_URL;
		int start = cssValue.indexOf( '(' );
		int end = cssValue.indexOf( ')' );
		
		String value = cssValue.substring( start + 1, end ).trim( );
		return value;
	}
}