Re: [csswg-drafts] [Feature request] Support for single line comments (#7115)

This has been discussed in the past, see <https://lists.w3.org/Archives/Public/www-style/2012Aug/0622.html>.

Ultimately, we very likely can't do this without extensive compatibility testing, because (a) there's already at least two places in CSS where a `//` can validly appear (unquoted URLs, and 'border-image'), and (b) anyone using `//` to comment out properties today (something I also use, which works because it just makes an invalid property) and using a CSS minifier that doesn't remove invalid properties would have the entire rest of their stylesheet commented out.

This is the sort of thing that would have been nice to design into CSS early on, but at this point it's very unlikely to be possible.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7115#issuecomment-1062176996 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 8 March 2022 20:25:58 UTC