fix: handle `unicode-range` (#4117)
parent
836fd1ddcf
commit
94ec29dac7
|
@ -48,7 +48,7 @@
|
|||
"postcss-media-query-parser": "0.2.3",
|
||||
"postcss-scss": "1.0.4",
|
||||
"postcss-selector-parser": "2.2.3",
|
||||
"postcss-values-parser": "1.3.2",
|
||||
"postcss-values-parser": "1.4.0",
|
||||
"read-pkg-up": "3.0.0",
|
||||
"remark-frontmatter": "1.1.0",
|
||||
"remark-parse": "5.0.0",
|
||||
|
|
|
@ -689,6 +689,9 @@ function genericPrint(path, options, print) {
|
|||
case "value-atword": {
|
||||
return concat(["@", node.value]);
|
||||
}
|
||||
case "value-unicode-range": {
|
||||
return node.value;
|
||||
}
|
||||
default:
|
||||
/* istanbul ignore next */
|
||||
throw new Error(`Unknown postcss type ${JSON.stringify(node.type)}`);
|
||||
|
|
|
@ -293,6 +293,16 @@ a {
|
|||
filter: progid:DXImageTransform.Microsoft.Shadow(color='#042b47', Direction=45, Strength=6) progid:DXImageTransform.Microsoft.Shadow(color='#042b47', Direction=135, Strength=6);
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#fad59f, endColorstr=#fa9907)";
|
||||
}
|
||||
|
||||
.unicode-ranges
|
||||
{
|
||||
/* <unicode-range> values */
|
||||
unicode-range: U+26; /* single codepoint */
|
||||
unicode-range: U+0-7F;
|
||||
unicode-range: U+0025-00FF; /* codepoint range */
|
||||
unicode-range: U+4??; /* wildcard range */
|
||||
unicode-range: U+0025-00FF, U+4??; /* multiple values */
|
||||
}
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
a {
|
||||
prop1: func(1px, 1px, 1px, func(1px, 1px, 1px, func(1px, 1px, 1px)));
|
||||
|
@ -497,4 +507,13 @@ a {
|
|||
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#fad59f, endColorstr=#fa9907)";
|
||||
}
|
||||
|
||||
.unicode-ranges {
|
||||
/* <unicode-range> values */
|
||||
unicode-range: U+26; /* single codepoint */
|
||||
unicode-range: U+0-7F;
|
||||
unicode-range: U+0025-00FF; /* codepoint range */
|
||||
unicode-range: U+4??; /* wildcard range */
|
||||
unicode-range: U+0025-00FF, U+4??; /* multiple values */
|
||||
}
|
||||
|
||||
`;
|
||||
|
|
|
@ -290,3 +290,13 @@ a {
|
|||
filter: progid:DXImageTransform.Microsoft.Shadow(color='#042b47', Direction=45, Strength=6) progid:DXImageTransform.Microsoft.Shadow(color='#042b47', Direction=135, Strength=6);
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#fad59f, endColorstr=#fa9907)";
|
||||
}
|
||||
|
||||
.unicode-ranges
|
||||
{
|
||||
/* <unicode-range> values */
|
||||
unicode-range: U+26; /* single codepoint */
|
||||
unicode-range: U+0-7F;
|
||||
unicode-range: U+0025-00FF; /* codepoint range */
|
||||
unicode-range: U+4??; /* wildcard range */
|
||||
unicode-range: U+0025-00FF, U+4??; /* multiple values */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue