Bugs in CSS parsing

Hi guys,

Is the lack of support for spaces and case-insensitivity in CSS done on 
purpose?
	font-size: 12pt
should be equivalent to:
	fONt-Size    :   12PT

The code in MeasuresTest.java doesn't trap this kind of thing, and I 
suspect neither does the rest of the code (CSSUtils.java and 
StyleSheetsSupport.java). Is that intended?


If done on purpose, there still remains a bug in the parsing done in 
MeasuresTest to check only the CSS1 properties: spaces are taken into 
account. For instance:
   p {  font-size: 12pt; }

... the extracted property is " font-size", which fails to match 
"font-size".

Francois.

Received on Thursday, 10 July 2008 14:08:37 UTC