;
}
// @webref/css v6 interfaces.
diff --git a/kumascript/tests/lib/__snapshots__/css-syntax.test.ts.snap b/kumascript/tests/lib/__snapshots__/css-syntax.test.ts.snap
index bcfcadf68646..3e61721237ed 100644
--- a/kumascript/tests/lib/__snapshots__/css-syntax.test.ts.snap
+++ b/kumascript/tests/lib/__snapshots__/css-syntax.test.ts.snap
@@ -4,10 +4,16 @@ exports[`CSSSyntax renders at-rule: @import 1`] = `"src =
<font-src-list>
"`;
+exports[`CSSSyntax renders function: polygon 1`] = `"<polygon()> =
polygon( <'fill-rule'>? , [ <length-percentage> <length-percentage> ]# )
<length-percentage> =
<length> |
<percentage>
"`;
+
exports[`CSSSyntax renders function: sin 1`] = `"<sin()> =
sin( <calc-sum> )
<calc-sum> =
<calc-product> [ [ '+' | '-' ] <calc-product> ]*
<calc-product> =
<calc-value> [ [ '*' | '/' ] <calc-value> ]*
<calc-value> =
<number> |
<dimension> |
<percentage> |
<calc-keyword> |
( <calc-sum> )
<calc-keyword> =
e |
pi |
infinity |
-infinity |
NaN
"`;
exports[`CSSSyntax renders property: box-shadow 1`] = `"box-shadow =
<spread-shadow>#
<spread-shadow> =
<'box-shadow-color'>? &&
[ <'box-shadow-offset'> [ <'box-shadow-blur'> <'box-shadow-spread'>? ]? ] &&
<'box-shadow-position'>?
"`;
exports[`CSSSyntax renders shorthand-property: overflow 1`] = `"overflow =
<'overflow-block'>{1,2}
"`;
-exports[`CSSSyntax renders type: ratio 1`] = `"<ratio> =
<number [0,∞]> [ / <number [0,∞]> ]?
"`;
+exports[`CSSSyntax renders type: alpha-value 1`] = `"<alpha-value> =
<number> |
<percentage>
"`;
+
+exports[`CSSSyntax renders type: content-replacement 1`] = `"<content-replacement> =
<image>
<image> =
<url> |
<gradient>
<url> =
<url()> |
<src()>
<url()> =
url( <string> <url-modifier>* ) |
<url-token>
<src()> =
src( <string> <url-modifier>* )
"`;
+
+exports[`CSSSyntax renders type: ratio 1`] = `"<ratio> =
<number [0,∞]> [ / <number [0,∞]> ]?
"`;
diff --git a/kumascript/tests/lib/css-syntax.test.ts b/kumascript/tests/lib/css-syntax.test.ts
index f74e0fa117ea..93c07cf00da6 100644
--- a/kumascript/tests/lib/css-syntax.test.ts
+++ b/kumascript/tests/lib/css-syntax.test.ts
@@ -25,6 +25,9 @@ describe("CSSSyntax", () => {
});
it("renders function", async () => {
+ expect(
+ await render("Web/CSS/basic-shape/polygon", "css-function")
+ ).toMatchSnapshot("polygon");
expect(await render("Web/CSS/sin", "css-function")).toMatchSnapshot("sin");
});
@@ -42,5 +45,12 @@ describe("CSSSyntax", () => {
it("renders type", async () => {
expect(await render("Web/CSS/ratio", "css-type")).toMatchSnapshot("ratio");
+ expect(await render("Web/CSS/alpha-value", "css-type")).toMatchSnapshot(
+ "alpha-value"
+ );
+ // Note that Web/CSS/content-replacement doesn't really exist.
+ expect(
+ await render("Web/CSS/content-replacement", "css-type")
+ ).toMatchSnapshot("content-replacement");
});
});