zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.
http://zmoazeni.github.io/csscss/
MIT License
2.92k stars 151 forks source link

Don't know what to do with body:before #53

Closed levibe closed 11 years ago

levibe commented 11 years ago

csscss had trouble with an Opera fix for a sticky footer:

Had a problem parsing the css at line: 88, column: 1 Failed to match sequence (SPACE? blocks:((COMMENT / NESTED_RULESET / RULESET){1, }) SPACE?) at line 88 char 1. - Don't know what to do with "body:befor" at line 88 char 1.`

Here is the fix in question:

/*Opera Fix*/ body:before { content:""; height:100%; float:left; width:0; margin-top:-32767px;/ }

zmoazeni commented 11 years ago

margin-top:-32767px;/

What happens when you remove the trailing slash off of this declaration? WIthout it, it works fine for me locally.

levibe commented 11 years ago

That worked. Didn't see the slash somehow. Thanks!