[SPIP] +version 3.0.7
[ptitvelo/web/www.git] / www / plugins-dist / compresseur / lib / csstidy / testing / unit-tests / csst / special / font-face.csst
diff --git a/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face.csst b/www/plugins-dist/compresseur/lib/csstidy/testing/unit-tests/csst/special/font-face.csst
new file mode 100644 (file)
index 0000000..1c6e5dc
--- /dev/null
@@ -0,0 +1,109 @@
+--TEST--
+@font-face rules
+--CSS--
+@font-face {
+    font-family: GillSans;
+    src:url("/generic/fonts/GillSansLightC.otf") format("opentype");
+    font-style: normal;
+    font-weight: normal;
+}
+
+@font-face {
+    font-family: GillSans;
+    src:url("/generic/fonts/GillSansC.otf") format('opentype');
+    font-style: normal;
+    font-weight: bold;
+}
+
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format("opentype", "woff");
+}
+
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format();
+}
+
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format("opentype" "svg");
+}
+
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format("opentype", 'woff', 'svg');
+}
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format(opentype);
+}
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format(opentype woff);
+}
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format(opentype, woff);
+}
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format(opentype, woff, "svg");
+}
+@font-face {
+    src:url("/generic/fonts/GillSansLightC.otf") format(opentype woff, "svg");
+}
+@font-face {
+    src:url("/generic/fonts/GillSans LightC.otf") format(opentype,woff);
+}
+--FULLEXPECT--
+array (
+       ' ' => array(
+  '@font-face' => 
+  array (
+    'font-family' => 'GillSans',
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype")',
+    'font-style' => 'normal',
+    'font-weight' => '400',
+  ),
+  '@font-face ' => 
+  array (
+    'font-family' => 'GillSans',
+    'src' => 'url(/generic/fonts/GillSansC.otf) format("opentype")',
+    'font-style' => 'normal',
+    'font-weight' => '700',
+  ),
+  '@font-face  ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff")',
+  ),
+  '@font-face   ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf)',
+  ),
+  '@font-face    ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","svg")',
+  ),
+  '@font-face     ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff","svg")',
+  ),
+  '@font-face      ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype")',
+  ),
+  '@font-face       ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff")',
+  ),
+  '@font-face        ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff")',
+  ),
+  '@font-face         ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff","svg")',
+  ),
+  '@font-face          ' => 
+  array (
+    'src' => 'url(/generic/fonts/GillSansLightC.otf) format("opentype","woff","svg")',
+  ),
+  '@font-face           ' => 
+  array (
+    'src' => 'url("/generic/fonts/GillSans LightC.otf") format("opentype","woff")',
+  ),
+  ),
+)