Skip to content

Commit

Permalink
Update CSS property list to November 2023.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Nov 18, 2023
1 parent 046b613 commit 3084629
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 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 August 2023 snapshot.
* [CSS Style Sheet](tools/lang/CSS.css), up to November 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
8 changes: 4 additions & 4 deletions src/EditLexers/stlCSS.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ static KEYWORDLIST Keywords_CSS = {{
"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-spacing text-spacing-trim text-transform "
"text-underline-offset text-underline-position text-wrap timeline-scope top touch-action "
"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-delay transition-duration transition-property transition-timing-function translate "
"unicode-bidi unicode-range update user-select user-zoom "
"vertical-align vertical-viewport-segments video-color-gamut video-dynamic-range "
"view-timeline view-timeline-axis view-timeline-inset view-timeline-name view-transition-name viewport-fit visibility "
"voice-balance voice-duration voice-family voice-pitch voice-range voice-rate voice-stress voice-volume volume "
"white-space white-space-collapse white-space-trim widows width will-change "
"word-boundary-detection word-boundary-expansion word-break word-spacing word-wrap "
"word-boundary-detection word-boundary-expansion word-break word-space-transform word-spacing word-wrap "
"wrap-after wrap-before wrap-flow wrap-inside wrap-through writing-mode "
"z-index zoom "

Expand Down Expand Up @@ -182,7 +182,7 @@ static KEYWORDLIST Keywords_CSS = {{
"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 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 "
"at atan( atan2( attr( audio aural auto auto( auto-flow auto-phrase 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 "
Expand Down Expand Up @@ -265,7 +265,7 @@ static KEYWORDLIST Keywords_CSS = {{
"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-auto trim-end trim-inner trim-start true truetype tty tv type( type-of( "
"triangle trim-adjacent trim-all 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( url-prefix( "
Expand Down
28 changes: 18 additions & 10 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-08-12 https://drafts.csswg.org/
// 2023-11-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 Down Expand Up @@ -839,7 +839,7 @@ all continuous paged visual audio speech tactile grid bitmap interactive static
float-offset:;
}

// CSS Paged Media Module Level 3 https://www.w3.org/TR/css-page-3/ 18 October 2018
// CSS Paged Media Module Level 3 https://www.w3.org/TR/css-page-3/ 14 September 2023
@page {}
@top-left-corner {}
@top-left {}
Expand All @@ -866,7 +866,6 @@ all continuous paged visual audio speech tactile grid bitmap interactive static
marks: none | crop | cross;
bleed: auto;
page: auto;
// https://drafts.csswg.org/css-page-3/
page-orientation: upright | rotate-left | rotate-right;
}

Expand Down Expand Up @@ -1185,18 +1184,21 @@ view()
chains: none;
}

// 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
// CSS Text Module Level 4 https://www.w3.org/TR/css-text-4/ 20 October 2023
// 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;
word-space-transform: none | space | ideographic-space | auto-phrase;
word-boundary-detection: normal | manual | auto();
word-boundary-expansion: none | space | ideographic-space;

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;
tab-size:;
word-break: normal | keep-all | break-all | break-word;

word-break: normal | keep-all | break-all | manual | auto-phrase | break-word;
line-break: auto | loose | normal | strict | anywhere;
hyphens: none | manual | auto;
hyphenate-character: auto;
Expand All @@ -1206,21 +1208,27 @@ view()
hyphenate-limit-last: none | always | column | page | spread;
overflow-wrap: normal | break-word | anywhere;
word-wrap: normal | break-word | anywhere;

text-wrap-mode: wrap | nowrap;
text-wrap-style: auto| balance | stable | pretty;
text-wrap: wrap | nowrap | balance | stable | pretty;
wrap-before: auto | avoid | avoid-line | avoid-flex | line | flex;
wrap-after: auto | avoid | avoid-line | avoid-flex | line | flex;
wrap-inside: auto | avoid;

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 | 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-trim: auto | space-all | trim-auto | allow-end | space-first | trim-all;
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 Expand Up @@ -1280,7 +1288,7 @@ view()
transition:;
}

// CSS Values and Units Module Level 4 https://www.w3.org/TR/css-values-4/ 6 April 2023
// CSS Values and Units Module Level 4 https://www.w3.org/TR/css-values-4/ 27 October 2023
// CSS Values and Units Module Level 3 https://www.w3.org/TR/css-values-3/ 01 December 2022
mix()
initial nherit unset
Expand All @@ -1295,7 +1303,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/ 3 August 2023
// CSS View Transitions Module Level 1 https://www.w3.org/TR/css-view-transitions-1/ 5 September 2023
{
view-transition-name: none;
}
Expand Down Expand Up @@ -1388,7 +1396,7 @@ aural speech
speak-header: once | always;
}

// Compatibility https://compat.spec.whatwg.org/ 19 June 2023
// Compatibility https://compat.spec.whatwg.org/ 27 September 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 3084629

Please sign in to comment.