From 06721e026bc0807ff4a263b250477f81cae6cc85 Mon Sep 17 00:00:00 2001 From: Sebastian Zartner Date: Tue, 22 Apr 2025 01:08:01 +0200 Subject: [PATCH] Added tests for rest of valid `@property` syntaxes --- tests/css-properties-values-api-1.js | 76 +++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/tests/css-properties-values-api-1.js b/tests/css-properties-values-api-1.js index b091e030..a749aec6 100644 --- a/tests/css-properties-values-api-1.js +++ b/tests/css-properties-values-api-1.js @@ -15,20 +15,92 @@ export default { dev: '#the-syntax-descriptor', }, required: { - "'x | y'": { + "'*'": { + descriptor: "inherits: false; initial-value: foo", + }, + "'x'": { descriptor: "inherits: false; initial-value: x", }, "''": { descriptor: "inherits: false; initial-value: 100px", }, + "''": { + descriptor: "inherits: false; initial-value: 1.23", + }, + "''": { + descriptor: "inherits: false; initial-value: 50%", + }, + "''": { + descriptor: "inherits: false; initial-value: calc(50% + 10px)", + }, + "''": { + descriptor: "inherits: false; initial-value: 'foo'", + }, "''": { descriptor: "inherits: false; initial-value: red", }, + "''": { + descriptor: "inherits: false; initial-value: linear-gradient(red, blue)", + }, + "''": { + descriptor: "inherits: false; initial-value: url('foo.png')", + }, + "''": { + descriptor: "inherits: false; initial-value: 1", + }, + "''": { + descriptor: "inherits: false; initial-value: 90deg", + }, + "'