Skip to content

Commit

Permalink
Update CSS property list to March 2023 snapshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Mar 18, 2023
1 parent 6191e8b commit d442953
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 37 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Latest development builds (artifacts in Release configuration for each compiler
* Objective-C/C++, [Screenshots](https://github.com/zufuliu/notepad2/wiki/Screenshots#objective-cc)
* [C Standard Library](tools/lang/C.c), up to C2x.
* [C++ STL](tools/lang/CPP.cpp), up to C++20.
* [CSS Style Sheet](tools/lang/CSS.css), up to 2022 snapshot.
* [CSS Style Sheet](tools/lang/CSS.css), up to March 2023 snapshot.
* [SCSS Style Sheet](tools/lang/SCSS.scss), up to Dart Sass 1.50.
* [Less Style Sheet](tools/lang/Less.less), up to Less 4.1.
* [HSS Style Sheet](tools/lang/HSS.hss)
Expand Down
38 changes: 19 additions & 19 deletions src/EditLexers/stlCSS.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ static KEYWORDLIST Keywords_CSS = {{
//++Autogenerated -- start of section automatically generated
"^-- ^-moz- ^-ms- ^-o- ^-webkit- "
"accent-color additive-symbols align-content align-items align-self alignment-baseline all animation "
"animation-delay animation-delay-end animation-delay-start animation-direction animation-duration animation-fill-mode "
"animation-iteration-count animation-name animation-play-state animation-range animation-timing-function "
"any-hover any-pointer appearance ascent-override aspect-ratio azimuth "
"animation-composition animation-delay animation-delay-end animation-delay-start animation-direction animation-duration "
"animation-fill-mode animation-iteration-count animation-name animation-play-state animation-range "
"animation-timeline animation-timing-function any-hover any-pointer appearance ascent-override aspect-ratio azimuth "
"backdrop-filter backface-visibility background background-attachment background-blend-mode "
"background-clip background-color background-image background-origin background-position background-repeat "
"background-size base-palette baseline-shift baseline-source "
Expand Down Expand Up @@ -105,13 +105,13 @@ static KEYWORDLIST Keywords_CSS = {{
"stroke-repeat stroke-size stroke-width "
"subscript-position-override subscript-size-override suffix superscript-position-override superscript-size-override "
"symbols syntax system "
"tab-size table-layout text-align text-align-all text-align-last text-combine-upright text-decoration "
"tab-size table-layout text-align text-align-all text-align-last text-autospace text-combine-upright text-decoration "
"text-decoration-color text-decoration-line text-decoration-skip text-decoration-skip-box "
"text-decoration-skip-ink text-decoration-skip-inset text-decoration-skip-self text-decoration-skip-spaces "
"text-decoration-style text-decoration-thickness "
"text-edge text-emphasis text-emphasis-color text-emphasis-position text-emphasis-skip text-emphasis-style "
"text-group-align text-indent text-justify text-orientation text-overflow text-rendering "
"text-shadow text-size-adjust text-space-collapse text-space-trim text-spacing text-transform "
"text-shadow text-size-adjust text-space-collapse text-space-trim text-spacing text-spacing-trim text-transform "
"text-underline-offset text-underline-position text-wrap top touch-action "
"transform transform-box transform-origin transform-style "
"transition transition-delay transition-duration transition-property transition-timing-function translate "
Expand Down Expand Up @@ -174,9 +174,9 @@ static KEYWORDLIST Keywords_CSS = {{
, // 5 values
"ActiveText ButtonBorder ButtonFace ButtonText CSS( Canvas CanvasText Field FieldText GrayText Highlight HighlightText "
"LinkText Mark MarkText NaN VisitedText "
"above abs( absolute absolute-colorimetric acos( add additive adjust( alias "
"above abs( absolute absolute-colorimetric accumulate acos( add additive adjust( alias "
"all-petite-caps all-scroll all-small-caps allow-end alpha alpha( alphabetic alphamix( alternate alternate-reverse "
"always and annotation( anywhere append( arcs argb( arguments armenian as asin( atan( atan2( attr( "
"always and annotation( anywhere append( arcs argb( arguments armenian as asin( at atan( atan2( attr( "
"audio aural auto auto( auto-flow average( avoid avoid-column avoid-flex avoid-line avoid-page avoid-region "
"back backwards balance balance-all bar baseline behind below bevel bidi-override bitmap "
"blackness( blink block block-end block-start blue( blur( bold bolder boolean( border-box both both-edges bounding-box "
Expand All @@ -187,7 +187,7 @@ static KEYWORDLIST Keywords_CSS = {{
"color( color-CBDT color-COLRv0 color-COLRv1 color-SVG color-burn color-contrast( color-dodge color-mix( color-sbix "
"column column-reverse common-ligatures compact compatible( complement( compress "
"condensed conic-gradient( content( content-box content-exists( context-menu contextual continuous contrast( convert( "
"copy cos( counter( counters( cover create crisp-edges crop cross crosshair css "
"copy cos( counter( counters( cover create crisp-edges crop cross cross-fade( crosshair css "
"cubic-bezier( currentColor cursive custom cyclic "
"dark darken darken( dashed dashes data-uri( "
"decimal decimal-leading-zero deep-merge( deep-remove( default( dense desaturate( device-cmyk( "
Expand All @@ -207,11 +207,11 @@ static KEYWORDLIST Keywords_CSS = {{
"horizontal horizontal-tb hsl( hsla( hss-height hss-width hsv( hsva( hsvhue( hsvsaturation( hsvvalue( "
"hue hue( hue-rotate( hwb( hypot( "
"ic-height ic-width icon ideograph-alpha ideograph-numeric ideographic ideographic-ink ideographic-space ie-hex-str( if( "
"image( image-height( image-size( image-width( important in increment incremental index( infinite infinity inherit "
"initial initial-only inline inline-block inline-end inline-flex inline-grid inline-start inline-table inner "
"insert( inset( inside inspect( int( inter-character inter-word interactive interlace intersect invert invert( inverted "
"is-bracketed( is-superselector( is-unitless( iscolor( isdefined( isem( iskeyword( isnumber( isolate isolate-override "
"ispercentage( ispixel( isruleset( isstring( isunit( isurl( italic "
"image( image-height( image-set( image-size( image-width( important in increment incremental index( infinite infinity "
"inherit initial initial-only inline inline-block inline-end inline-flex inline-grid inline-start inline-table inner "
"insert insert( inset( inside inspect( int( inter-character inter-word interactive interlace intersect "
"invert invert( inverted is-bracketed( is-superselector( is-unitless( iscolor( isdefined( isem( iskeyword( isnumber( "
"isolate isolate-override ispercentage( ispixel( isruleset( isstring( isunit( isurl( italic "
"jis04 jis78 jis90 join( jump-both jump-end jump-none jump-start justify justify-all keep keep-all keys( keywords( "
"lab( landscape large larger last last-baseline layer( layout lch( "
"leader( leading left-side leftwards legacy length( less level light lighten lighten( lighter lightness( "
Expand All @@ -224,7 +224,7 @@ static KEYWORDLIST Keywords_CSS = {{
"min( min-color-index min-content min-monochrome minimal-ui minimum minmax( miter miter-clip "
"mix mix( mixed mixin-exists( mod( moderate module-functions( module-variables( monospace more move "
"multiple multiply multiply( "
"n-resize name( narrow ne-resize nearest negation( nest( nesw-resize neutral never nherit "
"n-resize name( narrow ne-resize nearest negation( nest( nesw-resize neutral never nherit no-autospace "
"no-clip no-close-quote no-common-ligatures no-compress no-contextual no-discretionary-ligatures no-drop "
"no-historical-ligature no-limit no-open-quote no-preference no-punctuation no-repeat nonzero normal not not-allowed "
"nowrap ns-resize nth( null numbers numeric nw-resize nwse-resize "
Expand All @@ -238,8 +238,8 @@ static KEYWORDLIST Keywords_CSS = {{
"quote( "
"radial-gradient( radio raise random( range( ray( rec2020 rect rect( red( reduce reduced reference "
"relative relative-colorimetric rem( remove( "
"repeat repeat-x repeat-y repeating-linear-gradient( repeating-radial-gradient( replace( reverse revert revert-layer "
"rgb( rgba( ridge right-side rightwards "
"repeat repeat-x repeat-y repeating-conic-gradient( repeating-linear-gradient( repeating-radial-gradient( "
"replace replace( reverse revert revert-layer rgb( rgba( ridge right-side rightwards "
"rotate( rotate-left rotate-right rotate3d( rotateX( rotateY( rotateZ( round round( row row-resize row-reverse rtl "
"ruby ruby-base ruby-base-container ruby-text ruby-text-container run-in running( "
"s-resize sRGB safe same sans-serif saturate( saturation saturation( "
Expand All @@ -248,16 +248,16 @@ static KEYWORDLIST Keywords_CSS = {{
"set( set-nth( shade( show sideways sideways-lr sideways-rl sign( silent simple-selectors( simplified sin( size( "
"skew( skewX( skewY( slash( slashed-zero slice slice( slider-horizontal slow slower "
"small small-caps small-caption smaller smooth snap snap-block snap-inline soft soft-light softlight( solid "
"space space-adjacent space-around space-between space-end space-evenly space-first space-start spaces span "
"space space-adjacent space-all space-around space-between space-end space-evenly space-first space-start spaces span "
"speech spell-out spin( spread sqrt( square square-button srgb "
"stable stacked-fractions standalone standard start state static status-bar step-end step-start steps( sticky "
"stretch strict string string( stroke-box strong stupid style style( styleset( stylistic( "
"stretch strict string string( stripes( stroke-box strong stupid style style( styleset( stylistic( "
"sub subgrid subtract subtractive super supports( svg svg-gradient( sw-resize swap swash( symbolic symbols( system-ui "
"table table-caption table-cell table-column table-column-group table-footer-group table-header-group "
"table-row table-row-group tabular-nums tactile tan( target-counter( target-counters( target-text( "
"techn( text text-bottom text-top textarea textfield thick thin through tint( titling-caps "
"to to-lower-case( to-upper-case( traditional translate( translate3d( translateX( translateY( translateZ( "
"triangle trim-adjacent trim-end trim-inner trim-start true truetype tty tv type( type-of( "
"triangle trim-adjacent trim-auto trim-end trim-inner trim-start true truetype tty tv type( type-of( "
"ui-monospace ui-rounded ui-sans-serif ui-serif ultra-condensed ultra-expanded "
"under underline underscore unicase unicode unify( unique-id( unit( unquote( unsafe unset "
"up upper-alpha upper-latin upper-roman uppercase upright url( "
Expand Down
48 changes: 31 additions & 17 deletions tools/lang/CSS.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 2022 https://www.w3.org/TR/CSS/
// 2023-01-07 https://drafts.csswg.org/
// 2023 https://www.w3.org/TR/CSS/ 14 February 2023
// 2023-03-18 https://drafts.csswg.org/
// https://github.com/w3c/csswg-drafts/
// https://www.w3.org/Style/CSS/all-properties
// https://www.w3.org/Style/CSS/all-descriptors
Expand All @@ -10,22 +10,25 @@
// https://www.w3.org/TR/css-syntax-3/ 24 December 2021
!important

// CSS Animations Level 1 https://www.w3.org/TR/css-animations-1/ 11 October 2018
// CSS Animations Level 2 https://www.w3.org/TR/css-animations-2/ 2 March 2023
// CSS Animations Level 1 https://www.w3.org/TR/css-animations-1/ 2 March 2023
@keyframes
from to
{
animation-name: none;
animation-duration:;
animation-duration: ease;
animation-timing-function:;
animation-iteration-count:;
animation-direction: normal | reverse | alternate | alternate-reverse;
animation-play-state: running | paused;
animation-delay:;
animation-fill-mode: none | forwards | backwards | both;
animation-composition: replace | add | accumulate;
animation-timeline: auto | none | scroll() | view();
animation:;
}

// CSS Backgrounds and Borders Module Level 3 https://www.w3.org/TR/css-backgrounds-3/ 26 July 2021
// CSS Backgrounds and Borders Module Level 3 https://www.w3.org/TR/css-backgrounds-3/ 14 February 2023
// Box model https://www.w3.org/TR/CSS22/box.html
{
background-color: transparent;
Expand Down Expand Up @@ -110,7 +113,7 @@ from to
}

// CSS Box Model Module Level 4 https://www.w3.org/TR/css-box-4/ 3 November 2022
// CSS Box Model Module Level 3 https://www.w3.org/TR/css-box-3/ 3 November 2022
// CSS Box Model Module Level 3 https://www.w3.org/TR/css-box-3/ 16 February 2023
// Box model https://www.w3.org/TR/CSS22/box.html
{
margin-top: auto;
Expand All @@ -127,7 +130,7 @@ from to
padding: inherit;
}

// CSS Box Alignment Module Level 3 https://www.w3.org/TR/css-align-3/ 24 December 2021
// CSS Box Alignment Module Level 3 https://www.w3.org/TR/css-align-3/ 17 February 2023
{
align-content: normal | first | last | baseline | space-between | space-around | space-evenly | stretch | unsafe | safe | center | start | end | flex-start | flex-end;
justify-content: normal | space-between | space-around | space-evenly | stretch | unsafe | safe | center | start | end | flex-start | flex-end | left | right;
Expand All @@ -148,9 +151,9 @@ from to
place-items:;
row-gap: normal;
grid-row-gap: normal;
gap:;
column-gap: normal;
grid-column-gap: normal;
gap:;
grid-gap:;
}

Expand Down Expand Up @@ -306,7 +309,7 @@ var()
visibility: visible | hidden | collapse;
}

// CSS Easing Functions Level 1 https://www.w3.org/TR/css-easing-1/ 1 April 2021
// CSS Easing Functions Level 1 https://www.w3.org/TR/css-easing-1/ 13 February 2023
linear ease ease-in ease-out ease-in-out cubic-bezier()
step-start step-end steps()

Expand Down Expand Up @@ -500,9 +503,17 @@ override-colors:;
grid-area: auto;
}

// CSS Images Module Level 4 https://www.w3.org/TR/css-images-4/ 7 March 2023
// CSS Images Module Level 3 https://www.w3.org/TR/css-images-3/ 17 December 2020
{
background-image: url(), linear-gradient(), radial-gradient(), repeating-linear-gradient(), repeating-radial-gradient();
url() image-set() type()
image() ltr rtl
cross-fade() element()
linear-gradient() to left right top bottom
radial-gradient() at
conic-gradient() from at
stripes()
{
background-image: repeating-linear-gradient(), repeating-radial-gradient(), repeating-conic-gradient();
object-fit: fill | contain | cover | none | scale-down;
object-position:;
image-orientation: from-image | none | flip;
Expand Down Expand Up @@ -749,7 +760,8 @@ all continuous paged visual audio speech tactile grid bitmap interactive static
// CSS Namespaces Module Level 3 https://www.w3.org/TR/css3-namespace/ 20 March 2014
@namespace ;

// CSS Nesting Module https://www.w3.org/TR/css-nesting-1/ 31 August 2021
// CSS Nesting Module https://www.w3.org/TR/css-nesting-1/ 14 February 2023
@scope {}
@nest {}

// CSS Overflow Module Level 4 https://www.w3.org/TR/css-overflow-4/ 31 December 2022
Expand Down Expand Up @@ -828,7 +840,7 @@ all continuous paged visual audio speech tactile grid bitmap interactive static
page-orientation: upright | rotate-left | rotate-right;
}

// CSS Positioned Layout Module Level 3 https://www.w3.org/TR/css-position-3/ 1 September 2022
// CSS Positioned Layout Module Level 3 https://www.w3.org/TR/css-position-3/ 17 February 2023
{
position: static | relative | absolute | sticky | fixed;
top: auto;
Expand Down Expand Up @@ -1097,7 +1109,7 @@ view()
spatial-navigation-function: normal | grid;
}

// CSS Speech Module https://www.w3.org/TR/css-speech-1/ 10 March 2020
// CSS Speech Module https://www.w3.org/TR/css-speech-1/ 14 February 2023
{
voice-volume: silent | x-soft | soft | medium | loud | x-loud;
voice-balance: left | center | right | leftwards | rightwards;
Expand Down Expand Up @@ -1143,8 +1155,8 @@ view()
chains: none;
}

// CSS Text Module Level 4 https://www.w3.org/TR/css-text-4/ 31 December 2022
// CSS Text Module Level 3 https://www.w3.org/TR/css-text-3/ 5 May 2022
// CSS Text Module Level 4 https://www.w3.org/TR/css-text-4/ 1 March 2023
// CSS Text Module Level 3 https://www.w3.org/TR/css-text-3/ 13 February 2023
// Text https://www.w3.org/TR/CSS22/text.html
{
text-transform: none | capitalize | uppercase | lowercase | full-width | full-size-kana;
Expand All @@ -1171,11 +1183,13 @@ view()
text-align: start | end | left | right | center | justify | match-parent | justify-all;
text-align-all: start | end | left | right | center | justify | match-parent;
text-align-last: auto | start | end | left | right | center | justify | match-parent;
text-justify: auto | none | inter-word | inter-character;
text-justify: auto | none | inter-word | inter-character | no-compress;
text-group-align: none | start | end | left | right | center;
word-spacing: normal;
letter-spacing: normal;
line-padding:;
text-autospace: normal | no-autospace | ideograph-alpha | ideograph-numeric | punctuation | insert | replace;
text-spacing-trim: auto | space-all | trim-auto | allow-end | space-first;
text-spacing: normal | none | no-compress | trim-start | space-start | space-first | trim-end | space-end | allow-end | trim-adjacent | space-adjacent | ideograph-alpha | ideograph-numeric | punctuation;
text-indent: hanging | each-line;
hanging-punctuation: none | first | force-end | allow-end | last;
Expand Down

0 comments on commit d442953

Please sign in to comment.