Skip to content

Commit c0b09dc

Browse files
committed
Fix lint errors
1 parent a2f5edb commit c0b09dc

File tree

3 files changed

+7
-48
lines changed

3 files changed

+7
-48
lines changed

data/patch.json

-44
Original file line numberDiff line numberDiff line change
@@ -168,31 +168,13 @@
168168
],
169169
"syntax": "nonzero | evenodd"
170170
},
171-
"content": {
172-
"comment": "https://www.w3.org/TR/css-content-3/#content-property",
173-
"syntax": "normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> ]+ ]?"
174-
},
175171
"counter-reset": {
176172
"comment": "<custom-ident> -> <counter-name>",
177173
"references": [
178174
"https://www.w3.org/TR/css-lists-3/#counter-reset"
179175
],
180176
"syntax": "[ <counter-name> <integer>? ]+ | none"
181177
},
182-
"counter-increment": {
183-
"comment": "<custom-ident> -> <counter-name>",
184-
"references": [
185-
"https://www.w3.org/TR/css-lists-3/#propdef-counter-increment"
186-
],
187-
"syntax": "[ <counter-name> <integer>? ]+ | none"
188-
},
189-
"counter-set": {
190-
"comment": "<custom-ident> -> <counter-name>",
191-
"references": [
192-
"https://www.w3.org/TR/css-lists-3/#propdef-counter-set"
193-
],
194-
"syntax": "[ <counter-name> <integer>? ]+ | none"
195-
},
196178
"cue": {
197179
"comment": "https://www.w3.org/TR/css3-speech/#property-index",
198180
"syntax": "<'cue-before'> <'cue-after'>?"
@@ -615,32 +597,6 @@
615597
"comment": "missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",
616598
"syntax": "<length> | auto"
617599
},
618-
"content-list": {
619-
"comment": "add missed <counter> -> https://drafts.csswg.org/css-content/#typedef-content-list",
620-
"syntax": "[ <string> | contents | <image> | <counter> | <quote> | <target> | <leader()> ]+"
621-
},
622-
"counter": {
623-
"comment": "missed",
624-
"syntax": "<counter()> | <counters()>"
625-
},
626-
"counter()": {
627-
"comment": "<custom-ident> -> <counter-name>",
628-
"references": [
629-
"https://www.w3.org/TR/css-lists-3/#counter-functions"
630-
],
631-
"syntax": "counter( <counter-name>, <counter-style>? )"
632-
},
633-
"counters()": {
634-
"comment": "<custom-ident> -> <counter-name>",
635-
"references": [
636-
"https://www.w3.org/TR/css-lists-3/#counter-functions"
637-
],
638-
"syntax": "counters( <counter-name>, <string>, <counter-style>? )"
639-
},
640-
"counter-name": {
641-
"comment": "missed",
642-
"syntax": "<custom-ident>"
643-
},
644600
"element()": {
645601
"comment": "https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation",
646602
"syntax": "element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"

docs/supported.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ Support for a property means CSSTree has a grammar for such property, so its val
196196
- `animation-iteration-count`
197197
- `animation-name`
198198
- `animation-play-state`
199+
- `animation-timeline`
199200
- `animation-timing-function`
200201
- `appearance`
201202
- `aspect-ratio`
@@ -301,7 +302,6 @@ Support for a property means CSSTree has a grammar for such property, so its val
301302
- `clip-path`
302303
- `clip-rule`
303304
- `color`
304-
- `color-adjust`
305305
- `color-scheme`
306306
- `column-count`
307307
- `column-fill`
@@ -384,6 +384,7 @@ Support for a property means CSSTree has a grammar for such property, so its val
384384
- `grid-template-rows`
385385
- `hanging-punctuation`
386386
- `height`
387+
- `hyphenate-character`
387388
- `hyphens`
388389
- `image-orientation`
389390
- `image-rendering`
@@ -392,6 +393,7 @@ Support for a property means CSSTree has a grammar for such property, so its val
392393
- `initial-letter`
393394
- `initial-letter-align`
394395
- `inline-size`
396+
- `input-security`
395397
- `inset`
396398
- `inset-block`
397399
- `inset-block-end`
@@ -515,6 +517,7 @@ Support for a property means CSSTree has a grammar for such property, so its val
515517
- `place-self`
516518
- `pointer-events`
517519
- `position`
520+
- `print-color-adjust`
518521
- `quotes`
519522
- `resize`
520523
- `rest`

scripts/review-syntax-patch.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const currentContent = fs.readFileSync(patchFilename, 'utf8').replace(/\r\n/g, '
99
const csstreePatch = JSON.parse(currentContent);
1010
const checkUpdatesNeeded = process.argv[2] === '--lint';
1111

12-
function checkSection(section) {
12+
function checkSection(section, mdnDataSection = section) {
1313
Object.keys(csstreePatch[section]).forEach(function(name) {
1414
const csstreeSyntax = csstreePatch[section][name];
15-
const mdnData = data[section][name];
15+
const mdnData = data[mdnDataSection][name];
1616
const id = `${section}/${name}`;
1717

1818
if (mdnData && csstreeSyntax.syntax === mdnData.syntax.replace(/[ ]*\n[ ]*/g, ' ')) {
@@ -33,7 +33,7 @@ function checkSection(section) {
3333
}
3434

3535
checkSection('properties');
36-
checkSection('syntaxes');
36+
checkSection('types', 'syntaxes');
3737

3838
const newContent = JSON.stringify(csstreePatch, null, 4) + '\n';
3939

0 commit comments

Comments
 (0)