Inline CSS Comments

Alex P's Avatar

Alex P

08 Mar, 2012 12:22 PM

Compiler doesn't keep the position of inline CSS comments.
This code:

background-image: -moz-linear-gradient(left, @startColor, @endColor); /* FF 3.6+ */
background-image: -ms-linear-gradient(left, @startColor, @endColor); /* IE10 */

compiles to (including the blank lines):

background-image: -moz-linear-gradient(#f5f5f5, #dfd8d8);
/* FF 3.6+ */

background-image: -ms-linear-gradient(#f5f5f5, #dfd8d8);
/* IE10 */

Makes a very large css file.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac