diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-13 21:34:48 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-13 21:34:48 -0800 |
| commit | 76cb9c2a39d477a64824a985ade40507e3bbade1 (patch) | |
| tree | 41e997aa9c6f538d3a136af61dae9424db2005a9 /vanilla/node_modules/mdn-data/css/at-rules.schema.json | |
| parent | 819a39a21ac992b1393244a4c283bbb125208c69 (diff) | |
| download | neko-76cb9c2a39d477a64824a985ade40507e3bbade1.tar.gz neko-76cb9c2a39d477a64824a985ade40507e3bbade1.tar.bz2 neko-76cb9c2a39d477a64824a985ade40507e3bbade1.zip | |
feat(vanilla): add testing infrastructure and tests (NK-wjnczv)
Diffstat (limited to 'vanilla/node_modules/mdn-data/css/at-rules.schema.json')
| -rw-r--r-- | vanilla/node_modules/mdn-data/css/at-rules.schema.json | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/vanilla/node_modules/mdn-data/css/at-rules.schema.json b/vanilla/node_modules/mdn-data/css/at-rules.schema.json new file mode 100644 index 0000000..9c89255 --- /dev/null +++ b/vanilla/node_modules/mdn-data/css/at-rules.schema.json @@ -0,0 +1,131 @@ +{ + "definitions": { + "stringOrPropertyList": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "minItems": 1, + "uniqueItems": true, + "items": { + "type": "string", + "property-reference": { + "comment": "property-reference is an extension to the JSON schema validator. Here it jumps 3 levels up in the hierarchy and tests if a value is an existing key in descriptors. See test/validate-schema.js for implementation details.", + "$data": "3" + } + } + } + ] + } + }, + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": false, + "properties": { + "syntax": { + "type": "string" + }, + "interfaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "minitems": 1, + "uniqueItems": true, + "items": { + "$ref": "definitions.json#/groupList" + } + }, + "descriptors": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": false, + "properties": { + "syntax": { + "type": "string" + }, + "media": { + "oneOf": [ + { + "type": "string", + "enum": [ + "all", + "continuous", + "paged", + "visual" + ] + }, + { + "type": "array", + "minItems": 2, + "uniqueItems": true, + "items": { + "type": "string", + "enum": [ + "continuous", + "paged", + "visual" + ] + } + } + ] + }, + "initial": { + "$ref": "#/definitions/stringOrPropertyList" + }, + "percentages": { + "$ref": "#/definitions/stringOrPropertyList" + }, + "computed": { + "$ref": "#/definitions/stringOrPropertyList" + }, + "order": { + "enum": [ + "orderOfAppearance", + "uniqueOrder" + ] + }, + "status": { + "enum": [ + "standard", + "nonstandard", + "experimental" + ] + } + }, + "required": [ + "syntax", + "initial", + "percentages", + "computed", + "order", + "status" + ] + } + }, + "status": { + "enum": [ + "standard", + "nonstandard", + "experimental" + ] + }, + "mdn_url": { + "type": "string", + "pattern": "^https://developer.mozilla.org/docs/Web/CSS/" + } + }, + "required": [ + "syntax", + "groups", + "status" + ] + } +} |
