4 ms·
single-line comments are already supported in the way that are invalid css :) so if you comment with // the stuff that follow will be ignored. Again, it is inva
by ggurgone 12y ago
single-line comments are already supported in the way that are invalid css :) so if you comment with // the stuff that follow will be ignored.
Again, it is invalid CSS and I am not suggesting that you should use it, just bringing that up :)
I personally like how single-comments works on pre-processors.
They are ignored at compile time and therefore are a good way to comment on functions, mixins or anything that won't be compiled to raw CSS.
- phoboslab 12y agoBe careful with using // in CSS. It causes some browsers to completely ignore the whole rest of the CSS file after the line you wanted to comment out (iirc IE9 does this). When I want to quickly comment something out (and don't have an editor shortcut handy), I just put an 'x' in front of the property name. I.e.: xbackground-color: #f0f;
- ggurgone 12y agoYeah, well anything invalid :)