Skip to content

Commit 2c8da43

Browse files
authored
enh(css): add properties from several W3C (Candidate) Recommendations (#3356)
* enh(css): add properties from several W3C (Candidate) Recommendations (#3308) * fix(css): remove CSS values in list of CSS properties
1 parent 7c87adc commit 2c8da43

File tree

2 files changed

+92
-3
lines changed

2 files changed

+92
-3
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Parser:
1313

1414
Grammars:
1515

16+
- enh(css): add properties from several W3C (Candidate) Recommendations (#3308)
1617
- fix(js/ts) `Float32Array` highlighted incorrectly (#3353) [Josh Goebel][]
1718
- fix(css) single-colon psuedo-elements no longer break highlighting (#3240) [Josh Goebel][]
1819
- fix(scss) single-colon psuedo-elements no longer break highlighting (#3240) [Josh Goebel][]
@@ -46,6 +47,7 @@ Grammars:
4647
[Bahnschrift]: https://github.com/Bahnschrift
4748
[Melvyn Laïly]: https://github.com/mlaily
4849
[katzeprior]: https://github.com/katzeprior
50+
[Syb Wartna]:https://github.com/waarissyb
4951

5052

5153
## Version 11.2.0

src/languages/lib/css-shared.js

+90-3
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ export const ATTRIBUTES = [
240240
'align-content',
241241
'align-items',
242242
'align-self',
243+
'all',
243244
'animation',
244245
'animation-delay',
245246
'animation-direction',
@@ -249,7 +250,6 @@ export const ATTRIBUTES = [
249250
'animation-name',
250251
'animation-play-state',
251252
'animation-timing-function',
252-
'auto',
253253
'backface-visibility',
254254
'background',
255255
'background-attachment',
@@ -301,9 +301,11 @@ export const ATTRIBUTES = [
301301
'break-before',
302302
'break-inside',
303303
'caption-side',
304+
'caret-color',
304305
'clear',
305306
'clip',
306307
'clip-path',
308+
'clip-rule',
307309
'color',
308310
'column-count',
309311
'column-fill',
@@ -315,9 +317,14 @@ export const ATTRIBUTES = [
315317
'column-span',
316318
'column-width',
317319
'columns',
320+
'contain',
318321
'content',
322+
'content-visibility',
319323
'counter-increment',
320324
'counter-reset',
325+
'cue',
326+
'cue-after',
327+
'cue-before',
321328
'cursor',
322329
'direction',
323330
'display',
@@ -331,6 +338,7 @@ export const ATTRIBUTES = [
331338
'flex-shrink',
332339
'flex-wrap',
333340
'float',
341+
'flow',
334342
'font',
335343
'font-display',
336344
'font-family',
@@ -342,11 +350,17 @@ export const ATTRIBUTES = [
342350
'font-smoothing',
343351
'font-stretch',
344352
'font-style',
353+
'font-synthesis',
345354
'font-variant',
355+
'font-variant-caps',
356+
'font-variant-east-asian',
346357
'font-variant-ligatures',
358+
'font-variant-numeric',
359+
'font-variant-position',
347360
'font-variation-settings',
348361
'font-weight',
349362
'gap',
363+
'glyph-orientation-vertical',
350364
'grid',
351365
'grid-area',
352366
'grid-auto-columns',
@@ -363,18 +377,19 @@ export const ATTRIBUTES = [
363377
'grid-template-areas',
364378
'grid-template-columns',
365379
'grid-template-rows',
380+
'hanging-punctuation',
366381
'height',
367382
'hyphens',
368383
'icon',
369384
'image-orientation',
370385
'image-rendering',
371386
'image-resolution',
372387
'ime-mode',
373-
'inherit',
374-
'initial',
388+
'isolation',
375389
'justify-content',
376390
'left',
377391
'letter-spacing',
392+
'line-break',
378393
'line-height',
379394
'list-style',
380395
'list-style-image',
@@ -387,10 +402,27 @@ export const ATTRIBUTES = [
387402
'margin-top',
388403
'marks',
389404
'mask',
405+
'mask-border',
406+
'mask-border-mode',
407+
'mask-border-outset',
408+
'mask-border-repeat',
409+
'mask-border-slice',
410+
'mask-border-source',
411+
'mask-border-width',
412+
'mask-clip',
413+
'mask-composite',
414+
'mask-image',
415+
'mask-mode',
416+
'mask-origin',
417+
'mask-position',
418+
'mask-repeat',
419+
'mask-size',
420+
'mask-type',
390421
'max-height',
391422
'max-width',
392423
'min-height',
393424
'min-width',
425+
'mix-blend-mode',
394426
'nav-down',
395427
'nav-index',
396428
'nav-left',
@@ -420,31 +452,76 @@ export const ATTRIBUTES = [
420452
'page-break-after',
421453
'page-break-before',
422454
'page-break-inside',
455+
'pause',
456+
'pause-after',
457+
'pause-before',
423458
'perspective',
424459
'perspective-origin',
425460
'pointer-events',
426461
'position',
427462
'quotes',
428463
'resize',
464+
'rest',
465+
'rest-after',
466+
'rest-before',
429467
'right',
430468
'row-gap',
469+
'scroll-margin',
470+
'scroll-margin-block',
471+
'scroll-margin-block-end',
472+
'scroll-margin-block-start',
473+
'scroll-margin-bottom',
474+
'scroll-margin-inline',
475+
'scroll-margin-inline-end',
476+
'scroll-margin-inline-start',
477+
'scroll-margin-left',
478+
'scroll-margin-right',
479+
'scroll-margin-top',
480+
'scroll-padding',
481+
'scroll-padding-block',
482+
'scroll-padding-block-end',
483+
'scroll-padding-block-start',
484+
'scroll-padding-bottom',
485+
'scroll-padding-inline',
486+
'scroll-padding-inline-end',
487+
'scroll-padding-inline-start',
488+
'scroll-padding-left',
489+
'scroll-padding-right',
490+
'scroll-padding-top',
491+
'scroll-snap-align',
492+
'scroll-snap-stop',
493+
'scroll-snap-type',
494+
'shape-image-threshold',
495+
'shape-margin',
496+
'shape-outside',
497+
'speak',
498+
'speak-as',
431499
'src', // @font-face
432500
'tab-size',
433501
'table-layout',
434502
'text-align',
503+
'text-align-all',
435504
'text-align-last',
505+
'text-combine-upright',
436506
'text-decoration',
437507
'text-decoration-color',
438508
'text-decoration-line',
439509
'text-decoration-style',
510+
'text-emphasis',
511+
'text-emphasis-color',
512+
'text-emphasis-position',
513+
'text-emphasis-style',
440514
'text-indent',
515+
'text-justify',
516+
'text-orientation',
441517
'text-overflow',
442518
'text-rendering',
443519
'text-shadow',
444520
'text-transform',
445521
'text-underline-position',
446522
'top',
447523
'transform',
524+
'transform-box',
448525
'transform-origin',
449526
'transform-style',
450527
'transition',
@@ -455,12 +532,22 @@ export const ATTRIBUTES = [
455532
'unicode-bidi',
456533
'vertical-align',
457534
'visibility',
535+
'voice-balance',
536+
'voice-duration',
537+
'voice-family',
538+
'voice-pitch',
539+
'voice-range',
540+
'voice-rate',
541+
'voice-stress',
542+
'voice-volume',
458543
'white-space',
459544
'widows',
460545
'width',
546+
'will-change',
461547
'word-break',
462548
'word-spacing',
463549
'word-wrap',
550+
'writing-mode',
464551
'z-index'
465552
// reverse makes sure longer attributes `font-weight` are matched fully
466553
// instead of getting false positives on say `font`

0 commit comments

Comments
 (0)