Skip to content

Commit

Permalink
Update CSS property list to January 2025.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jan 19, 2025
1 parent eac5008 commit 78a4cbc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Latest development builds (artifacts in Release configuration for each compiler
* [C Standard Library](tools/lang/C.c), up to C23.
* [C++ STL](tools/lang/CPP.cpp), up to C++23.
* [Cangjie (仓颉)](tools/lang/Cangjie.cj), up to October 2024.
* [CSS Style Sheet](tools/lang/CSS.css), up to November 2024.
* [CSS Style Sheet](tools/lang/CSS.css), up to January 2025.
* [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
25 changes: 13 additions & 12 deletions src/EditLexers/stlCSS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static KEYWORDLIST Keywords_CSS = {{
"contain-intrinsic-size contain-intrinsic-width container container-name container-type content content-visibility "
"continue counter-increment counter-reset counter-set cue cue-after cue-before cursor "
"descent-override device-aspect-ratio device-height device-width direction display display-mode dominant-baseline "
"dynamic-range "
"dynamic-range dynamic-range-limit "
"elevation empty-cells environment-blending "
"fallback field-sizing "
"fill fill-break fill-color fill-image fill-opacity fill-origin fill-position fill-repeat fill-rule fill-size filter "
Expand Down Expand Up @@ -89,12 +89,12 @@ static KEYWORDLIST Keywords_CSS = {{
"prefers-color-scheme prefers-contrast prefers-reduced-data prefers-reduced-motion prefers-reduced-transparency prefix "
"presentation-level print-color-adjust "
"quotes "
"range region-fragment rendering-intent resize resolution rest rest-after rest-before richness right rotate row-gap "
"ruby-align ruby-merge ruby-overhang ruby-position running "
"range reading-flow region-fragment rendering-intent resize resolution rest rest-after rest-before richness right "
"rotate row-gap ruby-align ruby-merge ruby-overhang ruby-position running "
"scale scan scripting scroll-behavior scroll-margin "
"scroll-margin-block scroll-margin-block-end scroll-margin-block-start scroll-margin-bottom "
"scroll-margin-inline scroll-margin-inline-end scroll-margin-inline-start scroll-margin-left scroll-margin-right "
"scroll-margin-top scroll-padding "
"scroll-margin-top scroll-marker-group scroll-padding "
"scroll-padding-block scroll-padding-block-end scroll-padding-block-start scroll-padding-bottom "
"scroll-padding-inline scroll-padding-inline-end scroll-padding-inline-start scroll-padding-left scroll-padding-right "
"scroll-padding-top scroll-snap-align scroll-snap-stop scroll-snap-type scroll-start-target "
Expand Down Expand Up @@ -149,13 +149,14 @@ static KEYWORDLIST Keywords_CSS = {{
"not( nth-child( nth-col( nth-last-child( nth-last-col( nth-last-of-type( nth-of-type( "
"only-child only-of-type open optional out-of-range past paused picture-in-picture placeholder-shown playing "
"read-only read-write recto required right root "
"scope scope-context( seeking snapped snapped-block snapped-inline snapped-x snapped-y stalled target target-within "
"user-invalid user-valid valid verso visited volume-locked where( "
"scope scope-context( seeking snapped snapped-block snapped-inline snapped-x snapped-y stalled "
"target target-current target-within user-invalid user-valid valid verso visited volume-locked where( "

, // 3 pseudo elements
"^-moz- ^-ms- ^-o- ^-webkit- after before blank( content "
"^-moz- ^-ms- ^-o- ^-webkit- after before blank( column content "
"file-selector-button first-letter first-line footnote-call footnote-marker grammar-error highlight( marker "
"nth-fragment( part( placeholder postfix prefix region selection shadow slot( spelling-error target-text "
"nth-fragment( part( placeholder postfix prefix region "
"scroll-marker scroll-marker-group selection shadow slot( spelling-error target-text "
"view-transition view-transition-group( view-transition-image-pair( view-transition-new( view-transition-old( "

, // 4 math functions
Expand Down Expand Up @@ -200,25 +201,25 @@ static KEYWORDLIST Keywords_CSS = {{
"ch-width change( character-variant( checkbox child child( circle circle( clone close-quote coarse code col-resize "
"collapse collection "
"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( "
"column-reverse common-ligatures compact compatible( complement( compress condensed conic-gradient( constrained-high "
"content( content-box content-exists( contents context-menu contextual continuous contrast( contrast-color( convert( "
"copy counter( counters( cover create crisp-edges crispEdges 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( diagonal-fractions "
"difference difference( digits disc discard discard-after discard-before discard-inner discretionary-ligatures div( "
"domain( dot dotted double double-circle down drop drop-shadow( "
"domain( dot dotted double double-circle down drop drop-shadow( dynamic-range-limit-mix( "
"e-resize each( each-line ease ease-in ease-in-out ease-out economy element( ellipse( ellipsis "
"embed embed( embedded-opentype embossed emoji escape( evenodd ew-resize "
"ex ex-height exact exclude exclusion exclusion( expanded extends extra-condensed extra-expanded extract( "
"fade fade( fade-in( fade-out( fadein( fadeout( false fangsong fantasy far-left far-right fast faster "
"feature-aat feature-exists( feature-graphite feature-opentype female "
"fill-box filled fine first-baseline first-valid( fit-content( fixed "
"flat flex-end flex-start flip flip-block flip-inline flip-start floor( flow-root "
"flat flex-end flex-start flex-visual flip flip-block flip-inline flip-start floor( flow-root "
"font-format( font-tech( footnote force force-end format( forwards fragments from from-font from-image "
"full-size-kana full-width function-exists( "
"gaps geometricPrecision georgian get( get-function( get-unit( global global-variable-exists( "
"grab grabbing grayscale( green( greyscale( groove "
"grab grabbing grayscale( green( greyscale( grid-columns grid-order grid-rows groove "
"handheld hanging hard-light hardlight( has-key( help hidden hide high high-quality higher historical-ligatures "
"horizontal horizontal-tb hsl( hsla( hss-height hss-width hsv( hsva( hsvhue( hsvsaturation( hsvvalue( "
"hue hue( hue-rotate( hwb( "
Expand Down
21 changes: 18 additions & 3 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/ 7 December 2023
// 2024-11-16 https://drafts.csswg.org/
// 2025-01-19 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 Down Expand Up @@ -237,6 +237,11 @@ initial inherit unset revert revert-layer
color-adjust:;
}

// CSS Color HDR Module Level 1 https://www.w3.org/TR/css-color-hdr-1/ 17 December 2024
{
dynamic-range-limit: standard | high | constrained-high | dynamic-range-limit-mix();
}

// Compositing and Blending Level 1 https://www.w3.org/TR/compositing-1/ 21 March 2024
{
mix-blend-mode: normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity;
Expand Down Expand Up @@ -324,11 +329,13 @@ var()
list-style-type: symbols();
}

// CSS Display Module Level 4 https://www.w3.org/TR/css-display-4/ 19 December 2024
// CSS Display Module Level 3 https://www.w3.org/TR/css-display-3/ 30 March 2023
{
display: block | inline | run-in | flow | flow-root | table | flex | grid | ruby | flow | flow-root | list-item | table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container |
ruby-text-container | contents | none | inline-block | inline-table | inline-flex | inline-grid;
order:;
reading-flow: normal | flex-visual | flex-flow | grid-rows | grid-columns | grid-order;
visibility: visible | hidden | collapse;
}

Expand Down Expand Up @@ -570,7 +577,7 @@ stripes()
image-resolution: from-image | snap;
}

// CSS Inline Layout Module Level 3 https://www.w3.org/TR/css-inline-3/ 12 August 2024
// CSS Inline Layout Module Level 3 https://www.w3.org/TR/css-inline-3/ 18 December 2024
{
dominant-baseline: auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top;
vertical-align: first | last;
Expand Down Expand Up @@ -797,6 +804,7 @@ all continuous paged visual audio speech tactile grid bitmap interactive static
offset:;
}

// CSS Multi-column Layout Module Level 2 https://www.w3.org/TR/css-multicol-2/ 19 December 2024
// CSS Multi-column Layout Module Level 1 https://www.w3.org/TR/css-multicol-1/ 16 May 2024
{
column-width: auto;
Expand All @@ -809,9 +817,10 @@ all continuous paged visual audio speech tactile grid bitmap interactive static
column-rule-width:;
column-rule:;

column-span: none | all;
column-span: none | all | auto;
column-fill: auto | balance | balance-all;
}
::column

// CSS Namespaces Module Level 3 https://www.w3.org/TR/css3-namespace/ 20 March 2014
@namespace ;
Expand All @@ -823,8 +832,12 @@ all continuous paged visual audio speech tactile grid bitmap interactive static
// CSS Object Model (CSSOM) https://www.w3.org/TR/cssom-1/ 26 August 2021
// CSSOM View Module https://www.w3.org/TR/cssom-view-1/ 17 March 2016

// CSS Overflow Module Level 5 https://www.w3.org/TR/css-overflow-5/ 17 December 2024
// CSS Overflow Module Level 4 https://www.w3.org/TR/css-overflow-4/ 21 March 2023
// CSS Overflow Module Level 3 https://www.w3.org/TR/css-overflow-3/ 29 March 2023
::scroll-marker-group
::scroll-marker
:target-current
::nth-fragment()
{
overflow-x: visible | hidden | clip | scroll | auto;
Expand All @@ -845,6 +858,7 @@ all continuous paged visual audio speech tactile grid bitmap interactive static
overflow-clip-margin-inline:;
overflow-clip-margin-block:;

scroll-marker-group: none | before | after;
scroll-behavior: auto | smooth;
scrollbar-gutter: auto | stable | both-edges | always | both | force;
text-overflow: clip | ellipsis | fade | fade();
Expand Down Expand Up @@ -1425,6 +1439,7 @@ pi infinity NaN
visibility: visible | hidden | collapse;
}

// Web Animations Level 2 https://www.w3.org/TR/web-animations-2/ 21 February 2023
// Web Animations https://www.w3.org/TR/web-animations-1/ 5 June 2023

// CSS Will Change Module Level 1 https://www.w3.org/TR/css-will-change-1/ 5 May 2022
Expand Down

0 comments on commit 78a4cbc

Please sign in to comment.