2017-08-14 09:57:16 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`quotes.css 1`] = `
|
2017-08-17 09:59:56 +03:00
|
|
|
@charset "UTF-8";
|
|
|
|
/* @charset must always have double quotes: https://www.w3.org/TR/css-syntax-3/#determine-the-fallback-encoding */
|
|
|
|
/* Also, it has to be the very first thing in the file, but here are some more tests anyway: */
|
|
|
|
@charset 'UTF-8'; /* Single quotes are invalid here. Keep them since we don't know what the user is doing. */
|
|
|
|
|
2017-08-14 09:57:16 +03:00
|
|
|
@supports (content: one "two" three 'four') {
|
|
|
|
a[href="foo" y],
|
|
|
|
abbr[title^='It\\'s a trap!'],
|
|
|
|
img[src=""] {
|
|
|
|
/* Simple strings. */
|
|
|
|
content: "abc";
|
|
|
|
content: 'abc';
|
|
|
|
|
|
|
|
/* Escape. */
|
|
|
|
content: '\\A';
|
|
|
|
|
|
|
|
/* Emoji. */
|
|
|
|
content: '🐶';
|
|
|
|
|
|
|
|
/* Empty string. */
|
|
|
|
content: "";
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
/* Single double quote. */
|
|
|
|
content: "\\"";
|
|
|
|
content: '"';
|
|
|
|
|
|
|
|
/* Single single quote. */
|
|
|
|
content: "'";
|
|
|
|
content: '\\'';
|
|
|
|
|
|
|
|
/* One of each. */
|
|
|
|
content: "\\"'";
|
|
|
|
content: '"\\'';
|
|
|
|
|
|
|
|
/* One of each with unnecessary escapes. */
|
|
|
|
content: "\\"\\'";
|
|
|
|
content: '\\"\\'';
|
|
|
|
|
|
|
|
/* More double quotes than single quotes. */
|
|
|
|
content: "\\"'\\"";
|
|
|
|
content: '"\\'"';
|
|
|
|
|
|
|
|
/* More single quotes than double quotes. */
|
|
|
|
content: "\\"''";
|
|
|
|
content: '"\\'\\'';
|
|
|
|
|
|
|
|
/* Two of each. */
|
|
|
|
content: "\\"\\"''";
|
|
|
|
content: '""\\'\\'';
|
|
|
|
|
|
|
|
/* Single backslash. */
|
|
|
|
content: '\\\\';
|
|
|
|
content: "\\\\";
|
|
|
|
|
|
|
|
/* Backslases. */
|
|
|
|
content: "\\"\\\\\\"\\\\\\\\\\" '\\'\\\\'\\\\\\'\\\\\\\\'";
|
|
|
|
content: '\\'\\\\\\'\\\\\\\\\\' "\\"\\\\"\\\\\\"\\\\\\\\"';
|
|
|
|
|
|
|
|
/* Somewhat more real-word example. */
|
|
|
|
content: "He's sayin': \\"How's it goin'?\\" Don't ask me why.";
|
|
|
|
content: 'He\\'s sayin\\': "How\\'s it goin\\'?" Don\\'t ask me why.';
|
|
|
|
|
|
|
|
/* Somewhat more real-word example 2. */
|
|
|
|
content: "var backslash = \\"\\\\\\", doubleQuote = '\\"';";
|
|
|
|
content: 'var backslash = "\\\\", doubleQuote = \\'"\\';';
|
|
|
|
|
|
|
|
/* Leave all "escapes" alone. */
|
|
|
|
content: "\\Abc4 foo \\n" /* "comment" */ "\\end";
|
|
|
|
content: '\\Abc4 foo \\n' /* 'comment' */ '\\end';
|
|
|
|
}
|
|
|
|
}
|
2017-08-17 09:59:56 +03:00
|
|
|
|
|
|
|
@import "file.css";
|
2017-09-14 15:04:04 +03:00
|
|
|
@import 'file.css';
|
|
|
|
|
|
|
|
@import url("foo.css");
|
|
|
|
@import url('foo.css');
|
|
|
|
|
|
|
|
@import "foo.css" screen and (orientation: landscape);
|
|
|
|
@import 'foo.css' screen and (orientation: landscape);
|
2017-08-17 09:59:56 +03:00
|
|
|
|
|
|
|
@foo "one";
|
|
|
|
@foo 'one';
|
|
|
|
@foo "one" two 'three';
|
|
|
|
@foo ("one");
|
|
|
|
@foo ('one');
|
|
|
|
@foo ("one" two 'three');
|
|
|
|
|
|
|
|
one "two" three {}
|
|
|
|
one 'two' three {}
|
2017-08-14 09:57:16 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-08-17 09:59:56 +03:00
|
|
|
@charset "UTF-8";
|
|
|
|
/* @charset must always have double quotes: https://www.w3.org/TR/css-syntax-3/#determine-the-fallback-encoding */
|
|
|
|
/* Also, it has to be the very first thing in the file, but here are some more tests anyway: */
|
|
|
|
@charset 'UTF-8'; /* Single quotes are invalid here. Keep them since we don't know what the user is doing. */
|
|
|
|
|
2017-08-14 09:57:16 +03:00
|
|
|
@supports (content: one "two" three "four") {
|
|
|
|
a[href="foo" y],
|
|
|
|
abbr[title^="It's a trap!"],
|
|
|
|
img[src=""] {
|
|
|
|
/* Simple strings. */
|
|
|
|
content: "abc";
|
|
|
|
content: "abc";
|
|
|
|
|
|
|
|
/* Escape. */
|
|
|
|
content: "\\A";
|
|
|
|
|
|
|
|
/* Emoji. */
|
|
|
|
content: "🐶";
|
|
|
|
|
|
|
|
/* Empty string. */
|
|
|
|
content: "";
|
|
|
|
content: "";
|
|
|
|
|
|
|
|
/* Single double quote. */
|
|
|
|
content: '"';
|
|
|
|
content: '"';
|
|
|
|
|
|
|
|
/* Single single quote. */
|
|
|
|
content: "'";
|
|
|
|
content: "'";
|
|
|
|
|
|
|
|
/* One of each. */
|
|
|
|
content: "\\"'";
|
|
|
|
content: "\\"'";
|
|
|
|
|
|
|
|
/* One of each with unnecessary escapes. */
|
|
|
|
content: "\\"'";
|
|
|
|
content: "\\"'";
|
|
|
|
|
|
|
|
/* More double quotes than single quotes. */
|
|
|
|
content: '"\\'"';
|
|
|
|
content: '"\\'"';
|
|
|
|
|
|
|
|
/* More single quotes than double quotes. */
|
|
|
|
content: "\\"''";
|
|
|
|
content: "\\"''";
|
|
|
|
|
|
|
|
/* Two of each. */
|
|
|
|
content: "\\"\\"''";
|
|
|
|
content: "\\"\\"''";
|
|
|
|
|
|
|
|
/* Single backslash. */
|
|
|
|
content: "\\\\";
|
|
|
|
content: "\\\\";
|
|
|
|
|
|
|
|
/* Backslases. */
|
|
|
|
content: "\\"\\\\\\"\\\\\\\\\\" ''\\\\'\\\\'\\\\\\\\'";
|
|
|
|
content: '\\'\\\\\\'\\\\\\\\\\' ""\\\\"\\\\"\\\\\\\\"';
|
|
|
|
|
|
|
|
/* Somewhat more real-word example. */
|
|
|
|
content: "He's sayin': \\"How's it goin'?\\" Don't ask me why.";
|
|
|
|
content: "He's sayin': \\"How's it goin'?\\" Don't ask me why.";
|
|
|
|
|
|
|
|
/* Somewhat more real-word example 2. */
|
|
|
|
content: 'var backslash = "\\\\", doubleQuote = \\'"\\';';
|
|
|
|
content: 'var backslash = "\\\\", doubleQuote = \\'"\\';';
|
|
|
|
|
|
|
|
/* Leave all "escapes" alone. */
|
2018-02-06 18:09:42 +03:00
|
|
|
content: "\\Abc4 foo \\n" /* "comment" */ "\\end";
|
|
|
|
content: "\\Abc4 foo \\n" /* 'comment' */ "\\end";
|
2017-08-14 09:57:16 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-17 09:59:56 +03:00
|
|
|
@import "file.css";
|
2017-09-14 15:04:04 +03:00
|
|
|
@import "file.css";
|
|
|
|
|
|
|
|
@import url("foo.css");
|
|
|
|
@import url("foo.css");
|
|
|
|
|
|
|
|
@import "foo.css" screen and (orientation: landscape);
|
|
|
|
@import "foo.css" screen and (orientation: landscape);
|
2017-08-17 09:59:56 +03:00
|
|
|
|
|
|
|
@foo "one";
|
2018-02-22 12:49:03 +03:00
|
|
|
@foo 'one';
|
|
|
|
@foo "one" two 'three';
|
2017-08-17 09:59:56 +03:00
|
|
|
@foo ("one");
|
2018-02-22 12:49:03 +03:00
|
|
|
@foo ('one');
|
|
|
|
@foo ("one" two 'three');
|
2017-08-17 09:59:56 +03:00
|
|
|
|
|
|
|
one "two" three {
|
|
|
|
}
|
|
|
|
one "two" three {
|
|
|
|
}
|
|
|
|
|
2017-08-14 09:57:16 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`quotes.css 2`] = `
|
2017-08-17 09:59:56 +03:00
|
|
|
@charset "UTF-8";
|
|
|
|
/* @charset must always have double quotes: https://www.w3.org/TR/css-syntax-3/#determine-the-fallback-encoding */
|
|
|
|
/* Also, it has to be the very first thing in the file, but here are some more tests anyway: */
|
|
|
|
@charset 'UTF-8'; /* Single quotes are invalid here. Keep them since we don't know what the user is doing. */
|
|
|
|
|
2017-08-14 09:57:16 +03:00
|
|
|
@supports (content: one "two" three 'four') {
|
|
|
|
a[href="foo" y],
|
|
|
|
abbr[title^='It\\'s a trap!'],
|
|
|
|
img[src=""] {
|
|
|
|
/* Simple strings. */
|
|
|
|
content: "abc";
|
|
|
|
content: 'abc';
|
|
|
|
|
|
|
|
/* Escape. */
|
|
|
|
content: '\\A';
|
|
|
|
|
|
|
|
/* Emoji. */
|
|
|
|
content: '🐶';
|
|
|
|
|
|
|
|
/* Empty string. */
|
|
|
|
content: "";
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
/* Single double quote. */
|
|
|
|
content: "\\"";
|
|
|
|
content: '"';
|
|
|
|
|
|
|
|
/* Single single quote. */
|
|
|
|
content: "'";
|
|
|
|
content: '\\'';
|
|
|
|
|
|
|
|
/* One of each. */
|
|
|
|
content: "\\"'";
|
|
|
|
content: '"\\'';
|
|
|
|
|
|
|
|
/* One of each with unnecessary escapes. */
|
|
|
|
content: "\\"\\'";
|
|
|
|
content: '\\"\\'';
|
|
|
|
|
|
|
|
/* More double quotes than single quotes. */
|
|
|
|
content: "\\"'\\"";
|
|
|
|
content: '"\\'"';
|
|
|
|
|
|
|
|
/* More single quotes than double quotes. */
|
|
|
|
content: "\\"''";
|
|
|
|
content: '"\\'\\'';
|
|
|
|
|
|
|
|
/* Two of each. */
|
|
|
|
content: "\\"\\"''";
|
|
|
|
content: '""\\'\\'';
|
|
|
|
|
|
|
|
/* Single backslash. */
|
|
|
|
content: '\\\\';
|
|
|
|
content: "\\\\";
|
|
|
|
|
|
|
|
/* Backslases. */
|
|
|
|
content: "\\"\\\\\\"\\\\\\\\\\" '\\'\\\\'\\\\\\'\\\\\\\\'";
|
|
|
|
content: '\\'\\\\\\'\\\\\\\\\\' "\\"\\\\"\\\\\\"\\\\\\\\"';
|
|
|
|
|
|
|
|
/* Somewhat more real-word example. */
|
|
|
|
content: "He's sayin': \\"How's it goin'?\\" Don't ask me why.";
|
|
|
|
content: 'He\\'s sayin\\': "How\\'s it goin\\'?" Don\\'t ask me why.';
|
|
|
|
|
|
|
|
/* Somewhat more real-word example 2. */
|
|
|
|
content: "var backslash = \\"\\\\\\", doubleQuote = '\\"';";
|
|
|
|
content: 'var backslash = "\\\\", doubleQuote = \\'"\\';';
|
|
|
|
|
|
|
|
/* Leave all "escapes" alone. */
|
|
|
|
content: "\\Abc4 foo \\n" /* "comment" */ "\\end";
|
|
|
|
content: '\\Abc4 foo \\n' /* 'comment' */ '\\end';
|
|
|
|
}
|
|
|
|
}
|
2017-08-17 09:59:56 +03:00
|
|
|
|
|
|
|
@import "file.css";
|
2017-09-14 15:04:04 +03:00
|
|
|
@import 'file.css';
|
|
|
|
|
|
|
|
@import url("foo.css");
|
|
|
|
@import url('foo.css');
|
|
|
|
|
|
|
|
@import "foo.css" screen and (orientation: landscape);
|
|
|
|
@import 'foo.css' screen and (orientation: landscape);
|
2017-08-17 09:59:56 +03:00
|
|
|
|
|
|
|
@foo "one";
|
|
|
|
@foo 'one';
|
|
|
|
@foo "one" two 'three';
|
|
|
|
@foo ("one");
|
|
|
|
@foo ('one');
|
|
|
|
@foo ("one" two 'three');
|
|
|
|
|
|
|
|
one "two" three {}
|
|
|
|
one 'two' three {}
|
2017-08-14 09:57:16 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-08-17 09:59:56 +03:00
|
|
|
@charset "UTF-8";
|
|
|
|
/* @charset must always have double quotes: https://www.w3.org/TR/css-syntax-3/#determine-the-fallback-encoding */
|
|
|
|
/* Also, it has to be the very first thing in the file, but here are some more tests anyway: */
|
|
|
|
@charset 'UTF-8'; /* Single quotes are invalid here. Keep them since we don't know what the user is doing. */
|
|
|
|
|
2017-08-14 09:57:16 +03:00
|
|
|
@supports (content: one 'two' three 'four') {
|
|
|
|
a[href='foo' y],
|
|
|
|
abbr[title^="It's a trap!"],
|
|
|
|
img[src=''] {
|
|
|
|
/* Simple strings. */
|
|
|
|
content: 'abc';
|
|
|
|
content: 'abc';
|
|
|
|
|
|
|
|
/* Escape. */
|
|
|
|
content: '\\A';
|
|
|
|
|
|
|
|
/* Emoji. */
|
|
|
|
content: '🐶';
|
|
|
|
|
|
|
|
/* Empty string. */
|
|
|
|
content: '';
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
/* Single double quote. */
|
|
|
|
content: '"';
|
|
|
|
content: '"';
|
|
|
|
|
|
|
|
/* Single single quote. */
|
|
|
|
content: "'";
|
|
|
|
content: "'";
|
|
|
|
|
|
|
|
/* One of each. */
|
|
|
|
content: '"\\'';
|
|
|
|
content: '"\\'';
|
|
|
|
|
|
|
|
/* One of each with unnecessary escapes. */
|
|
|
|
content: '"\\'';
|
|
|
|
content: '"\\'';
|
|
|
|
|
|
|
|
/* More double quotes than single quotes. */
|
|
|
|
content: '"\\'"';
|
|
|
|
content: '"\\'"';
|
|
|
|
|
|
|
|
/* More single quotes than double quotes. */
|
|
|
|
content: "\\"''";
|
|
|
|
content: "\\"''";
|
|
|
|
|
|
|
|
/* Two of each. */
|
|
|
|
content: '""\\'\\'';
|
|
|
|
content: '""\\'\\'';
|
|
|
|
|
|
|
|
/* Single backslash. */
|
|
|
|
content: '\\\\';
|
|
|
|
content: '\\\\';
|
|
|
|
|
|
|
|
/* Backslases. */
|
|
|
|
content: "\\"\\\\\\"\\\\\\\\\\" ''\\\\'\\\\'\\\\\\\\'";
|
|
|
|
content: '\\'\\\\\\'\\\\\\\\\\' ""\\\\"\\\\"\\\\\\\\"';
|
|
|
|
|
|
|
|
/* Somewhat more real-word example. */
|
|
|
|
content: "He's sayin': \\"How's it goin'?\\" Don't ask me why.";
|
|
|
|
content: "He's sayin': \\"How's it goin'?\\" Don't ask me why.";
|
|
|
|
|
|
|
|
/* Somewhat more real-word example 2. */
|
|
|
|
content: 'var backslash = "\\\\", doubleQuote = \\'"\\';';
|
|
|
|
content: 'var backslash = "\\\\", doubleQuote = \\'"\\';';
|
|
|
|
|
|
|
|
/* Leave all "escapes" alone. */
|
2018-02-06 18:09:42 +03:00
|
|
|
content: '\\Abc4 foo \\n' /* "comment" */ '\\end';
|
|
|
|
content: '\\Abc4 foo \\n' /* 'comment' */ '\\end';
|
2017-08-14 09:57:16 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-17 09:59:56 +03:00
|
|
|
@import 'file.css';
|
2017-09-14 15:04:04 +03:00
|
|
|
@import 'file.css';
|
|
|
|
|
|
|
|
@import url('foo.css');
|
|
|
|
@import url('foo.css');
|
|
|
|
|
|
|
|
@import 'foo.css' screen and (orientation: landscape);
|
|
|
|
@import 'foo.css' screen and (orientation: landscape);
|
2017-08-17 09:59:56 +03:00
|
|
|
|
2018-02-22 12:49:03 +03:00
|
|
|
@foo "one";
|
2017-08-17 09:59:56 +03:00
|
|
|
@foo 'one';
|
2018-02-22 12:49:03 +03:00
|
|
|
@foo "one" two 'three';
|
|
|
|
@foo ("one");
|
2017-08-17 09:59:56 +03:00
|
|
|
@foo ('one');
|
2018-02-22 12:49:03 +03:00
|
|
|
@foo ("one" two 'three');
|
2017-08-17 09:59:56 +03:00
|
|
|
|
|
|
|
one 'two' three {
|
|
|
|
}
|
|
|
|
one 'two' three {
|
|
|
|
}
|
|
|
|
|
2017-08-14 09:57:16 +03:00
|
|
|
`;
|