From 63a7fdf83df3f43343ba4fdb878bdfc8ebf52204 Mon Sep 17 00:00:00 2001 From: Haijian Wang Date: Fri, 4 Jan 2013 14:13:02 +0200 Subject: Preserve UTF-8 in imported files and output @charset in generated css (#10505) Change-Id: I53f46611ef39124d532b118bb8ccb34f31cf8a6a --- theme-compiler/tests/resources/automatic/css/utf8.css | 5 +++++ .../scss/utf8-imported/to-be-imported-scss-file-contains-utf8.scss | 3 +++ theme-compiler/tests/resources/automatic/scss/utf8.scss | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 theme-compiler/tests/resources/automatic/css/utf8.css create mode 100644 theme-compiler/tests/resources/automatic/scss/utf8-imported/to-be-imported-scss-file-contains-utf8.scss create mode 100644 theme-compiler/tests/resources/automatic/scss/utf8.scss (limited to 'theme-compiler/tests') diff --git a/theme-compiler/tests/resources/automatic/css/utf8.css b/theme-compiler/tests/resources/automatic/css/utf8.css new file mode 100644 index 0000000000..b27d6cedf9 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/utf8.css @@ -0,0 +1,5 @@ +@charset "UTF-8"; +.imported { content: "\1f4c5"; } +.imported_raw_utf { content: "♥"; } +.bar { content: "\1f4c5"; } +.raw_utf { content: "📈"; } \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/utf8-imported/to-be-imported-scss-file-contains-utf8.scss b/theme-compiler/tests/resources/automatic/scss/utf8-imported/to-be-imported-scss-file-contains-utf8.scss new file mode 100644 index 0000000000..f8a08a4a96 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/utf8-imported/to-be-imported-scss-file-contains-utf8.scss @@ -0,0 +1,3 @@ +@charset "abc"; +.imported{content: '\1f4c5';} +.imported_raw_utf{content: "♥";} diff --git a/theme-compiler/tests/resources/automatic/scss/utf8.scss b/theme-compiler/tests/resources/automatic/scss/utf8.scss new file mode 100644 index 0000000000..b568674073 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/utf8.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; +@import "utf8-imported/to-be-imported-scss-file-contains-utf8"; +.bar {content: "\1f4c5";} +.raw_utf {content: "📈";} \ No newline at end of file -- cgit v1.2.3