Skip to content

Commit 9164046

Browse files
committed
enh(css): add properties from several W3C (Candidate) Recommendations (highlightjs#3308)
1 parent 1a258a3 commit 9164046

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

src/languages/lib/css-shared.js

+92
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',
@@ -301,9 +302,11 @@ export const ATTRIBUTES = [
301302
'break-before',
302303
'break-inside',
303304
'caption-side',
305+
'caret-color',
304306
'clear',
305307
'clip',
306308
'clip-path',
309+
'clip-rule',
307310
'color',
308311
'column-count',
309312
'column-fill',
@@ -315,9 +318,14 @@ export const ATTRIBUTES = [
315318
'column-span',
316319
'column-width',
317320
'columns',
321+
'contain',
318322
'content',
323+
'content-visibility',
319324
'counter-increment',
320325
'counter-reset',
326+
'cue',
327+
'cue-after',
328+
'cue-before',
321329
'cursor',
322330
'direction',
323331
'display',
@@ -331,6 +339,7 @@ export const ATTRIBUTES = [
331339
'flex-shrink',
332340
'flex-wrap',
333341
'float',
342+
'flow',
334343
'font',
335344
'font-display',
336345
'font-family',
@@ -342,11 +351,17 @@ export const ATTRIBUTES = [
342351
'font-smoothing',
343352
'font-stretch',
344353
'font-style',
354+
'font-synthesis',
345355
'font-variant',
356+
'font-variant-caps',
357+
'font-variant-east-asian',
346358
'font-variant-ligatures',
359+
'font-variant-numeric',
360+
'font-variant-position',
347361
'font-variation-settings',
348362
'font-weight',
349363
'gap',
364+
'glyph-orientation-vertical',
350365
'grid',
351366
'grid-area',
352367
'grid-auto-columns',
@@ -363,6 +378,7 @@ export const ATTRIBUTES = [
363378
'grid-template-areas',
364379
'grid-template-columns',
365380
'grid-template-rows',
381+
'hanging-punctuation',
366382
'height',
367383
'hyphens',
368384
'icon',
@@ -372,9 +388,11 @@ export const ATTRIBUTES = [
372388
'ime-mode',
373389
'inherit',
374390
'initial',
391+
'isolation',
375392
'justify-content',
376393
'left',
377394
'letter-spacing',
395+
'line-break',
378396
'line-height',
379397
'list-style',
380398
'list-style-image',
@@ -387,10 +405,27 @@ export const ATTRIBUTES = [
387405
'margin-top',
388406
'marks',
389407
'mask',
408+
'mask-border',
409+
'mask-border-mode',
410+
'mask-border-outset',
411+
'mask-border-repeat',
412+
'mask-border-slice',
413+
'mask-border-source',
414+
'mask-border-width',
415+
'mask-clip',
416+
'mask-composite',
417+
'mask-image',
418+
'mask-mode',
419+
'mask-origin',
420+
'mask-position',
421+
'mask-repeat',
422+
'mask-size',
423+
'mask-type',
390424
'max-height',
391425
'max-width',
392426
'min-height',
393427
'min-width',
428+
'mix-blend-mode',
394429
'nav-down',
395430
'nav-index',
396431
'nav-left',
@@ -420,31 +455,77 @@ export const ATTRIBUTES = [
420455
'page-break-after',
421456
'page-break-before',
422457
'page-break-inside',
458+
'pause',
459+
'pause-after',
460+
'pause-before',
423461
'perspective',
424462
'perspective-origin',
425463
'pointer-events',
426464
'position',
427465
'quotes',
428466
'resize',
467+
'rest',
468+
'rest-after',
469+
'rest-before',
470+
'revert',
429471
'right',
430472
'row-gap',
473+
'scroll-margin',
474+
'scroll-margin-block',
475+
'scroll-margin-block-end',
476+
'scroll-margin-block-start',
477+
'scroll-margin-bottom',
478+
'scroll-margin-inline',
479+
'scroll-margin-inline-end',
480+
'scroll-margin-inline-start',
481+
'scroll-margin-left',
482+
'scroll-margin-right',
483+
'scroll-margin-top',
484+
'scroll-padding',
485+
'scroll-padding-block',
486+
'scroll-padding-block-end',
487+
'scroll-padding-block-start',
488+
'scroll-padding-bottom',
489+
'scroll-padding-inline',
490+
'scroll-padding-inline-end',
491+
'scroll-padding-inline-start',
492+
'scroll-padding-left',
493+
'scroll-padding-right',
494+
'scroll-padding-top',
495+
'scroll-snap-align',
496+
'scroll-snap-stop',
497+
'scroll-snap-type',
498+
'shape-image-threshold',
499+
'shape-margin',
500+
'shape-outside',
501+
'speak',
502+
'speak-as',
431503
'src', // @font-face
432504
'tab-size',
433505
'table-layout',
434506
'text-align',
507+
'text-align-all',
435508
'text-align-last',
509+
'text-combine-upright',
436510
'text-decoration',
437511
'text-decoration-color',
438512
'text-decoration-line',
439513
'text-decoration-style',
514+
'text-emphasis',
515+
'text-emphasis-color',
516+
'text-emphasis-position',
517+
'text-emphasis-style',
440518
'text-indent',
519+
'text-justify',
520+
'text-orientation',
441521
'text-overflow',
442522
'text-rendering',
443523
'text-shadow',
444524
'text-transform',
445525
'text-underline-position',
446526
'top',
447527
'transform',
528+
'transform-box',
448529
'transform-origin',
449530
'transform-style',
450531
'transition',
@@ -453,14 +534,25 @@ export const ATTRIBUTES = [
453534
'transition-property',
454535
'transition-timing-function',
455536
'unicode-bidi',
537+
'unset',
456538
'vertical-align',
457539
'visibility',
540+
'voice-balance',
541+
'voice-duration',
542+
'voice-family',
543+
'voice-pitch',
544+
'voice-range',
545+
'voice-rate',
546+
'voice-stress',
547+
'voice-volume',
458548
'white-space',
459549
'widows',
460550
'width',
551+
'will-change',
461552
'word-break',
462553
'word-spacing',
463554
'word-wrap',
555+
'writing-mode',
464556
'z-index'
465557
// reverse makes sure longer attributes `font-weight` are matched fully
466558
// instead of getting false positives on say `font`

0 commit comments

Comments
 (0)