@@ -394,22 +394,26 @@ for (let i in characters) {
394
394
let item = index[characters[i]][j];
395
395
396
396
switch (item .label ) {
397
+ // Add alternate name for pseudo-elements (one colon)
397
398
case " ::after" :
398
399
case " ::before" :
399
400
case " ::first-letter" :
400
401
case " ::first-line" :
401
402
item .label += ` (${ item .label .replace (/ ^ :/ , " " )} )` ;
402
403
break ;
403
404
405
+ // Font-feature-values
404
406
case " @annotation" :
405
407
case " @character-variant" :
408
+ case " @historical-forms" :
406
409
case " @ornaments" :
407
410
case " @styleset" :
408
411
case " @stylistic" :
409
412
case " @swash" :
410
413
item .urlPath = ` @font-feature-values#${ item .label } ` ;
411
414
break ;
412
415
416
+ // Font-variant-alternates
413
417
case " annotation()" :
414
418
case " character-variant()" :
415
419
case " ornaments()" :
@@ -419,18 +423,17 @@ for (let i in characters) {
419
423
item .urlPath = ` font-variant-alternates#${ item .label } ` ;
420
424
break ;
421
425
422
- case " format()" :
423
- item .urlPath = " @font-face/src#format()" ;
424
- break ;
425
426
427
+ // Image
426
428
case " image()" :
427
429
item .urlPath = " image#The_image()_functional_notation" ;
428
430
break ;
429
-
430
- case " url ()" :
431
- item .urlPath = " url#The_url()_functional_notation " ;
431
+ case " image-set() " :
432
+ case " paint ()" :
433
+ item .urlPath = ` image/ ${ item . label . replace ( " () " , " " ) } ` ;
432
434
break ;
433
435
436
+ // Filter
434
437
case " blur()" :
435
438
case " brightness()" :
436
439
case " contrast()" :
@@ -444,6 +447,7 @@ for (let i in characters) {
444
447
item .urlPath = ` filter-function/${ item .label .replace (" ()" , " " )} ` ;
445
448
break ;
446
449
450
+ // Transforms
447
451
case " matrix()" :
448
452
case " matrix3d()" :
449
453
case " perspective()" :
@@ -468,24 +472,46 @@ for (let i in characters) {
468
472
item .urlPath = ` transform-function/${ item .label .replace (" ()" , " " )} ` ;
469
473
break ;
470
474
475
+ // Colors
476
+ case " rgba()" : // Still valid but alternative name for rgb()
477
+ item .urlPath = " color_value/rgb" ;
478
+ break ;
479
+ case " hsla()" : // Still valid but alternative name for hsl()
480
+ item .urlPath = " color_value/hsl" ;
481
+ break ;
471
482
case " rgb()" :
472
- case " rgba()" :
473
483
case " hsl()" :
474
- case " hsla()" :
475
- item .urlPath = ` color_value#${ item .label } ` ;
484
+ case " hwb()" :
485
+ case " lab()" :
486
+ case " lch()" :
487
+ case " light-dark()" :
488
+ case " oklab()" :
489
+ case " oklch()" :
490
+ item .urlPath = ` color_value/${ item .label .replace (" ()" , " " )} ` ;
491
+ break ;
492
+
493
+ // Gradients
494
+ case " conic-gradient()" :
495
+ case " linear-gradient()" :
496
+ case " radial-gradient()" :
497
+ case " repeating-conic-gradient()" :
498
+ case " repeating-linear-gradient()" :
499
+ case " repeating-radial-gradient()" :
500
+ item .urlPath = ` gradient/${ item .label .replace (" ()" , " " )} ` ;
476
501
break ;
477
502
503
+ // Shapes
478
504
case " inset()" :
479
505
case " polygon()" :
480
506
case " circle()" :
481
507
case " ellipse()" :
482
508
item .urlPath = ` basic-shape#${ item .label } ` ;
483
509
break ;
484
-
485
510
case " rect()" :
486
511
item .urlPath = ` shape#${ item .label } ` ;
487
512
break ;
488
513
514
+ // @page
489
515
case " @top-left-corner" :
490
516
case " @top-left" :
491
517
case " @top-center" :
@@ -505,10 +531,37 @@ for (let i in characters) {
505
531
item .urlPath = " @page#page-margin-box-type" ;
506
532
break ;
507
533
534
+ // Easing functions
508
535
case " cubic-bezier()" :
509
- case " frames()" :
536
+ item .urlPath = " easing-function#cubic_bézier_easing_function" ;
537
+ break ;
538
+ case " linear()" :
539
+ item .urlPath = " easing-function#linear_easing_function" ;
540
+ break ;
510
541
case " steps()" :
511
- item .urlPath = ` single-transition-timing-function#${ item .label } ` ;
542
+ item .urlPath = ` easing-function#steps_easing_function` ;
543
+ break ;
544
+
545
+ // Alternate name
546
+ case " word-wrap" :
547
+ item .urlPath = " overflow-wrap" ;
548
+ break ;
549
+ case " line-clamp" : // Nobody implements it under this name
550
+ item .urlPath = " -webkit-line-clamp"
551
+ break ;
552
+
553
+ // Misc
554
+ case " view()" :
555
+ item .urlPath = " animation-timeline/view" ;
556
+ break ;
557
+ case " :host()" :
558
+ item .urlPath = " :host_function"
559
+ break ;
560
+ case " format()" :
561
+ item .urlPath = " @font-face/src#format()" ;
562
+ break ;
563
+ case " url()" :
564
+ item .urlPath = " url#The_url()_functional_notation" ;
512
565
break ;
513
566
}
514
567
}
0 commit comments