CSS comments

Adds explanatory notes to the code or to prevent the browser from interpreting specific parts of the style sheet

Estimated Support About

34.15% + 26.83% = 60.98%

Notes

  • 1

    Buggy. The first <head> in the HTML is removed, so comment needs to be in the <style> tag of a second <head> element.

  • 2

    Partial. <style> tag not supported with non-google account. Comment inside style: attribute works.

  • 3

    Partial. Comment inside <style> tag works. Comment inside style attribute strips the whole attribute.

  • 4

    Partial. <style> tag not supported. Comment inside style: attribute works.

  • 5

    Partial. Comment inside style attribute works.

  • 6

    Not supported. The entire rule is removed within a <style> element. The entire inline style` attribute is removed.

Resources

Know something we don't?

Is any of the above data outdated? Or do you want to add a new email client to the list? Heads on to GitHub and edit the data file!

Not comfortable with GitHub? Send us an email.

Test it yourself

This feature was last tested on April 25, 2024.

If you want to test this feature in the same conditions as we did, you can get our test code and run a test by yourself. Make sure to follow our testing recommendations first.