less.ruby icon indicating copy to clipboard operation
less.ruby copied to clipboard

Syntax error?

Open j0hnsmith opened this issue 16 years ago • 5 comments

This should generate a syntax error but doesn't (1.1.13)

#foo {
  font-size: 10px; 
  text-align: center: // s/be ; not :
}
#bar {
  height: 100px; 
}

Not really sure if it's a problem or not.

j0hnsmith avatar Oct 09 '09 03:10 j0hnsmith

I guess this should also be a syntax error

p {
    margin-botton: 20px; // s/be margin-bottom
}

j0hnsmith avatar Nov 05 '09 03:11 j0hnsmith

well margin-botton isn't a syntax error, it's just a property css doesn't support : ) — I think your browser should be able to tell you that.

cloudhead avatar Nov 19 '09 02:11 cloudhead

Of course, it's not for less to decide what are valid properties and what aren't.

This is a syntax error though? text-align: center: // s/be ; not :

j0hnsmith avatar Nov 19 '09 03:11 j0hnsmith

yea, that is, I'm gonna look into why it's passing through.

cloudhead avatar Nov 19 '09 05:11 cloudhead

What about this case? filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(...);

I guess you should check for ; only on the EOL. Otherwise, you may block some special uses of css (specially filters for IE).

vicalejuri avatar Apr 07 '10 22:04 vicalejuri