in reply to CSS parsing

I tried this on Common Theme CSS, but it doesn't completely work. It seems that it can't parse single-line blocks such as this:

span.title { float: left }

Replies are listed 'Best First'.
Re^2: CSS parsing
by ww (Archbishop) on Jun 15, 2005 at 17:12 UTC
    WAG: Could that be for lack of the (NON_required) semicolon in the block? Aemi is not spec'ed for a single element block (nor for the last of multiple items in a block, IIRC) but (mere anecdotal assertion) I've found it wise to include to keep some browsers happy.

      No, I doubt that. It has nothing to do with the semicolon, I think the semicolon would even make matters worse.

      As far as I understand the code, the parsing works line by line. Each line is expected to be either a condition and an opening brace, or two strings separated by a colon, or a closing brace. If a line is more complicated than this, this simple code can't break it apart.