rspec/rules/S4652/css/rule.adoc
2022-02-04 16:28:24 +00:00

48 lines
844 B
Plaintext

According to the W3C specifications:
____
A string cannot directly contain a newline. To include a newline in a string, use an escape representing the line feed character in ISO-10646 (U+000A), such as "\A" or "\00000a".
{empty}[...]
It is possible to break strings over several lines, for aesthetic or other reasons, but in such a case the newline itself has to be escaped with a backslash (\).
____
== Noncompliant Code Example
[source,css]
----
a {
content: "first
second";
}
----
== Compliant Solution
[source,css]
----
a {
content: "first\Asecond";
}
----
== See
* https://www.w3.org/TR/CSS2/syndata.html#strings[CSS Specification] - Strings
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]