rspec/rules/S4668/css/rule.adoc

32 lines
553 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::rspecator-view[]
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::rspecator-view[]