Skip to content

Commit 010e4e2

Browse files
committed
Add new CSS properties
1 parent c8ce4ed commit 010e4e2

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Sanitize itself has no breaking API changes in this release, but the major versi
88

99
### Added
1010

11+
- Added over 100 new CSS properties to the relaxed config, representing all properties that are listed with a status of "Working Draft" or better in the latest [W3C "All Properties" list](https://www.w3.org/Style/CSS/all-properties.en.html).
12+
1113
- Added the `-webkit-text-fill-color` CSS property to the relaxed config. [@radar - #244](https://github.com/rgrove/sanitize/pull/244)
1214

1315
### Changed

lib/sanitize/config/relaxed.rb

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,26 +348,37 @@ module Config
348348
-webkit-user-drag
349349
-webkit-wrap-flow
350350
-webkit-wrap-through
351+
accent-color
351352
align-content
352353
align-items
353354
align-self
354355
alignment-adjust
355356
alignment-baseline
356357
all
357358
anchor-point
359+
anchor-name
360+
anchor-scope
358361
animation
362+
animation-composition
359363
animation-delay
360364
animation-direction
361365
animation-duration
362366
animation-fill-mode
363367
animation-iteration-count
364368
animation-name
365369
animation-play-state
370+
animation-range
371+
animation-range-end
372+
animation-range-start
373+
animation-timeline
366374
animation-timing-function
375+
appearance
376+
aspect-ratio
367377
azimuth
368378
backface-visibility
369379
background
370380
background-attachment
381+
background-blend-mode
371382
background-clip
372383
background-color
373384
background-image
@@ -378,24 +389,54 @@ module Config
378389
baseline-shift
379390
binding
380391
bleed
392+
baseline-source
393+
block-ellipsis
394+
block-size
381395
bookmark-label
382396
bookmark-level
383397
bookmark-state
384398
border
399+
border-block
400+
border-block-color
401+
border-block-end
402+
border-block-end-color
403+
border-block-end-style
404+
border-block-end-width
405+
border-block-start
406+
border-block-start-color
407+
border-block-start-style
408+
border-block-start-width
409+
border-block-style
410+
border-block-width
385411
border-bottom
386412
border-bottom-color
387413
border-bottom-left-radius
388414
border-bottom-right-radius
389415
border-bottom-style
390416
border-bottom-width
417+
border-boundary
391418
border-collapse
392419
border-color
420+
border-end-end-radius
421+
border-end-start-radius
393422
border-image
394423
border-image-outset
395424
border-image-repeat
396425
border-image-slice
397426
border-image-source
398427
border-image-width
428+
border-inline
429+
border-inline-color
430+
border-inline-end
431+
border-inline-end-color
432+
border-inline-end-style
433+
border-inline-end-width
434+
border-inline-start
435+
border-inline-start-color
436+
border-inline-start-style
437+
border-inline-start-width
438+
border-inline-style
439+
border-inline-width
399440
border-left
400441
border-left-color
401442
border-left-style
@@ -406,6 +447,8 @@ module Config
406447
border-right-style
407448
border-right-width
408449
border-spacing
450+
border-start-end-radius
451+
border-start-start-radius
409452
border-style
410453
border-top
411454
border-top-color
@@ -425,15 +468,20 @@ module Config
425468
break-inside
426469
caption-side
427470
chains
471+
caret
472+
caret-color
473+
caret-shape
428474
clear
429475
clip
430476
clip-path
431477
clip-rule
432478
color
433479
color-interpolation
480+
color-adjust
434481
color-interpolation-filters
435482
color-profile
436483
color-rendering
484+
color-scheme
437485
column-count
438486
column-fill
439487
column-gap
@@ -445,7 +493,17 @@ module Config
445493
column-width
446494
columns
447495
contain
496+
contain-intrinsic-block-size
497+
contain-intrinsic-height
498+
contain-intrinsic-inline-size
499+
contain-intrinsic-size
500+
contain-intrinsic-width
501+
container
502+
container-name
503+
container-type
448504
content
505+
content-visibility
506+
continue
449507
counter-increment
450508
counter-reset
451509
counter-set
@@ -485,20 +543,33 @@ module Config
485543
font-feature-settings
486544
font-kerning
487545
font-language-override
546+
font-optical-sizing
547+
font-palette
488548
font-size
489549
font-size-adjust
490550
font-stretch
491551
font-style
492552
font-synthesis
553+
font-synthesis-position
554+
font-synthesis-small-caps
555+
font-synthesis-style
556+
font-synthesis-weight
493557
font-variant
494558
font-variant-alternates
495559
font-variant-caps
496560
font-variant-east-asian
561+
font-variant-emoji
497562
font-variant-ligatures
498563
font-variant-numeric
499564
font-variant-position
565+
font-variation-settings
500566
font-weight
501567
glyph-orientation-horizontal
568+
font-width
569+
footnote-display
570+
footnote-policy
571+
forced-color-adjust
572+
gap
502573
glyph-orientation-vertical
503574
grid
504575
grid-area
@@ -657,22 +728,33 @@ module Config
657728
tab-size
658729
table-layout
659730
text-align
731+
text-align-all
660732
text-align-last
661733
text-anchor
662734
text-combine-horizontal
735+
text-autospace
736+
text-box
737+
text-box-edge
738+
text-box-trim
663739
text-combine-upright
664740
text-decoration
665741
text-decoration-color
666742
text-decoration-line
667743
text-decoration-skip
744+
text-decoration-skip-box
668745
text-decoration-skip-ink
746+
text-decoration-skip-inset
747+
text-decoration-skip-self
748+
text-decoration-skip-spaces
669749
text-decoration-style
670750
text-decoration-thickness
671751
text-emphasis
672752
text-emphasis-color
673753
text-emphasis-position
754+
text-emphasis-skip
674755
text-emphasis-style
675756
text-height
757+
text-group-align
676758
text-indent
677759
text-justify
678760
text-orientation
@@ -681,22 +763,38 @@ module Config
681763
text-shadow
682764
text-size-adjust
683765
text-space-collapse
766+
text-spacing
767+
text-spacing-trim
684768
text-transform
769+
text-underline-offset
685770
text-underline-position
686771
text-wrap
772+
text-wrap-mode
773+
text-wrap-style
774+
timeline-scope
687775
top
688776
touch-action
689777
transform
778+
transform-box
690779
transform-origin
691780
transform-style
692781
transition
693782
transition-delay
694783
transition-duration
695784
transition-property
696785
transition-timing-function
786+
translate
697787
unicode-bidi
698788
unicode-range
789+
user-select
699790
vertical-align
791+
view-timeline
792+
view-timeline-axis
793+
view-timeline-inset
794+
view-timeline-name
795+
view-transition-class
796+
view-transition-group
797+
view-transition-name
700798
visibility
701799
voice-balance
702800
voice-duration
@@ -708,13 +806,19 @@ module Config
708806
voice-volume
709807
volume
710808
white-space
809+
white-space-collapse
810+
white-space-trim
711811
widows
712812
width
713813
will-change
714814
word-break
815+
word-space-transform
715816
word-spacing
716817
word-wrap
818+
wrap-after
819+
wrap-before
717820
wrap-flow
821+
wrap-inside
718822
wrap-through
719823
writing-mode
720824
z-index

0 commit comments

Comments
 (0)