Skip to content

Commit

Permalink
Update CSS property list to July 2024.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jul 13, 2024
1 parent 54994f1 commit 8f3045d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
4 changes: 2 additions & 2 deletions 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 C2x.
* [C++ STL](tools/lang/CPP.cpp), up to C++20.
* [Cangjie (仓颉)](tools/lang/Cangjie.cj), up to June 2024.
* [CSS Style Sheet](tools/lang/CSS.css), up to December 2023 snapshot.
* [CSS Style Sheet](tools/lang/CSS.css), up to July 2024.
* [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 All @@ -74,7 +74,7 @@ Latest development builds (artifacts in Release configuration for each compiler
* [Groovy](tools/lang/Groovy.groovy), up to Groovy 5.0.
* [Haskell](tools/lang/Haskell.hs), up to GHC 9.6.
* [Haxe](tools/lang/Haxe.hx), up to Haxe 4.3.
* [HTML](tools/lang/html.html), up to [WHATWG](https://html.spec.whatwg.org/multipage/) March 2024. [Screenshots](https://github.com/zufuliu/notepad4/wiki/Screenshots#html)
* [HTML](tools/lang/html.html), up to [WHATWG](https://html.spec.whatwg.org/multipage/) July 2024. [Screenshots](https://github.com/zufuliu/notepad4/wiki/Screenshots#html)
* ASP
* ASP.NET
* JSP
Expand Down
19 changes: 10 additions & 9 deletions src/EditLexers/stlCSS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static KEYWORDLIST Keywords_CSS = {{
"max-lines max-resolution max-width min-aspect-ratio min-block-size "
"min-device-aspect-ratio min-device-height min-device-width min-height min-inline-size min-intrinsic-sizing "
"min-resolution min-width mix-blend-mode monochrome "
"nav-controls nav-down nav-left nav-right nav-up negative "
"nav-controls nav-down nav-left nav-right nav-up navigation negative "
"object-fit object-position offset offset-anchor offset-distance offset-path offset-position offset-rotate opacity "
"order orientation orphans outline outline-color outline-offset outline-style outline-width overflow overflow-anchor "
"overflow-block overflow-clip-margin "
Expand All @@ -82,8 +82,8 @@ 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 position-anchor position-try position-try-options position-try-order position-visibility "
"pointer pointer-events position "
"position-anchor position-try position-try-fallbacks position-try-options position-try-order position-visibility "
"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 @@ -117,7 +117,7 @@ static KEYWORDLIST Keywords_CSS = {{
"text-underline-offset text-underline-position text-wrap text-wrap-mode text-wrap-style timeline-scope top touch-action "
"transform transform-box transform-origin transform-style "
"transition transition-behavior transition-delay transition-duration transition-property transition-timing-function "
"translate "
"translate types "
"unicode-bidi unicode-range update user-select "
"vertical-align vertical-viewport-segments video-color-gamut video-dynamic-range "
"view-timeline view-timeline-axis view-timeline-inset view-timeline-name view-transition-class view-transition-name "
Expand Down Expand Up @@ -201,15 +201,16 @@ static KEYWORDLIST Keywords_CSS = {{
"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 discretionary-ligatures div( "
"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( "
"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 fit-content( fixed flat flex-end flex-start flip floor( flow-root "
"fill-box filled fine first-baseline fit-content( fixed "
"flat flex-end flex-start 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( "
Expand All @@ -230,7 +231,7 @@ static KEYWORDLIST Keywords_CSS = {{
"load-css( local local( loose loud low lower lower-alpha lower-greek lower-latin lower-roman lowercase ltr "
"luma( luminance luminance( luminosity "
"male mandatory manipulation manual map margin-box "
"match-parent match-self match-source math mathematical matrix( matrix3d( max-content maximum "
"match-parent match-self match-source math math-auto mathematical matrix( matrix3d( max-content maximum "
"media( media-document( medium menu menulist menulist-button merge merge( message-box meta meter middle "
"min-color-index min-content min-monochrome minimal-ui minimum minmax( miter miter-clip mix mix( mixed mixin-exists( "
"moderate module-functions( module-variables( monospace more most-block-size most-height most-inline-size most-width "
Expand Down Expand Up @@ -269,7 +270,7 @@ static KEYWORDLIST Keywords_CSS = {{
"table-row table-row-group tabular-nums tactile 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-all trim-auto trim-end trim-inner trim-start true truetype tty tv type( type-of( "
"triangle trim-adjacent trim-all trim-auto trim-end 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( url-prefix( "
Expand Down
22 changes: 13 additions & 9 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-05-18 https://drafts.csswg.org/
// 2024-07-14 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 @@ -19,6 +19,7 @@
position-visibility: always | anchors-valid | anchors-visible | no-overflow;

position-try-options: none | inset-area();
position-try-fallbacks: none | flip-block | flip-inline | flip-start;
position-try-order: normal | most-width | most-height | most-block-size | most-inline-size;
position-try:;
}
Expand Down Expand Up @@ -262,7 +263,7 @@ supports()

// CSS Containment Module Level 3 https://www.w3.org/TR/css-contain-3/ 18 August 2022
// CSS Containment Module Level 2 https://www.w3.org/TR/css-contain-2/ 17 September 2022
// CSS Containment Module Level 1 https://www.w3.org/TR/css-contain-1/ 25 October 2022
// CSS Containment Module Level 1 https://www.w3.org/TR/css-contain-1/ 25 June 2024
{
contain: none | strict | content | size | inline-size | layout | style | paint;
container-type: normal | style | state | size | inline-size | block-size;
Expand Down Expand Up @@ -678,7 +679,7 @@ counters()

// Media Queries Level 5 https://www.w3.org/TR/mediaqueries-5/ 18 December 2021
// Media Queries Level 4 https://www.w3.org/TR/mediaqueries-4/ 25 December 2021
// Media Queries Level 3 https://www.w3.org/TR/mediaqueries-3/ 05 April 2022
// Media Queries Level 3 https://www.w3.org/TR/mediaqueries-3/ 21 May 2024
// https://www.w3.org/TR/CSS22/media.html
@custom-media {}
// 7.3 Recognized media types
Expand Down Expand Up @@ -1184,16 +1185,16 @@ view()
chains: none;
}

// CSS Text Module Level 4 https://www.w3.org/TR/css-text-4/ 19 February 2024
// CSS Text Module Level 4 https://www.w3.org/TR/css-text-4/ 29 May 2024
// CSS Text Module Level 3 https://www.w3.org/TR/css-text-3/ 3 September 2023
// Text https://www.w3.org/TR/CSS22/text.html
{
text-transform: none | capitalize | uppercase | lowercase | full-width | full-size-kana;
text-transform: none | capitalize | uppercase | lowercase | full-width | full-size-kana | math-auto;
word-space-transform: none | space | ideographic-space | auto-phrase;

white-space: normal | pre | nowrap | pre-wrap | break-spaces | pre-line;
white-space-collapse: collapse | discard | preserve | preserve-breaks | preserve-spaces;
white-space-trim: none | trim-inner | discard-before | discard-after;
white-space: normal | pre | pre-wrap | pre-line;
white-space-collapse: collapse | discard | preserve | preserve-breaks | preserve-spaces | break-spaces;
white-space-trim: none | discard-before || discard-after || discard-inner;
tab-size:;

word-break: normal | keep-all | break-all | manual | auto-phrase | break-word;
Expand Down Expand Up @@ -1315,7 +1316,10 @@ pi infinity NaN
view-transition-class: none;
view-transition-name: none;
}
@view-transition {}
@view-transition {
navigation: auto | none;
types: none;
}
:active-view-transition
:active-view-transition-type()
::view-transition
Expand Down
4 changes: 2 additions & 2 deletions tools/lang/html.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
https://whatwg.org/ 17 May 2024
https://whatwg.org/ 12 July 2024
HTML 4.01 https://www.w3.org/TR/html4/ 27 March 2018
XHTML 2.0 https://www.w3.org/TR/xhtml2/ 16 December 2010
-->
Expand Down Expand Up @@ -272,7 +272,7 @@ <h6></h6>
<col span>
</colgroup>
<thead>
<tr><th colspan rowspan headers scope="row col rowgroup colgroup auto" abbr></th></tr>
<tr><th colspan rowspan headers scope="row col rowgroup colgroup" abbr></th></tr>
</thead>
<tbody>
<tr><td colspan rowspan headers></td></tr>
Expand Down

0 comments on commit 8f3045d

Please sign in to comment.