Bug 313646 SVG chart using pattern as color or background does not work when preview in firefox for the first time.[13]
description: SVG chart using pattern as color or background does not work when preview in firefox for the first time. build id: 2.6.0 v20100520-0630 steps to reproduce: 1.New a SVG chart using pattern as color or background color. 2.Preview in firefox. Actual result: The pattern does not work when you first preview in firefox.
chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGGraphics2D.java
element.setAttribute( "id", id ); 
		if ( ( clip != null ) && ( !deferClipped ) )
			element.setAttribute( "clip-path", "url(#clip" + clip.hashCode( ) + ")" ); 
	}
	/**
	 * @returns the color definition in a string with the format: #RRGGBBAA:
	 *          RRGGBB are the color components in hexa in the range 00..FF AA
	 *          is the transparency value in hexa in the range 00..FF ex: Solid
	 *          light gray : #777777
	 */
	protected String serializeToString( Color color )
	{
		String r = Integer.toHexString( color.getRed( ) );
		if ( color.getRed( ) <= 0xF )
			r = "0" + r; 
		String g = Integer.toHexString( color.getGreen( ) );
		if ( color.getGreen( ) <= 0xF )
			g = "0" + g; 
		String b = Integer.toHexString( color.getBlue( ) );
		if ( color.getBlue( ) <= 0xF )
			b = "0" + b; 
		String ret = "#" + r + g + b; 
		return ret;
	}
	protected String alphaToString( Color color )
	{
		double a = 1;
		if ( color.getAlpha( ) < 0xFF )
		{
			a = color.getAlpha( ) / 255.0;