Stricter string parsing #923

Open
ben-eb opened this Issue Nov 28, 2016 · 0 comments

Projects

None yet

1 participant

@ben-eb
Member
ben-eb commented Nov 28, 2016

According to the specification, newlines (\n) are invalid in CSS strings unless escaped with a backslash. So, this example is invalid:

h1:after {
  content: "


  ";
}

But this is valid:

h1:after {
  content: "\
\
\
  ";
}

Ref: https://www.w3.org/TR/CSS2/syndata.html#strings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment