rspec/rules/S4668/css/rule.adoc

40 lines
670 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
The W3C specifications say comments should be defined using ``++/* ... */++``. The use of ``++//++`` is not supported on all browsers and can lead to unexpected results.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
// some comment
a { color: pink; }
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
/* some comment */
a { color: pink; }
----
2021-04-28 16:49:39 +02:00
== Exceptions
This rule ignores single line comments in ``++less++`` and ``++scss++`` files.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]