33 lines
652 B
Plaintext
33 lines
652 B
Plaintext
![]() |
According to the W3C specifications:
|
||
|
{quote}
|
||
|
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".
|
||
|
[...]
|
||
|
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 (\).
|
||
|
{quote}
|
||
|
|
||
|
|
||
|
== Noncompliant Code Example
|
||
|
|
||
|
----
|
||
|
a {
|
||
|
content: "first
|
||
|
second";
|
||
|
}
|
||
|
----
|
||
|
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
a {
|
||
|
content: "first\Asecond";
|
||
|
}
|
||
|
----
|
||
|
|
||
|
|
||
|
== See
|
||
|
|
||
|
* https://www.w3.org/TR/CSS2/syndata.html#strings[CSS Specification] - Strings
|
||
|
|
||
|
|