From 78a4cbc944819789af83a8ceda39683b34d9d817 Mon Sep 17 00:00:00 2001 From: zufuliu Date: Sun, 19 Jan 2025 09:45:13 +0800 Subject: [PATCH] Update CSS property list to January 2025. --- readme.md | 2 +- src/EditLexers/stlCSS.cpp | 25 +++++++++++++------------ tools/lang/CSS.css | 21 ++++++++++++++++++--- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/readme.md b/readme.md index c7e2a08eb8..b6f4a651b6 100644 --- a/readme.md +++ b/readme.md @@ -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) diff --git a/src/EditLexers/stlCSS.cpp b/src/EditLexers/stlCSS.cpp index 3a93ef6a72..e3d97dfe19 100644 --- a/src/EditLexers/stlCSS.cpp +++ b/src/EditLexers/stlCSS.cpp @@ -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 " @@ -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 " @@ -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 @@ -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( " diff --git a/tools/lang/CSS.css b/tools/lang/CSS.css index 3818cdea0d..9afad2e95f 100644 --- a/tools/lang/CSS.css +++ b/tools/lang/CSS.css @@ -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 @@ -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; @@ -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; } @@ -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; @@ -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; @@ -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 ; @@ -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; @@ -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(); @@ -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