Bug 278091 [CSS] Measure.getCssText() with float value results in IllegalStateException
In theory we should be able to provide percentages as part of the gradients, e.g. CTabFolder:selected { background-color: #FF0000 #0000FF 30% } But this generates IllegalStateException calling getCSSText() on org.apache.batik.css.parser.CSSLexicalUnit$FloatLexicalUnit from Measure.getCSSText().
tests/org.eclipse.e4.ui.tests.css.swt/src/org/eclipse/e4/ui/tests/css/swt/GradientTest.java
CTabFolder folderToTest = createTestCTabFolder(
				"CTabFolder:selected { background-color: #FF0000 #00FF00 #0000FF -20% 50%}");
		assertEquals(RED, getSelectionBackgroundBegin(folderToTest).getRGB()); 		
		assertEquals(BLUE, folderToTest.getSelectionBackground().getRGB()); 
		assertEquals(new int[] {50, 100}, getSelectionGradientPercents(folderToTest)); 
	}
	
	/* 
	 * Test to ensure we properly parse something like:
	 *    background-color: gradient,
     *           rgb(140,140,140),
     *           rgb(48,48,48),
     *           100%;
	 */
	public void testAltSyntax() throws Exception {
		CTabFolder folderToTest = createTestCTabFolder(
				"CTabFolder:selected { background-color: gradient, rgb(140,140,140), rgb(48,48,48), 100%;");
		assertEquals(new RGB(140,140,140), getSelectionBackgroundBegin(folderToTest).getRGB()); 		
		assertEquals(new RGB(48,48,48), folderToTest.getSelectionBackground().getRGB()); 
		assertEquals(new int[] {100}, getSelectionGradientPercents(folderToTest)); 
	}
	
	
	
	
	Color getSelectionBackgroundBegin(CTabFolder folder) {
		return getSelectionBackground(folder, 0);
	}
	
	Color getSelectionBackground(CTabFolder folder, int i) {