Skip to content

Commit

Permalink
Update CSS property list to August 2023.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Aug 12, 2023
1 parent cf4efe9 commit 373a421
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 19 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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 June 2023 snapshot.
* [CSS Style Sheet](tools/lang/CSS.css), up to August 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
33 changes: 19 additions & 14 deletions src/EditLexers/stlCSS.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
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-composition animation-delay animation-direction animation-duration animation-fill-mode "
"animation-iteration-count animation-name animation-play-state animation-range animation-range-end animation-range-start "
"accent-color additive-symbols align-content align-items align-self alignment-baseline all "
"anchor-default anchor-name anchor-scroll animation animation-composition "
"animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name "
"animation-play-state animation-range animation-range-end animation-range-start "
"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 "
Expand Down Expand Up @@ -82,7 +83,7 @@ static KEYWORDLIST Keywords_CSS = {{
"padding-inline padding-inline-end padding-inline-start padding-left padding-right padding-top "
"page page-break-after page-break-before page-break-inside page-orientation pause pause-after pause-before "
"perspective perspective-origin pitch pitch-range place-content place-items place-self play-during "
"pointer pointer-events position "
"pointer pointer-events position position-fallback position-fallback-bounds "
"prefers-color-scheme prefers-contrast prefers-reduced-data prefers-reduced-motion prefers-reduced-transparency prefix "
"presentation-level print-color-adjust "
"quotes "
Expand Down Expand Up @@ -131,8 +132,9 @@ static KEYWORDLIST Keywords_CSS = {{
"character-variant charset color-profile container counter-style custom-media debug document "
"each else elseif end error extend font-face font-feature-values font-palette-values for forward function "
"historical-forms if import include keyframes layer left-bottom left-middle left-top media mixin namespace nest "
"ornaments page plugin property return right-bottom right-middle right-top scope styleset stylistic supports swash "
"top-center top-left top-left-corner top-right top-right-corner use viewport warn when while "
"ornaments page plugin position-fallback property return right-bottom right-middle right-top "
"scope styleset stylistic supports swash top-center top-left top-left-corner top-right top-right-corner try use viewport "
"warn when while "

, // 2 pseudo classes
"^-moz- ^-ms- ^-o- ^-webkit- active after any-link autofill before blank buffering checked closed current current( "
Expand Down Expand Up @@ -179,8 +181,9 @@ static KEYWORDLIST Keywords_CSS = {{
"LinkText Mark MarkText NaN VisitedText "
"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( at atan( atan2( attr( "
"audio aural auto auto( auto-flow average( avoid avoid-column avoid-flex avoid-line avoid-page avoid-region "
"always anchor( anchor-size( and annotation( anywhere append( arcs argb( arguments armenian as asin( "
"at atan( atan2( attr( audio aural auto auto( auto-flow auto-same "
"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 "
"braille break break-all break-spaces break-word brightness( browser bullets butt button "
Expand Down Expand Up @@ -210,8 +213,9 @@ 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-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 "
"image( image-height( image-set( image-size( image-width( implicit 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 "
Expand Down Expand Up @@ -247,10 +251,11 @@ static KEYWORDLIST Keywords_CSS = {{
"ruby ruby-base ruby-base-container ruby-text ruby-text-container run-in running( "
"s-resize sRGB safe same sans-serif saturate( saturation saturation( "
"scale( scale-down scale3d( scaleX( scaleY( scaleZ( screen screen( scroll scroll( scroll-position se-resize searchfield "
"select( selector selector( self-end self-start semi-condensed semi-expanded separate separator( sepia( serif sesame "
"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 "
"select( selector selector( self-block self-end self-inline self-start semi-condensed semi-expanded "
"separate separator( sepia( serif sesame 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-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 "
Expand Down
23 changes: 19 additions & 4 deletions tools/lang/CSS.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 2023 https://www.w3.org/TR/CSS/ 14 February 2023
// 2023-06-17 https://drafts.csswg.org/
// 2023-08-12 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,6 +10,21 @@
// https://www.w3.org/TR/css-syntax-3/ 24 December 2021
!important

// CSS Anchor Positioning https://www.w3.org/TR/css-anchor-position-1/ 29 June 2023
{
anchor-name:;
anchor-default: implicit;
anchor-scroll: none | default;
position-fallback: none;
position-fallback-bounds: normal;
}
anchor()
auto auto-same top left right bottom start end self-start self-end center
anchor-size()
width height block inline self-block self-inline
@position-fallback {}
@try {}

// CSS Animations Level 2 https://www.w3.org/TR/css-animations-2/ 2 June 2023
// CSS Animations Level 1 https://www.w3.org/TR/css-animations-1/ 2 March 2023
@keyframes
Expand Down Expand Up @@ -1170,7 +1185,7 @@ view()
chains: none;
}

// CSS Text Module Level 4 https://www.w3.org/TR/css-text-4/ 1 March 2023
// CSS Text Module Level 4 https://www.w3.org/TR/css-text-4/ 29 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
{
Expand Down Expand Up @@ -1280,7 +1295,7 @@ pow() sqrt() hypot() log() exp()
abs() sign()
pi infinity NaN

// CSS View Transitions Module Level 1 https://www.w3.org/TR/css-view-transitions-1/ 30 May 2023
// CSS View Transitions Module Level 1 https://www.w3.org/TR/css-view-transitions-1/ 3 August 2023
{
view-transition-name: none;
}
Expand Down Expand Up @@ -1373,7 +1388,7 @@ aural speech
speak-header: once | always;
}

// Compatibility https://compat.spec.whatwg.org/ 18 May 2023
// Compatibility https://compat.spec.whatwg.org/ 19 June 2023
{
touch-action: auto | none | pan-x | pan-left | pan-right | pan-y | pan-up | pan-down | pinch-zoom | manipulation;
}
Expand Down

0 comments on commit 373a421

Please sign in to comment.