mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Compare commits
90 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b1d5676eb | ||
|
|
edf5147e1b | ||
|
|
a552f6b7b2 | ||
|
|
c08702b2de | ||
|
|
ed97cb7111 | ||
|
|
dcb96c01ca | ||
|
|
fa194bb638 | ||
|
|
ff32d693f5 | ||
|
|
63de9cc2f7 | ||
|
|
912bb8944f | ||
|
|
1efb945868 | ||
|
|
da08f55d67 | ||
|
|
d51d95c7fe | ||
|
|
e58e59dd42 | ||
|
|
05a535f954 | ||
|
|
789b3fa6e8 | ||
|
|
c3c6083d44 | ||
|
|
d8fcec92e3 | ||
|
|
092f7c3c67 | ||
|
|
ff05f0f5eb | ||
|
|
f815dbb39d | ||
|
|
318b4f0a7a | ||
|
|
b095d6836f | ||
|
|
709783ff3c | ||
|
|
0ce18a4fd7 | ||
|
|
9f1b8dbb3f | ||
|
|
4162325b6c | ||
|
|
935b51f9b3 | ||
|
|
708f7afb01 | ||
|
|
7bfab47011 | ||
|
|
2d8e5a3711 | ||
|
|
8e6268701f | ||
|
|
9f5cf97dd2 | ||
|
|
09dadbddbc | ||
|
|
ecc663217d | ||
|
|
3342759044 | ||
|
|
0d392a336c | ||
|
|
52ac61ae9b | ||
|
|
b246e15a87 | ||
|
|
b6d75a099b | ||
|
|
796c321b9d | ||
|
|
7baa11dee0 | ||
|
|
33ff4c19ea | ||
|
|
d6644ddde9 | ||
|
|
68ad25f13a | ||
|
|
f4a11a2dfa | ||
|
|
09d94e94d0 | ||
|
|
67e1163e71 | ||
|
|
01f1652ea1 | ||
|
|
b6995753ca | ||
|
|
7340b8d436 | ||
|
|
c553668419 | ||
|
|
9c1ff6a905 | ||
|
|
0ba71f9643 | ||
|
|
7c63923d48 | ||
|
|
02bd142134 | ||
|
|
431686e034 | ||
|
|
9e783f669f | ||
|
|
5793938f1f | ||
|
|
a552555049 | ||
|
|
5bad4550a4 | ||
|
|
f68ddde87c | ||
|
|
f5cfa0895d | ||
|
|
51983f69c1 | ||
|
|
5c81b99e3e | ||
|
|
519acb02ec | ||
|
|
eacc98e57a | ||
|
|
bb70ca813d | ||
|
|
77c66d5b21 | ||
|
|
c7cba6931d | ||
|
|
2eeb46b6a4 | ||
|
|
04cdd2207b | ||
|
|
7656471758 | ||
|
|
ac036acb57 | ||
|
|
01e075a338 | ||
|
|
75ac3daad7 | ||
|
|
246d55ae53 | ||
|
|
de24cfc34f | ||
|
|
70955d83b9 | ||
|
|
34a8be6642 | ||
|
|
69129fdb5a | ||
|
|
fc691cd648 | ||
|
|
aeb5093190 | ||
|
|
3993c90e1d | ||
|
|
09c2971b1c | ||
|
|
0601869517 | ||
|
|
370e8a7c0a | ||
|
|
288339b369 | ||
|
|
0d54d6319f | ||
|
|
7790c1d9f3 |
26
README.md
26
README.md
@@ -1,7 +1,8 @@
|
||||
vim-css3-syntax
|
||||
===============
|
||||
|
||||
Add CSS3 syntax support to [Vim][1]'s built-in `syntax/css.vim`.
|
||||
CSS3 syntax (and syntax defined in some foreign specifications) support for
|
||||
[Vim][1]’s built-in `syntax/css.vim`
|
||||
|
||||
|
||||
INSTALLATION
|
||||
@@ -11,25 +12,32 @@ I **strongly** recommend to install this plugin on *Vim 7.4 or higher with
|
||||
default runtime files*.
|
||||
|
||||
|
||||
### Manual Installation
|
||||
### Vim package
|
||||
|
||||
Download from GitHub, extract `vim-css3-syntax.tar.gz`, and copy the contents to
|
||||
your `~/.vim` directory.
|
||||
$ mkdir -p ~/.vim/pack/css3-syntax/start
|
||||
$ cd ~/.vim/pack/css3-syntax/start
|
||||
$ git clone https://github.com/hail2u/vim-css3-syntax.git
|
||||
|
||||
|
||||
### Installing with Git and pathogen
|
||||
### pathogen.vim
|
||||
|
||||
$ cd ~/.vim/bundle
|
||||
$ git clone https://github.com/hail2u/vim-css3-syntax.git
|
||||
|
||||
|
||||
### Manual
|
||||
|
||||
Download `vim-css3-syntax.tar.gz` from GitHub, extract it, and copy the contents
|
||||
to your `~/.vim` directory.
|
||||
|
||||
|
||||
NOTES
|
||||
-----
|
||||
|
||||
### Highlighting problems on: `vertical-align`, `box-shadow`, and others
|
||||
|
||||
Some properties do not highlight correctly by default. This is a limitation of
|
||||
Vim's highlight priority mechanism. To fix this problems, put following lines in
|
||||
Vim’s highlight priority mechanism. To fix this problems, put following lines in
|
||||
your `~/.vim/after/css.vim`:
|
||||
|
||||
setlocal iskeyword+=-
|
||||
@@ -54,7 +62,7 @@ such as `-webkit-` or `-moz-`, etc. These are hard to maintain because they are:
|
||||
* Changed unexpectedly
|
||||
* Removed silently
|
||||
|
||||
These must be supported by separate syntax plugins (Vim 7.4's default CSS syntax
|
||||
These must be supported by separate syntax plugins (Vim 7.4’s default CSS syntax
|
||||
file supports this). If you want to highlight prefixed properties or functions
|
||||
manually, `:highlight` and `:match` would help:
|
||||
|
||||
@@ -67,8 +75,8 @@ cyan and bold (on gVim).
|
||||
|
||||
### CSS Preprocessors: [Sass][2], [LESS][3], and [Stylus][4]
|
||||
|
||||
`vim-css3-syntax` supports Sass's SCSS syntax only. If you want to use this
|
||||
plugin with LESS, install [VIM-LESS][5]. Sass's indent syntax and Stylus are not
|
||||
`vim-css3-syntax` supports Sass’s SCSS syntax only. If you want to use this
|
||||
plugin with LESS, install [VIM-LESS][5]. Sass’s indent syntax and Stylus are not
|
||||
supported.
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
" TODO: create cssAlignProp group and cssAlignAttr group
|
||||
syn match cssFontProp contained "\<\(justify\|align\)-\(self\|content\|items\)\>"
|
||||
syn keyword cssFontAttr contained safe true
|
||||
syn match cssFontProp contained "\<\(justify\|align\|place\)-\(self\|content\|items\)\>"
|
||||
syn match cssFontProp contained "\<\(grid-\)\=\(\(row\|column\)-\)\=gap\>"
|
||||
syn keyword cssFontAttr contained safe unsafe legacy
|
||||
syn match cssFontAttr contained "\<\(self\|flex\)-\(start\|end\)\>"
|
||||
syn match cssFontAttr contained "\<space-\(between\|around\|evenly\)\>"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
" TODO: create cssBreakProp group and cssBreakAttr group
|
||||
syn match cssFontProp contained "\<break-\(after\|before\|inside\)\>"
|
||||
syn match cssFontProp contained "\<box-decoration-break\>"
|
||||
syn keyword cssFontAttr contained any
|
||||
syn match cssFontAttr contained "\<\(avoid-\)\=column\>"
|
||||
5
after/syntax/css/css-color-4.vim
Normal file
5
after/syntax/css/css-color-4.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn match cssColorProp contained "\<color-adjust\>"
|
||||
syn keyword cssColor contained rebeccapurple
|
||||
syn match cssColor contained "#[0-9A-Fa-f]\{8\}\>" contains=cssUnitDecorators
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|gray\|color\|device-cmyk\|color-mod\=\)\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
2
after/syntax/css/css-contain-1.vim
Normal file
2
after/syntax/css/css-contain-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained contain
|
||||
syn keyword cssFontAttr contained layout paint size
|
||||
4
after/syntax/css/css-content-3.vim
Normal file
4
after/syntax/css/css-content-3.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
syn match cssGeneratedContentProp contained "\<string-set\>"
|
||||
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained open closed
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(leader\|string\|target-\(counter\|counters\|text\)\)\s*(" end=")" oneline keepend
|
||||
@@ -1,5 +1,2 @@
|
||||
" TODO: create cssDisplayProp group and cssDisplayAttr group
|
||||
syn match cssFontProp contained "\<box-suppress\>"
|
||||
syn keyword cssFontAttr contained contents discard
|
||||
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
||||
syn match cssFontAttr contained "\<inline-list-item\>"
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
" TODO: create cssFlexboxProp group and cssFlexboxAttr group
|
||||
syn keyword cssFontProp order
|
||||
syn match cssFontProp contained "\<flex\(-\(basis\|direction\|flow\|grow\|shrink\|wrap\)\)\=\>"
|
||||
syn keyword cssFontAttr contained flex row wrap
|
||||
syn match cssFontAttr contained "\<inline-flex\>"
|
||||
syn match cssFontAttr contained "\<\(row\|column\|wrap\)-reverse\>"
|
||||
syn match cssFontAttr contained "\<main-size\>"
|
||||
|
||||
10
after/syntax/css/css-fonts-4.vim
Normal file
10
after/syntax/css/css-fonts-4.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
syn match cssFontProp contained "\<font-\(min\|max\)-size\>"
|
||||
syn match cssFontProp contained "\<font-display\>"
|
||||
syn match cssFontProp contained "\<font-optical-sizing\>"
|
||||
syn match cssFontProp contained "\<font-variation-settings\>"
|
||||
syn match cssFontProp contained "\<font-palette\>"
|
||||
syn match cssFontProp contained "\<font-presentation\>"
|
||||
syn match cssFontProp contained "\<base-palette\>"
|
||||
syn keyword cssFontAttr contained emoji math fangsong infinity swap fallback optional light dark
|
||||
syn match cssFontAttr contained "\<system-ui\>"
|
||||
syn region cssInclude start=/@font-palette-values\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
|
||||
@@ -1,7 +1,5 @@
|
||||
syn keyword cssGeneratedContentProp contained running
|
||||
syn match cssGeneratedContentProp contained "\<string-set\>"
|
||||
syn match cssGeneratedContentProp contained "\<footnote-\(display\|policy\)\>"
|
||||
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained footnote line open closed
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(string\|running\|element\|leader\|target-\(counter\|counters\|text\)\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssGeneratedContentAttr contained footnote line
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(element\|running\)\s*(" end=")" oneline keepend
|
||||
syn match cssPseudoClassId contained "\<footnote-\(call\|marker\)\>"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
syn match cssFontProp contained "\<grid-template\(-\(columns\|rows\|areas\)\)\=\>"
|
||||
syn match cssFontProp contained "\<grid-auto-\(columns\|rows\|flow\|position\)\>"
|
||||
syn match cssFontProp contained "\<grid-auto-\(columns\|rows\|flow\)\>"
|
||||
syn match cssFontProp contained "\<grid-\(row\|column\)\(-\(start\|end\)\)\=\>"
|
||||
syn match cssFontProp contained "\<grid-area\>"
|
||||
syn match cssFontProp contained "\<grid\(-\(column\|row\)\)\=-gap\>"
|
||||
syn keyword cssFontAttr contained grid subgrid dense span
|
||||
syn keyword cssFontAttr contained grid dense span
|
||||
syn match cssFontAttr contained "\<inline-grid\>"
|
||||
syn match cssFontAttr contained "\<auto-flow\>"
|
||||
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|repeat\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|fit-content\|repeat\)\s*(" end=")" oneline keepend
|
||||
|
||||
2
after/syntax/css/css-images-4.vim
Normal file
2
after/syntax/css/css-images-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssFontProp contained "\<image-resolution\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|element\|conic-gradient\)\s*(" end=")" oneline keepend
|
||||
5
after/syntax/css/css-logical-1.vim
Normal file
5
after/syntax/css/css-logical-1.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn match cssFontProp contained "\<\(\(min\|max\)-\)\=\(block\|inline\)-size\>"
|
||||
syn match cssFontProp contained "\<\(margin\|inset\|padding\)\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
|
||||
syn match cssFontProp contained "\<border-\(block\|inline\)\(\(-\(start\|end\)\)\=\(-\(width\|style\|color\)\)\=\)\=\>"
|
||||
syn match cssFontProp contained "\<\(background\|border\)-image-transform\>"
|
||||
syn keyword cssFontAttr contained logical physical rotate
|
||||
3
after/syntax/css/css-multicol-1.vim
Normal file
3
after/syntax/css/css-multicol-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained columns
|
||||
syn match cssFontProp contained "\<column-\(count\|fill\|rule\(-\(color\|style\|width\)\)\=\|span\|width\)\>"
|
||||
syn match cssFontAttr contained "\<balance\(-all\)\=\>"
|
||||
@@ -1,4 +1 @@
|
||||
" TODO: create cssOverflowProp group and cssOverflowAttr group
|
||||
syn match cssFontProp contained "\<max-lines\>"
|
||||
syn keyword cssFontAttr contained fragments
|
||||
syn match cssFontAttr contained "\<paged-\(x\|y\)\(-controls\)\=\>"
|
||||
|
||||
4
after/syntax/css/css-overflow-4.vim
Normal file
4
after/syntax/css/css-overflow-4.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
syn keyword cssFontProp contained continue
|
||||
syn match cssFontProp contained "\<scrollbar-gutter\>"
|
||||
syn keyword cssFontAttr contained stable force overflow paginate fragments
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth-fragment\)(" end=")" oneline
|
||||
1
after/syntax/css/css-paint-api-1.vim
Normal file
1
after/syntax/css/css-paint-api-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<paint\s*(" end=")" oneline keepend
|
||||
@@ -1,3 +1,2 @@
|
||||
" TODO: create cssPositioningProp and cssPositioningAttr
|
||||
syn match cssFontProp contained "\<offset-\(before\|end\|after\|start\)\>"
|
||||
syn keyword cssFontAttr contained sticky
|
||||
@@ -1 +1,2 @@
|
||||
syn match cssPseudoClassId contained "\<inactive-selection\>"
|
||||
syn match cssPseudoClassId contained "\<\(spelling\|grammer\)-error\>"
|
||||
|
||||
3
after/syntax/css/css-rhythm-1.vim
Normal file
3
after/syntax/css/css-rhythm-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn match cssFontProp contained "\<line-height-step\>"
|
||||
syn match cssFontProp contained "\<block-step\(-\(size\|insert\|align\|round\)\)\=\>"
|
||||
syn keyword cssFontAttr contained margin up down nearest
|
||||
3
after/syntax/css/css-scroll-snap-1.vim
Normal file
3
after/syntax/css/css-scroll-snap-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn match cssFontProp contained "\<scroll-snap-\(type\|align\|stop\)\>"
|
||||
syn match cssFontProp contained "\<scroll-\(padding\|snap-margin\)\(-\(top\|bottom\|right\|left\|\(block\|inline\)\(-\(end\|start\)\)\=\)\)\=\>"
|
||||
syn keyword cssFontAttr contained x y mandatory proximity
|
||||
1
after/syntax/css/css-sizing-3.vim
Normal file
1
after/syntax/css/css-sizing-3.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontAttr contained "\<\(\(min\|max\|fit\)-content\)\>"
|
||||
@@ -1,2 +0,0 @@
|
||||
syn match cssFontProp contained "\<scroll-snap-\(type\|points-\(x\|y\)\|destination\|coordinate\)\=\>"
|
||||
syn keyword cssFontAttr contained mandatory proximity
|
||||
1
after/syntax/css/css-tables-3.vim
Normal file
1
after/syntax/css/css-tables-3.vim
Normal file
@@ -0,0 +1 @@
|
||||
" N/A
|
||||
@@ -2,7 +2,8 @@ syn keyword cssTextProp contained hyphens
|
||||
syn match cssTextProp contained "\<line-break\>"
|
||||
syn match cssTextProp contained "\<overflow-wrap\>"
|
||||
syn match cssTextProp contained "\<tab-size\>"
|
||||
syn keyword cssTextAttr contained manual loose strict hanging
|
||||
syn match cssTextProp contained "\<text-align-all\>"
|
||||
syn keyword cssTextAttr contained manual loose strict hanging anywhere
|
||||
syn match cssTextAttr contained "\<match-parent\>"
|
||||
syn match cssTextAttr contained "\<each-line\>"
|
||||
syn match cssTextAttr contained "\<full-width\>"
|
||||
|
||||
1
after/syntax/css/css-timing-1.vim
Normal file
1
after/syntax/css/css-timing-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<frames\s*(" end=")" oneline keepend
|
||||
1
after/syntax/css/css-typed-om-1.vim
Normal file
1
after/syntax/css/css-typed-om-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
" N/A
|
||||
@@ -1,3 +1,3 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|vw\|vh\|vmin\|vmax\|q\)"
|
||||
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=turn"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(calc\|toggle\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<calc\s*(" end=")" oneline keepend
|
||||
@@ -1,3 +1,3 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsla\=\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssColorProp contained opacity
|
||||
syn match cssColor contained "\<currentColor\>"
|
||||
syn match cssColor contained "\<currentcolor\>"
|
||||
@@ -1,3 +0,0 @@
|
||||
syn match cssGeneratedContentProp contained "\<move-to\>"
|
||||
syn match cssGeneratedContentProp contained "\<page-policy\>"
|
||||
syn keyword cssGeneratedContentAttr contained inhibit here first last
|
||||
@@ -1,7 +1,6 @@
|
||||
" TODO: create cssImagesProp group and cssImagesAttr group
|
||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||
syn match cssFontProp contained "\<image-\(resolution\|orientation\)\>"
|
||||
syn match cssFontProp contained "\<image-orientation\>"
|
||||
syn keyword cssFontAttr contained contain cover snap
|
||||
syn match cssFontAttr contained "\<from-image\>"
|
||||
syn match cssFontAttr contained "\<scale-down\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
" TODO: create cssMulticolProp group and cssMulticolAttr group
|
||||
syn keyword cssFontProp contained columns
|
||||
syn match cssFontProp contained "\<column-\(count\|fill\|gap\|rule\(-\(color\|style\|width\)\)\=\|span\|width\)\>"
|
||||
syn keyword cssFontAttr contained balance
|
||||
syn match cssFontAttr contained "\<\(avoid-\)\=column\>"
|
||||
1
after/syntax/css/css3-namespace.vim
Normal file
1
after/syntax/css/css3-namespace.vim
Normal file
@@ -0,0 +1 @@
|
||||
" N/A
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: create cssSizingAttr group
|
||||
syn match cssFontAttr contained "\<\(\(min\|max\|fit\)-content\|fill-available\|repudiate-floats\)\>"
|
||||
syn match cssFontAttr contained "\<contain-floats\>"
|
||||
1
after/syntax/css/cssom-1.vim
Normal file
1
after/syntax/css/cssom-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
" N/A
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<scroll-behavior\>"
|
||||
syn keyword cssFontAttr contained instant smooth
|
||||
syn keyword cssFontAttr contained smooth
|
||||
5
after/syntax/css/fill-stroke-3.vim
Normal file
5
after/syntax/css/fill-stroke-3.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn match cssFontProp contained "\<\(fill\|stroke\)\(-\(break\|color\|image\|origin\|position\|size\|repeat\|opacity\)\)\=\>"
|
||||
syn match cssFontProp contained "\<fill-rule\>"
|
||||
syn match cssFontProp contained "\<stroke-\(width\|align\|line\(cap\|join\)\|miterlimit\|dash\(array\|offset\)\|dash-\(corner\|justify\)\)\>"
|
||||
syn keyword cssFontAttr contained butt arcs stupid compress dashes gaps
|
||||
syn match cssFontAttr contained "\<bounding-box\>"
|
||||
@@ -2,3 +2,4 @@ syn match cssFontProp contained "\<flood-\(color\|opacity\)\>"
|
||||
syn match cssFontProp contained "\<color-interpolation-filters\>"
|
||||
syn match cssFontProp contained "\<lighting-color\>"
|
||||
syn keyword cssFontAttr sRGB linearRGB
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(blur\|brightness\|contrast\|drop-shadow\|grayscale\|hue-rotate\|invert\|opacity\|saturate\|sepia\)\s*(" end=")" oneline keepend
|
||||
@@ -1,19 +0,0 @@
|
||||
" HTML5 new elements
|
||||
|
||||
" Sections
|
||||
syn keyword cssTagName article section nav aside header footer
|
||||
|
||||
" Grouping content
|
||||
syn keyword cssTagName figure figcaption main
|
||||
|
||||
" Text-level semantics
|
||||
syn keyword cssTagName data time mark ruby rb rt rtc rp bdi wbr
|
||||
|
||||
" Embedded content
|
||||
syn keyword cssTagName embed video audio source track
|
||||
|
||||
" Forms
|
||||
syn keyword cssTagName datalist keygen output progress meter
|
||||
|
||||
" Scripting
|
||||
syn keyword cssTagName template canvas
|
||||
1
after/syntax/css/html5.vim
Normal file
1
after/syntax/css/html5.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssTagName picture rb rtc slot template
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<motion\(-\(path\|offset\|rotation\)\)\=\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<path\s*(" end=")" oneline keepend
|
||||
syn match cssFontProp contained "\<offset\(-\(path\|distance\|anchor\|rotate\)\)\=\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(ray\|path\)\s*(" end=")" oneline keepend
|
||||
|
||||
3
after/syntax/css/pointerevents.vim
Normal file
3
after/syntax/css/pointerevents.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn match cssFontProp contained "\<touch-action\>"
|
||||
syn keyword cssFontAttr contained manipulation
|
||||
syn match cssFontAttr contained "\<pan-\(x\|y\)\>"
|
||||
20
after/syntax/css/svg2.vim
Normal file
20
after/syntax/css/svg2.vim
Normal file
@@ -0,0 +1,20 @@
|
||||
syn keyword cssTagName animate animateMotion animateTransform circle clipPath cursor defs desc discard ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter foreignObject g hatch hatchpath image line linearGradient marker mesh meshgradient meshpatch meshrow metadata mpath path pattern polygon polyline radialGradient rect set solidcolor stop switch symbol text textPath tspan unknown use view
|
||||
|
||||
syn keyword cssFontProp contained cx cy d r rx ry x y
|
||||
syn match cssFontProp contained "\<color-\(interpolation\|rendering\)\>"
|
||||
syn match cssFontProp contained "\<image-rendering\>"
|
||||
syn match cssFontProp contained "\<marker-\(end\|mid\|start\)\>"
|
||||
syn match cssFontProp contained "\<pointer-events\>"
|
||||
syn match cssFontProp contained "\<shape-rendering\>"
|
||||
syn match cssFontProp contained "\<solid-\(color\|opacity\)\>"
|
||||
syn match cssFontProp contained "\<stop-\(color\|opacity\)\>"
|
||||
syn match cssFontProp contained "\<text-anchor\>"
|
||||
syn match cssFontProp contained "\<vector-effect\>"
|
||||
|
||||
syn keyword cssFontAttr contained crispEdges geometricPrecision optimizeQuality painted stroke viewport visibleFill visiblePainted visibleStroke
|
||||
syn match cssFontAttr contained "\<context-\(fill\|stroke\)\>"
|
||||
syn match cssFontAttr contained "\<fixed-position\>"
|
||||
syn match cssFontAttr contained "\<miter\(-clip\)\=\>"
|
||||
syn match cssFontAttr contained "\<non-\(scaling-stroke\|scaling-size\|rotation\)\>"
|
||||
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(child\|icc-color\)\s*(" end=")" oneline keepend
|
||||
1
after/syntax/css/web-animations-1.vim
Normal file
1
after/syntax/css/web-animations-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
" N/A
|
||||
1
after/syntax/css/worklets-1.vim
Normal file
1
after/syntax/css/worklets-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
" N/A
|
||||
@@ -1,62 +1,79 @@
|
||||
syn include @htmlCss syntax/css/compositing-1.vim
|
||||
syn include @htmlCss syntax/css/css-align-3.vim
|
||||
syn include @htmlCss syntax/css/css-backgrounds-4.vim
|
||||
syn include @htmlCss syntax/css/css-break-3.vim
|
||||
syn include @htmlCss syntax/css/css-cascade-3.vim
|
||||
syn include @htmlCss syntax/css/css-cascade-4.vim
|
||||
syn include @htmlCss syntax/css/css-color-4.vim
|
||||
syn include @htmlCss syntax/css/css-contain-1.vim
|
||||
syn include @htmlCss syntax/css/css-content-3.vim
|
||||
syn include @htmlCss syntax/css/css-counter-styles-3.vim
|
||||
syn include @htmlCss syntax/css/css-device-adapt.vim
|
||||
syn include @htmlCss syntax/css/css-device-adapt-1.vim
|
||||
syn include @htmlCss syntax/css/css-display-3.vim
|
||||
syn include @htmlCss syntax/css/css-flexbox-1.vim
|
||||
syn include @htmlCss syntax/css/css-font-loading-3.vim
|
||||
syn include @htmlCss syntax/css/css-fonts-3.vim
|
||||
syn include @htmlCss syntax/css/css-fonts-4.vim
|
||||
syn include @htmlCss syntax/css/css-gcpm-3.vim
|
||||
syn include @htmlCss syntax/css/css-grid-1.vim
|
||||
syn include @htmlCss syntax/css/css-images-4.vim
|
||||
syn include @htmlCss syntax/css/css-inline-3.vim
|
||||
syn include @htmlCss syntax/css/css-line-grid-1.vim
|
||||
syn include @htmlCss syntax/css/css-lists-3.vim
|
||||
syn include @htmlCss syntax/css/css-logical-1.vim
|
||||
syn include @htmlCss syntax/css/css-masking-1.vim
|
||||
syn include @htmlCss syntax/css/css-multicol-1.vim
|
||||
syn include @htmlCss syntax/css/css-overflow-3.vim
|
||||
syn include @htmlCss syntax/css/css-overflow-4.vim
|
||||
syn include @htmlCss syntax/css/css-page-floats-3.vim
|
||||
syn include @htmlCss syntax/css/css-paint-api-1.vim
|
||||
syn include @htmlCss syntax/css/css-position-3.vim
|
||||
syn include @htmlCss syntax/css/css-properties-values-api-1.vim
|
||||
syn include @htmlCss syntax/css/css-pseudo-4.vim
|
||||
syn include @htmlCss syntax/css/css-regions-1.vim
|
||||
syn include @htmlCss syntax/css/css-rhythm-1.vim
|
||||
syn include @htmlCss syntax/css/css-round-display-1.vim
|
||||
syn include @htmlCss syntax/css/css-ruby-1.vim
|
||||
syn include @htmlCss syntax/css/css-scoping-1.vim
|
||||
syn include @htmlCss syntax/css/css-scroll-snap-1.vim
|
||||
syn include @htmlCss syntax/css/css-shapes-1.vim
|
||||
syn include @htmlCss syntax/css/css-snappoints-1.vim
|
||||
syn include @htmlCss syntax/css/css-sizing-3.vim
|
||||
syn include @htmlCss syntax/css/css-style-attr.vim
|
||||
syn include @htmlCss syntax/css/css-syntax-3.vim
|
||||
syn include @htmlCss syntax/css/css-text-3.vim
|
||||
syn include @htmlCss syntax/css/css-text-4.vim
|
||||
syn include @htmlCss syntax/css/css-text-decor-3.vim
|
||||
syn include @htmlCss syntax/css/css-timing-1.vim
|
||||
syn include @htmlCss syntax/css/css-transforms-1.vim
|
||||
syn include @htmlCss syntax/css/css-typed-om-1.vim
|
||||
syn include @htmlCss syntax/css/css-ui-3.vim
|
||||
syn include @htmlCss syntax/css/css-ui-4.vim
|
||||
syn include @htmlCss syntax/css/css-values.vim
|
||||
syn include @htmlCss syntax/css/css-variables.vim
|
||||
syn include @htmlCss syntax/css/css-values-3.vim
|
||||
syn include @htmlCss syntax/css/css-variables-1.vim
|
||||
syn include @htmlCss syntax/css/css-will-change-1.vim
|
||||
syn include @htmlCss syntax/css/css-writing-modes-3.vim
|
||||
syn include @htmlCss syntax/css/css3-animations.vim
|
||||
syn include @htmlCss syntax/css/css3-background.vim
|
||||
syn include @htmlCss syntax/css/css3-box.vim
|
||||
syn include @htmlCss syntax/css/css3-break.vim
|
||||
syn include @htmlCss syntax/css/css3-colors.vim
|
||||
syn include @htmlCss syntax/css/css3-color.vim
|
||||
syn include @htmlCss syntax/css/css3-conditional.vim
|
||||
syn include @htmlCss syntax/css/css3-content.vim
|
||||
syn include @htmlCss syntax/css/css3-exclusions.vim
|
||||
syn include @htmlCss syntax/css/css3-fonts.vim
|
||||
syn include @htmlCss syntax/css/css3-images.vim
|
||||
syn include @htmlCss syntax/css/css3-multicol.vim
|
||||
syn include @htmlCss syntax/css/css3-namespace.vim
|
||||
syn include @htmlCss syntax/css/css3-page.vim
|
||||
syn include @htmlCss syntax/css/css3-positioning.vim
|
||||
syn include @htmlCss syntax/css/css3-regions.vim
|
||||
syn include @htmlCss syntax/css/css3-selectors.vim
|
||||
syn include @htmlCss syntax/css/css3-sizing.vim
|
||||
syn include @htmlCss syntax/css/css3-speech.vim
|
||||
syn include @htmlCss syntax/css/css3-syntax.vim
|
||||
syn include @htmlCss syntax/css/css3-transforms.vim
|
||||
syn include @htmlCss syntax/css/css3-transitions.vim
|
||||
syn include @htmlCss syntax/css/cssom-view.vim
|
||||
syn include @htmlCss syntax/css/cssom.vim
|
||||
syn include @htmlCss syntax/css/filter-effects.vim
|
||||
syn include @htmlCss syntax/css/cssom-1.vim
|
||||
syn include @htmlCss syntax/css/cssom-view-1.vim
|
||||
syn include @htmlCss syntax/css/fill-stroke-3.vim
|
||||
syn include @htmlCss syntax/css/filter-effects-1.vim
|
||||
syn include @htmlCss syntax/css/geometry-1.vim
|
||||
syn include @htmlCss syntax/css/html5-elements.vim
|
||||
syn include @htmlCss syntax/css/html5.vim
|
||||
syn include @htmlCss syntax/css/motion-1.vim
|
||||
syn include @htmlCss syntax/css/pointerevents.vim
|
||||
syn include @htmlCss syntax/css/selectors-nonelement-1.vim
|
||||
syn include @htmlCss syntax/css/selectors.vim
|
||||
syn include @htmlCss syntax/css/selectors4.vim
|
||||
syn include @htmlCss syntax/css/web-animations.vim
|
||||
syn include @htmlCss syntax/css/svg2.vim
|
||||
syn include @htmlCss syntax/css/web-animations-1.vim
|
||||
syn include @htmlCss syntax/css/worklets-1.vim
|
||||
|
||||
589
test/test.css
589
test/test.css
@@ -1,13 +1,19 @@
|
||||
.align {
|
||||
.align-3 {
|
||||
justify-self: safe;
|
||||
justify-content: true;
|
||||
justify-content: unsafe;
|
||||
justify-items: self-start;
|
||||
align-self: self-end;
|
||||
align-content: flex-start;
|
||||
align-items: flex-end;
|
||||
display: space-around;
|
||||
display: space-between;
|
||||
display: space-evenly;
|
||||
place-self: space-around;
|
||||
place-content: space-between;
|
||||
place-items: space-evenly;
|
||||
row-gap: legacy;
|
||||
column-gap: auto;
|
||||
gap: auto;
|
||||
grid-column-gap: auto;
|
||||
grid-row-gap: auto;
|
||||
grid-gap: auto;
|
||||
}
|
||||
|
||||
.animations {
|
||||
@@ -40,7 +46,7 @@
|
||||
box-shadow: auto;
|
||||
}
|
||||
|
||||
.background-4 {
|
||||
.backgrounds-4 {
|
||||
background-position-x: x-start;
|
||||
background-position-y: x-end;
|
||||
background-position-inline: y-start;
|
||||
@@ -69,8 +75,8 @@
|
||||
display: no-content;
|
||||
}
|
||||
|
||||
.break {
|
||||
break-after: any;
|
||||
.break-3 {
|
||||
break-after: avoid-column;
|
||||
break-before: auto;
|
||||
break-inside: auto;
|
||||
box-decoration-break: auto;
|
||||
@@ -86,21 +92,29 @@
|
||||
display: revert;
|
||||
}
|
||||
|
||||
.colors {
|
||||
.color {
|
||||
opacity: rgba(0, 0, 0, 1);
|
||||
display: hsla(0, 0, 0, 1);
|
||||
display: currentColor;
|
||||
display: currentcolor;
|
||||
}
|
||||
|
||||
@supports (display: auto) or
|
||||
(display: auto) not
|
||||
(display: auto) {
|
||||
.conditional {
|
||||
display: auto;
|
||||
}
|
||||
@color-profile swopc {
|
||||
src: url('http://example.org/swop-coated.icc');
|
||||
}
|
||||
|
||||
.compositing {
|
||||
.color-4 {
|
||||
color-adjust: #FFEEDDFF;
|
||||
display: rebeccapurple;
|
||||
display: hwb(120deg, 44%, 50%);
|
||||
display: lab(1 2 3);
|
||||
display: lch(4 5 6);
|
||||
display: gray(50%);
|
||||
display: color(swopc, 0 206 190 77);
|
||||
display: device-cmyk(0, 81%, 81%, 30%);
|
||||
display: color-mod(#112233 tint(50%));
|
||||
}
|
||||
|
||||
.compositing-1 {
|
||||
mix-blend-mode: multiply;
|
||||
isolation: screen;
|
||||
background-blend-mode: overlay;
|
||||
@@ -118,14 +132,31 @@
|
||||
display: luminosity;
|
||||
}
|
||||
|
||||
.content {
|
||||
move-to: inhibit;
|
||||
page-policy: here;
|
||||
display: first;
|
||||
display: last;
|
||||
@supports (display: auto) or
|
||||
(display: auto) not
|
||||
(display: auto) {
|
||||
.conditional {
|
||||
display: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@counter-style counter-style {
|
||||
.contain-1 {
|
||||
contain: layout;
|
||||
display: paint;
|
||||
display: size;
|
||||
}
|
||||
|
||||
.content-3 {
|
||||
string-set: open;
|
||||
bookmark-level: closed;
|
||||
bookmark-label: leader('.');
|
||||
bookmark-state: string(heading, first);
|
||||
display: target-counter(attr(href url), page);
|
||||
display: target-counters(lack-of-example);
|
||||
display: target-text(attr(href url));
|
||||
}
|
||||
|
||||
@counter-style counter-styles-3 {
|
||||
system: cyclic;
|
||||
negative: symbolic;
|
||||
prefix: additive;
|
||||
@@ -138,7 +169,7 @@
|
||||
speak-as: auto;
|
||||
}
|
||||
|
||||
.counter-style {
|
||||
.counter-styles-3 {
|
||||
display: arabic-indic;
|
||||
display: upper-armenian;
|
||||
display: lower-armenian;
|
||||
@@ -176,20 +207,18 @@
|
||||
display: ethiopic-numeric;
|
||||
}
|
||||
|
||||
.cssom-view {
|
||||
scroll-behavior: instant;
|
||||
display: smooth;
|
||||
}
|
||||
|
||||
.cssom {
|
||||
.cssom-1 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.display {
|
||||
box-suppress: flow;
|
||||
.cssom-view-1 {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
.display-3 {
|
||||
display: flow;
|
||||
display: flow-root;
|
||||
display: contents;
|
||||
display: inline-list-item;
|
||||
display: discard;
|
||||
}
|
||||
|
||||
@@ -198,14 +227,55 @@
|
||||
wrap-through: maximum;
|
||||
}
|
||||
|
||||
.filter-effects {
|
||||
.fill-stroke-3 {
|
||||
fill-rule: butt;
|
||||
fill-break: arcs;
|
||||
fill-color: stupid;
|
||||
fill-image: compress;
|
||||
fill-origin: dashes;
|
||||
fill-position: gaps;
|
||||
fill-size: bounding-box;
|
||||
fill-repeat: auto;
|
||||
fill: auto;
|
||||
fill-opacity: auto;
|
||||
stroke-width: auto;
|
||||
stroke-align: auto;
|
||||
stroke-linecap: auto;
|
||||
stroke-linejoin: auto;
|
||||
stroke-miterlimit: auto;
|
||||
stroke-break: auto;
|
||||
stroke-dasharray: auto;
|
||||
stroke-dashoffset: auto;
|
||||
stroke-dash-corner: auto;
|
||||
stroke-dash-justify: auto;
|
||||
stroke-color: auto;
|
||||
stroke-image: auto;
|
||||
stroke-origin: auto;
|
||||
stroke-position: auto;
|
||||
stroke-size: auto;
|
||||
stroke-repeat: auto;
|
||||
stroke: auto;
|
||||
stroke-opacity: auto;
|
||||
}
|
||||
|
||||
.filter-effects-1 {
|
||||
flood-color: sRGB;
|
||||
flood-opacity: linearRGB;
|
||||
color-interpolation-filters: auto;
|
||||
lighting-color: auto;
|
||||
display: blur(5px);
|
||||
display: brightness(0.4);
|
||||
display: contrast(200%);
|
||||
display: drop-shadow(16px 16px 20px blue);
|
||||
display: grayscale(50%);
|
||||
display: hue-rotate(90deg);
|
||||
display: invert(75%);
|
||||
display: opacity(25%);
|
||||
display: saturate(30%);
|
||||
display: sepia(60%);
|
||||
}
|
||||
|
||||
.flexbox {
|
||||
.flexbox-1 {
|
||||
flex-direction: flex;
|
||||
flex-wrap: inline-flex;
|
||||
flex-flow: row;
|
||||
@@ -213,14 +283,16 @@
|
||||
flex: column-reverse;
|
||||
flex-grow: wrap;
|
||||
flex-shrink: wrap-reverse;
|
||||
flex-basis: main-size;
|
||||
}
|
||||
|
||||
.font-loading-3 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.fonts {
|
||||
.fonts-4 {
|
||||
}
|
||||
|
||||
.fonts-3 {
|
||||
font-feature-settings: common-ligatures;
|
||||
font-kerning: no-common-ligatures;
|
||||
font-language-override: discretionary-ligatures;
|
||||
@@ -258,61 +330,72 @@
|
||||
display: proportional-width;
|
||||
}
|
||||
|
||||
.gcpm::footnote-call,
|
||||
.gcpm::footnote-marker {
|
||||
string-set: string(heading, first);
|
||||
running: running(heading);
|
||||
footnote-display: element(header);
|
||||
footnote-policy: footnote;
|
||||
bookmark-label: line;
|
||||
bookmark-level: leader('.');
|
||||
bookmark-state: target-counter(attr(href url), page);
|
||||
display: target-counters(lack-of-example);
|
||||
display: target-text(attr(href url));
|
||||
display: open;
|
||||
display: closed;
|
||||
.fonts-4 {
|
||||
font-min-size: emoji;
|
||||
font-max-size: math;
|
||||
font-display: fangsong;
|
||||
font-optical-sizing: system-ui;
|
||||
font-variation-settings: infinity;
|
||||
font-palette: swap;
|
||||
font-presentation: fallback;
|
||||
display: optional;
|
||||
display: light;
|
||||
display: dark;
|
||||
}
|
||||
|
||||
@font-palette-values Test {
|
||||
base-palette: 1;
|
||||
}
|
||||
|
||||
.gcpm-3::footnote-call,
|
||||
.gcpm-3::footnote-marker {
|
||||
running: footnote;
|
||||
footnote-display: line;
|
||||
footnote-policy: element(header);
|
||||
display: running(heading);
|
||||
}
|
||||
|
||||
.geometry-1 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.grid {
|
||||
.grid-1 {
|
||||
grid-template-columns: grid;
|
||||
grid-template-rows: inline-grid;
|
||||
grid-template-areas: minmax(0, 1);
|
||||
grid-template: repeat(4);
|
||||
grid-template: fit-content(10%);
|
||||
grid-auto-rows: repeat(4);
|
||||
grid-auto-columns: 0.2fr;
|
||||
grid-auto-rows: subgrid;
|
||||
grid-auto-flow: dense;
|
||||
grid-auto-position: span;
|
||||
grid: auto;
|
||||
grid-row-start: auto;
|
||||
grid: auto-flow;
|
||||
grid-row-start: span;
|
||||
grid-column-start: auto;
|
||||
grid-row-end: auto;
|
||||
grid-column-end: auto;
|
||||
grid-column: auto;
|
||||
grid-row: auto;
|
||||
grid-area: auto;
|
||||
grid-column-gap: auto;
|
||||
grid-row-gap: auto;
|
||||
grid-gap: auto;
|
||||
}
|
||||
|
||||
.images {
|
||||
.images-3 {
|
||||
object-fit: contain;
|
||||
object-position: cover;
|
||||
image-resolution: snap;
|
||||
image-orientation: scale-down;
|
||||
image-orientation: snap;
|
||||
display: scale-down;
|
||||
display: from-image;
|
||||
display: image("sprite.svg#xywh=40,0,20,20");
|
||||
display: linear-gradient(to bottom, yellow, blue);
|
||||
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
||||
display: repeating-linear-gradient(to bottom, yellow, blue);
|
||||
display: repeating-radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
||||
}
|
||||
|
||||
.inline {
|
||||
.images-4 {
|
||||
image-resolution: image("sprite.svg#xywh=40,0,20,20");
|
||||
display: element(#test);
|
||||
display: conic-gradient(at 25% 30%, white, black 60%);
|
||||
}
|
||||
|
||||
.inline-3 {
|
||||
dominant-baseline: mathematical;
|
||||
alignment-baseline: ideographic;
|
||||
baseline-shift: auto;
|
||||
@@ -321,7 +404,7 @@
|
||||
initial-letter-wrap: auto;
|
||||
}
|
||||
|
||||
.line-grid {
|
||||
.line-grid-1 {
|
||||
line-grid: create;
|
||||
line-snap: block-start;
|
||||
box-snap: block-end;
|
||||
@@ -329,13 +412,65 @@
|
||||
display: last-baseline;
|
||||
}
|
||||
|
||||
.lists::marker {
|
||||
marker-side: marker;
|
||||
counter-set: list-container;
|
||||
display: counters(list-item, '.');
|
||||
.lists-3::marker {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.masking {
|
||||
.logical-1 {
|
||||
block-size: logical;
|
||||
inline-size: physical;
|
||||
min-block-size: rotate;
|
||||
min-inline-size: auto;
|
||||
max-block-size: auto;
|
||||
max-inline-size: auto;
|
||||
margin-block-start: auto;
|
||||
margin-block-end: auto;
|
||||
margin-inline-start: auto;
|
||||
margin-inline-end: auto;
|
||||
margin-block: auto;
|
||||
margin-inline: auto;
|
||||
inset-block-start: auto;
|
||||
inset-block-end: auto;
|
||||
inset-inline-start: auto;
|
||||
inset-inline-end: auto;
|
||||
inset-block: auto;
|
||||
inset-inline: auto;
|
||||
inset: auto;
|
||||
padding-block-start: auto;
|
||||
padding-block-end: auto;
|
||||
padding-inline-start: auto;
|
||||
padding-inline-end: auto;
|
||||
padding-block: auto;
|
||||
padding-inline: auto;
|
||||
border-block-start-width: auto;
|
||||
border-block-end-width: auto;
|
||||
border-inline-start-width: auto;
|
||||
border-inline-end-width: auto;
|
||||
border-block-width: auto;
|
||||
border-inline-width: auto;
|
||||
border-block-start-style: auto;
|
||||
border-block-end-style: auto;
|
||||
border-inline-start-style: auto;
|
||||
border-inline-end-style: auto;
|
||||
border-block-style: auto;
|
||||
border-inline-style: auto;
|
||||
border-block-start-color: auto;
|
||||
border-block-end-color: auto;
|
||||
border-inline-start-color: auto;
|
||||
border-inline-end-color: auto;
|
||||
border-block-color: auto;
|
||||
border-inline-color: auto;
|
||||
border-block-start: auto;
|
||||
border-block-end: auto;
|
||||
border-inline-start: auto;
|
||||
border-inline-end: auto;
|
||||
border-block: auto;
|
||||
border-inline: auto;
|
||||
background-image-transform: auto;
|
||||
border-image-transform: auto;
|
||||
}
|
||||
|
||||
.masking-1 {
|
||||
clip-path: fill-box;
|
||||
clip-rule: stroke-box;
|
||||
mask-image: view-box;
|
||||
@@ -358,17 +493,17 @@
|
||||
}
|
||||
|
||||
.motion-1 {
|
||||
motion-path: path(M 100 100 L 300 100 L 200 300 z);
|
||||
motion-offset: auto;
|
||||
motion-rotation: auto;
|
||||
motion: auto;
|
||||
offset-path: ray(45deg closest-side);
|
||||
offset-distance: path(M 100 100 L 300 100 L 200 300 z);
|
||||
offset-anchor: auto;
|
||||
offset-rotate: auto;
|
||||
offset: auto;
|
||||
}
|
||||
|
||||
.multicol {
|
||||
.multicol-1 {
|
||||
columns: column;
|
||||
column-count: balance;
|
||||
column-fill: avoid-column;
|
||||
column-gap: auto;
|
||||
column-fill: balance-all;
|
||||
column-rule: auto;
|
||||
column-rule-color: auto;
|
||||
column-rule-style: auto;
|
||||
@@ -377,11 +512,17 @@
|
||||
column-width: auto;
|
||||
}
|
||||
|
||||
.overflow {
|
||||
max-lines: paged-x;
|
||||
display: paged-y;
|
||||
display: paged-x-controls;
|
||||
display: paged-y-controls;
|
||||
@namespace "http://example.com/css3-namespace/";
|
||||
|
||||
.overflow-3 {
|
||||
max-lines: auto;
|
||||
}
|
||||
|
||||
.overflow-4::nth-fragment(1) {
|
||||
scrollbar-gutter: stable;
|
||||
continue: force;
|
||||
display: overflow;
|
||||
display: paginate;
|
||||
display: fragments;
|
||||
}
|
||||
|
||||
@@ -401,21 +542,30 @@
|
||||
display: snap-inline(2em, near);
|
||||
}
|
||||
|
||||
.positioning {
|
||||
.paint-api-1 {
|
||||
display: paint(my_logo);
|
||||
}
|
||||
|
||||
.pointerevents {
|
||||
touch-action: pan-x;
|
||||
display: pan-y;
|
||||
display: manipulation;
|
||||
}
|
||||
|
||||
.position-3 {
|
||||
offset-before: sticky;
|
||||
offset-end: auto;
|
||||
offset-after: auto;
|
||||
offset-start: auto;
|
||||
}
|
||||
|
||||
.pseudo::selection,
|
||||
.pseudo::spelling-error,
|
||||
.pseudo::grammer-error,
|
||||
.pseuod::placeholder {
|
||||
display: block;
|
||||
.pseudo-4::inactive-selection,
|
||||
.pseudo-4::spelling-error,
|
||||
.pseudo-4::grammer-error {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.regions:region {
|
||||
.regions-1:region {
|
||||
flow-into: element;
|
||||
flow-from: content;
|
||||
region-fragment: break;
|
||||
@@ -423,6 +573,15 @@
|
||||
display: avoid-region;
|
||||
}
|
||||
|
||||
.rhythm-1 {
|
||||
line-height-step: margin;
|
||||
block-step-size: up;
|
||||
block-step-insert: down;
|
||||
block-step-align: nearest;
|
||||
block-step-round: auto;
|
||||
block-step: auto;
|
||||
}
|
||||
|
||||
@media (device-radius: 50%) {
|
||||
.round-display-1 {
|
||||
shape-inside: outside-shape;
|
||||
@@ -432,45 +591,73 @@
|
||||
}
|
||||
}
|
||||
|
||||
.ruby {
|
||||
.ruby-1 {
|
||||
ruby-position: ruby-base-container;
|
||||
ruby-merge: ruby-text-container;
|
||||
ruby-align: inter-character;
|
||||
}
|
||||
|
||||
@scope .scoping {
|
||||
@scope .scoping-1 {
|
||||
div {
|
||||
display: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.scoping:scope-context div,
|
||||
.scoping:host,
|
||||
.scping:host(.foo),
|
||||
.scoping:host-context,
|
||||
.scoping::shadow,
|
||||
.scoping::content,
|
||||
.scoping /deep/ span {
|
||||
.scoping-1:scope-context div,
|
||||
.scoping-1:host,
|
||||
.scoping-1:host(.foo),
|
||||
.scoping-1:host-context,
|
||||
.scoping-1::shadow,
|
||||
.scoping-1::content,
|
||||
.scoping-1 /deep/ span {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.selectors3:target,
|
||||
.selectors3:enabled,
|
||||
.selectors3:disabled,
|
||||
.selectors3:checked,
|
||||
.selectors3:indeterminate,
|
||||
.selectors3:root,
|
||||
.selectors3:empty,
|
||||
.selectors3:last-child,
|
||||
.selectors3:last-of-type,
|
||||
.selectors3:first-of-type,
|
||||
.selectors3:only-child,
|
||||
.selectors3:only-of-type,
|
||||
.selectors3:nth-child(2n+1),
|
||||
.selectors3:nth-last-child(-n+2),
|
||||
.selectors3:nth-of-type(2n+1),
|
||||
.selectors3:nth-last-of-type(n+2),
|
||||
.selectors3:not([DISABLED]) {
|
||||
.scroll-snap-1 {
|
||||
scroll-snap-type: x;
|
||||
scroll-padding: y;
|
||||
scroll-snap-margin: mandatory;
|
||||
scroll-snap-align: proximity;
|
||||
scroll-snap-stop: auto;
|
||||
scroll-padding-top: auto;
|
||||
scroll-padding-right: auto;
|
||||
scroll-padding-bottom: auto;
|
||||
scroll-padding-left: auto;
|
||||
scroll-padding-inline-start: auto;
|
||||
scroll-padding-block-start: auto;
|
||||
scroll-padding-inline-end: auto;
|
||||
scroll-padding-block-end: auto;
|
||||
scroll-padding-block: auto;
|
||||
scroll-padding-inline: auto;
|
||||
scroll-snap-margin-top: auto;
|
||||
scroll-snap-margin-right: auto;
|
||||
scroll-snap-margin-bottom: auto;
|
||||
scroll-snap-margin-left: auto;
|
||||
scroll-snap-margin-inline-start: auto;
|
||||
scroll-snap-margin-block-start: auto;
|
||||
scroll-snap-margin-inline-end: auto;
|
||||
scroll-snap-margin-block-end: auto;
|
||||
scroll-snap-margin-block: auto;
|
||||
scroll-snap-margin-inline: auto;
|
||||
}
|
||||
|
||||
.selectors:target,
|
||||
.selectors:enabled,
|
||||
.selectors:disabled,
|
||||
.selectors:checked,
|
||||
.selectors:indeterminate,
|
||||
.selectors:root,
|
||||
.selectors:empty,
|
||||
.selectors:last-child,
|
||||
.selectors:last-of-type,
|
||||
.selectors:first-of-type,
|
||||
.selectors:only-child,
|
||||
.selectors:only-of-type,
|
||||
.selectors:nth-child(2n+1),
|
||||
.selectors:nth-last-child(-n+2),
|
||||
.selectors:nth-of-type(2n+1),
|
||||
.selectors:nth-last-of-type(n+2),
|
||||
.selectors:not([DISABLED]) {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
@@ -512,7 +699,7 @@
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.shapes {
|
||||
.shapes-1 {
|
||||
shape-outside: margin-box;
|
||||
shape-image-threshold: inset(50% 50% 50% 50%);
|
||||
shape-margin: circle(100px 50px 100px);
|
||||
@@ -520,20 +707,10 @@
|
||||
display: polygon(0 0, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
.sizing {
|
||||
.sizing-3 {
|
||||
display: max-content;
|
||||
display: min-content;
|
||||
display: fit-content;
|
||||
display: fill-available;
|
||||
display: repudiate-floats;
|
||||
display: contain-floats;
|
||||
}
|
||||
|
||||
.snappoints {
|
||||
scroll-snap-type: mandatory;
|
||||
scroll-snap-points-x: proximity;
|
||||
scroll-snap-points-y: auto;
|
||||
scroll-snap-destination: auto;
|
||||
scroll-snap-coordinate: auto;
|
||||
}
|
||||
|
||||
.speech {
|
||||
@@ -553,7 +730,15 @@
|
||||
display: reduced;
|
||||
}
|
||||
|
||||
.syntax {
|
||||
.style-attr {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.syntax-3 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.tables-3 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
@@ -562,9 +747,10 @@
|
||||
line-break: loose;
|
||||
overflow-wrap: strict;
|
||||
tab-size: match-parent;
|
||||
display: hanging;
|
||||
text-align-all: hanging;
|
||||
display: each-line;
|
||||
display: full-width;
|
||||
display: anywhere;
|
||||
}
|
||||
|
||||
.text-4 {
|
||||
@@ -608,7 +794,11 @@
|
||||
display: over;
|
||||
}
|
||||
|
||||
.transforms {
|
||||
.timing-1 {
|
||||
display: frames(2);
|
||||
}
|
||||
|
||||
.transforms-1 {
|
||||
backface-visibility: flat;
|
||||
perspective: preserve-3d;
|
||||
perspective-origin: matrix(1);
|
||||
@@ -657,7 +847,7 @@
|
||||
caret-animation: underscore;
|
||||
}
|
||||
|
||||
.values {
|
||||
.values-3 {
|
||||
display: 1ch;
|
||||
display: 1vw;
|
||||
display: 1vh;
|
||||
@@ -665,10 +855,9 @@
|
||||
display: 1q;
|
||||
display: 1turn;
|
||||
display: calc(100%/3 - 2*1em - 2*1px);
|
||||
display: toggle(italic, normal);
|
||||
}
|
||||
|
||||
.variables {
|
||||
.variables-1 {
|
||||
var-foo: var(foo);
|
||||
}
|
||||
|
||||
@@ -678,15 +867,15 @@
|
||||
user-zoom: auto;
|
||||
}
|
||||
|
||||
.web-animations {
|
||||
.web-animations-1 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.will-change {
|
||||
.will-change-1 {
|
||||
will-change: scroll-position;
|
||||
}
|
||||
|
||||
.writing-modes {
|
||||
.writing-modes-3 {
|
||||
writing-mode: before;
|
||||
text-orientation: after;
|
||||
text-combine-upright: mixed;
|
||||
@@ -702,37 +891,103 @@
|
||||
display: vertical-lr;
|
||||
}
|
||||
|
||||
.html5-elements,
|
||||
article,
|
||||
section,
|
||||
nav,
|
||||
aside,
|
||||
header,
|
||||
footer,
|
||||
figure,
|
||||
figcaption,
|
||||
main,
|
||||
data,
|
||||
time,
|
||||
mark,
|
||||
ruby,
|
||||
.html5,
|
||||
picture,
|
||||
rb,
|
||||
rt,
|
||||
rtc,
|
||||
rp,
|
||||
bdi,
|
||||
wbr,
|
||||
embed,
|
||||
video,
|
||||
audio,
|
||||
source,
|
||||
track,
|
||||
datalist,
|
||||
keygen,
|
||||
output,
|
||||
progress,
|
||||
meter,
|
||||
template,
|
||||
canvas {
|
||||
slot,
|
||||
template {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.svg2,
|
||||
animate,
|
||||
animateMotion,
|
||||
animateTransform,
|
||||
circle,
|
||||
clipPath,
|
||||
cursor,
|
||||
defs,
|
||||
desc,
|
||||
discard,
|
||||
ellipse,
|
||||
feBlend,
|
||||
feColorMatrix,
|
||||
feComponentTransfer,
|
||||
feComposite,
|
||||
feConvolveMatrix,
|
||||
feDiffuseLighting,
|
||||
feDisplacementMap,
|
||||
feDistantLight,
|
||||
feDropShadow,
|
||||
feFlood,
|
||||
feFuncA,
|
||||
feFuncB,
|
||||
feFuncG,
|
||||
feFuncR,
|
||||
feGaussianBlur,
|
||||
feImage,
|
||||
feMerge,
|
||||
feMergeNode,
|
||||
feMorphology,
|
||||
feOffset,
|
||||
fePointLight,
|
||||
feSpecularLighting,
|
||||
feSpotLight,
|
||||
feTile,
|
||||
feTurbulence,
|
||||
filter,
|
||||
foreignObject,
|
||||
g,
|
||||
hatch,
|
||||
hatchpath,
|
||||
image,
|
||||
line,
|
||||
linearGradient,
|
||||
marker,
|
||||
mesh,
|
||||
meshgradient,
|
||||
meshpatch,
|
||||
meshrow,
|
||||
metadata,
|
||||
mpath,
|
||||
path,
|
||||
pattern,
|
||||
polygon,
|
||||
polyline,
|
||||
radialGradient,
|
||||
rect,
|
||||
set,
|
||||
solidcolor,
|
||||
stop,
|
||||
switch,
|
||||
symbol,
|
||||
text,
|
||||
textPath,
|
||||
tspan,
|
||||
unknown,
|
||||
use,
|
||||
view {
|
||||
color-interpolation: crispEdges;
|
||||
color-rendering: geometricPrecision;
|
||||
cx: optimizeQuality;
|
||||
cy: painted;
|
||||
d: visiblePainted;
|
||||
image-rendering: visibleFill;
|
||||
marker-end: stroke;
|
||||
marker-mid: viewport;
|
||||
marker-start: visibleStroke;
|
||||
pointer-events: context-fill;
|
||||
r: context-stroke;
|
||||
rx: fixed-position;
|
||||
ry: miter;
|
||||
shape-rendering: miter-clip;
|
||||
solid-color: non-scaling-stroke;
|
||||
solid-opacity: non-scaling-size;
|
||||
stop-color: non-rotation;
|
||||
stop-opacity: child(1);
|
||||
text-anchor: icc-color(foo);
|
||||
vector-effect: auto;
|
||||
x: auto;
|
||||
y: auto;
|
||||
}
|
||||
|
||||
607
test/test.html
607
test/test.html
@@ -8,16 +8,22 @@
|
||||
|
||||
<link rel="stylesheet" href="http://hail2u.net/styles/natural.min.css">
|
||||
<style>
|
||||
.align {
|
||||
.align-3 {
|
||||
justify-self: safe;
|
||||
justify-content: true;
|
||||
justify-content: unsafe;
|
||||
justify-items: self-start;
|
||||
align-self: self-end;
|
||||
align-content: flex-start;
|
||||
align-items: flex-end;
|
||||
display: space-around;
|
||||
display: space-between;
|
||||
display: space-evenly;
|
||||
place-self: space-around;
|
||||
place-content: space-between;
|
||||
place-items: space-evenly;
|
||||
row-gap: legacy;
|
||||
column-gap: auto;
|
||||
gap: auto;
|
||||
grid-column-gap: auto;
|
||||
grid-row-gap: auto;
|
||||
grid-gap: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@@ -53,7 +59,7 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.background-4 {
|
||||
.backgrounds-4 {
|
||||
background-position-x: x-start;
|
||||
background-position-y: x-end;
|
||||
background-position-inline: y-start;
|
||||
@@ -84,8 +90,8 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.break {
|
||||
break-after: any;
|
||||
.break-3 {
|
||||
break-after: avoid-column;
|
||||
break-before: auto;
|
||||
break-inside: auto;
|
||||
box-decoration-break: auto;
|
||||
@@ -104,23 +110,31 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.colors {
|
||||
.color {
|
||||
opacity: rgba(0, 0, 0, 1);
|
||||
display: hsla(0, 0, 0, 1);
|
||||
display: currentColor;
|
||||
display: currentcolor;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@supports (display: auto) or
|
||||
(display: auto) not
|
||||
(display: auto) {
|
||||
.conditional {
|
||||
display: auto;
|
||||
}
|
||||
@color-profile swopc {
|
||||
src: url('http://example.org/swop-coated.icc');
|
||||
}
|
||||
|
||||
.color-4 {
|
||||
color-adjust: #FFEEDDFF;
|
||||
display: rebeccapurple;
|
||||
display: hwb(120deg, 44%, 50%);
|
||||
display: lab(1 2 3);
|
||||
display: lch(4 5 6);
|
||||
display: gray(50%);
|
||||
display: color(swopc, 0 206 190 77);
|
||||
display: device-cmyk(0, 81%, 81%, 30%);
|
||||
display: color-mod(#112233 tint(50%));
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.compositing {
|
||||
.compositing-1 {
|
||||
mix-blend-mode: multiply;
|
||||
isolation: screen;
|
||||
background-blend-mode: overlay;
|
||||
@@ -139,15 +153,34 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.content {
|
||||
move-to: inhibit;
|
||||
page-policy: here;
|
||||
display: first;
|
||||
display: last;
|
||||
@supports (display: auto) or
|
||||
(display: auto) not
|
||||
(display: auto) {
|
||||
.conditional {
|
||||
display: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@counter-style counter-style {
|
||||
.contain-1 {
|
||||
contain: layout;
|
||||
display: paint;
|
||||
display: size;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.content-3 {
|
||||
string-set: open;
|
||||
bookmark-level: closed;
|
||||
bookmark-label: leader('.');
|
||||
bookmark-state: string(heading, first);
|
||||
display: target-counter(attr(href url), page);
|
||||
display: target-counters(lack-of-example);
|
||||
display: target-text(attr(href url));
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@counter-style counter-styles-3 {
|
||||
system: cyclic;
|
||||
negative: symbolic;
|
||||
prefix: additive;
|
||||
@@ -159,9 +192,8 @@
|
||||
additive-symbols: auto;
|
||||
speak-as: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.counter-style {
|
||||
|
||||
.counter-styles-3 {
|
||||
display: arabic-indic;
|
||||
display: upper-armenian;
|
||||
display: lower-armenian;
|
||||
@@ -200,22 +232,20 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.cssom-view {
|
||||
scroll-behavior: instant;
|
||||
display: smooth;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.cssom {
|
||||
.cssom-1 {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.display {
|
||||
box-suppress: flow;
|
||||
.cssom-view-1 {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.display-3 {
|
||||
display: flow;
|
||||
display: flow-root;
|
||||
display: contents;
|
||||
display: inline-list-item;
|
||||
display: discard;
|
||||
}
|
||||
</style>
|
||||
@@ -226,15 +256,57 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.filter-effects {
|
||||
.fill-stroke-3 {
|
||||
fill-rule: butt;
|
||||
fill-break: arcs;
|
||||
fill-color: stupid;
|
||||
fill-image: compress;
|
||||
fill-origin: dashes;
|
||||
fill-position: gaps;
|
||||
fill-size: bounding-box;
|
||||
fill-repeat: auto;
|
||||
fill: auto;
|
||||
fill-opacity: auto;
|
||||
stroke-width: auto;
|
||||
stroke-align: auto;
|
||||
stroke-linecap: auto;
|
||||
stroke-linejoin: auto;
|
||||
stroke-miterlimit: auto;
|
||||
stroke-break: auto;
|
||||
stroke-dasharray: auto;
|
||||
stroke-dashoffset: auto;
|
||||
stroke-dash-corner: auto;
|
||||
stroke-dash-justify: auto;
|
||||
stroke-color: auto;
|
||||
stroke-image: auto;
|
||||
stroke-origin: auto;
|
||||
stroke-position: auto;
|
||||
stroke-size: auto;
|
||||
stroke-repeat: auto;
|
||||
stroke: auto;
|
||||
stroke-opacity: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.filter-effects-1 {
|
||||
flood-color: sRGB;
|
||||
flood-opacity: linearRGB;
|
||||
color-interpolation-filters: auto;
|
||||
lighting-color: auto;
|
||||
display: blur(5px);
|
||||
display: brightness(0.4);
|
||||
display: contrast(200%);
|
||||
display: drop-shadow(16px 16px 20px blue);
|
||||
display: grayscale(50%);
|
||||
display: hue-rotate(90deg);
|
||||
display: invert(75%);
|
||||
display: opacity(25%);
|
||||
display: saturate(30%);
|
||||
display: sepia(60%);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.flexbox {
|
||||
.flexbox-1 {
|
||||
flex-direction: flex;
|
||||
flex-wrap: inline-flex;
|
||||
flex-flow: row;
|
||||
@@ -242,7 +314,6 @@
|
||||
flex: column-reverse;
|
||||
flex-grow: wrap;
|
||||
flex-shrink: wrap-reverse;
|
||||
flex-basis: main-size;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@@ -251,7 +322,7 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.fonts {
|
||||
.fonts-3 {
|
||||
font-feature-settings: common-ligatures;
|
||||
font-kerning: no-common-ligatures;
|
||||
font-language-override: discretionary-ligatures;
|
||||
@@ -290,19 +361,30 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.gcpm::footnote-call,
|
||||
.gcpm::footnote-marker {
|
||||
string-set: string(heading, first);
|
||||
running: running(heading);
|
||||
footnote-display: element(header);
|
||||
footnote-policy: footnote;
|
||||
bookmark-label: line;
|
||||
bookmark-level: leader('.');
|
||||
bookmark-state: target-counter(attr(href url), page);
|
||||
display: target-counters(lack-of-example);
|
||||
display: target-text(attr(href url));
|
||||
display: open;
|
||||
display: closed;
|
||||
.fonts-4 {
|
||||
font-min-size: emoji;
|
||||
font-max-size: math;
|
||||
font-display: fangsong;
|
||||
font-optical-sizing: system-ui;
|
||||
font-variation-settings: infinity;
|
||||
font-palette: swap;
|
||||
font-presentation: fallback;
|
||||
display: optional;
|
||||
display: light;
|
||||
display: dark;
|
||||
}
|
||||
|
||||
@font-palette-values Test {
|
||||
base-palette: 1;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.gcpm-3::footnote-call,
|
||||
.gcpm-3::footnote-marker {
|
||||
running: footnote;
|
||||
footnote-display: line;
|
||||
footnote-policy: element(header);
|
||||
display: running(heading);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@@ -311,36 +393,31 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.grid {
|
||||
.grid-1 {
|
||||
grid-template-columns: grid;
|
||||
grid-template-rows: inline-grid;
|
||||
grid-template-areas: minmax(0, 1);
|
||||
grid-template: repeat(4);
|
||||
grid-template: fit-content(10%);
|
||||
grid-auto-rows: repeat(4);
|
||||
grid-auto-columns: 0.2fr;
|
||||
grid-auto-rows: subgrid;
|
||||
grid-auto-flow: dense;
|
||||
grid-auto-position: span;
|
||||
grid: auto;
|
||||
grid-row-start: auto;
|
||||
grid: auto-flow;
|
||||
grid-row-start: span;
|
||||
grid-column-start: auto;
|
||||
grid-row-end: auto;
|
||||
grid-column-end: auto;
|
||||
grid-column: auto;
|
||||
grid-row: auto;
|
||||
grid-area: auto;
|
||||
grid-column-gap: auto;
|
||||
grid-row-gap: auto;
|
||||
grid-gap: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.images {
|
||||
object-fit: contain;
|
||||
object-position: cover;
|
||||
image-resolution: snap;
|
||||
image-orientation: scale-down;
|
||||
image-orientation: snap;
|
||||
display: scale-down;
|
||||
display: from-image;
|
||||
display: image("sprite.svg#xywh=40,0,20,20");
|
||||
display: linear-gradient(to bottom, yellow, blue);
|
||||
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
||||
display: repeating-linear-gradient(to bottom, yellow, blue);
|
||||
@@ -348,7 +425,14 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.inline {
|
||||
.images-4 {
|
||||
image-resolution: image("sprite.svg#xywh=40,0,20,20");
|
||||
display: element(#test);
|
||||
display: conic-gradient(at 25% 30%, white, black 60%);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.inline-3 {
|
||||
dominant-baseline: mathematical;
|
||||
alignment-baseline: ideographic;
|
||||
baseline-shift: auto;
|
||||
@@ -358,7 +442,7 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.line-grid {
|
||||
.line-grid-1 {
|
||||
line-grid: create;
|
||||
line-snap: block-start;
|
||||
box-snap: block-end;
|
||||
@@ -367,12 +451,12 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.lists::marker {
|
||||
.lists-3::marker {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.masking {
|
||||
.masking-1 {
|
||||
clip-path: fill-box;
|
||||
clip-rule: stroke-box;
|
||||
mask-image: view-box;
|
||||
@@ -395,19 +479,74 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.motion-1 {
|
||||
motion-path: path(M 100 100 L 300 100 L 200 300 z);
|
||||
motion-offset: auto;
|
||||
motion-rotation: auto;
|
||||
motion: auto;
|
||||
.logical-1 {
|
||||
block-size: logical;
|
||||
inline-size: physical;
|
||||
min-block-size: rotate;
|
||||
min-inline-size: auto;
|
||||
max-block-size: auto;
|
||||
max-inline-size: auto;
|
||||
margin-block-start: auto;
|
||||
margin-block-end: auto;
|
||||
margin-inline-start: auto;
|
||||
margin-inline-end: auto;
|
||||
margin-block: auto;
|
||||
margin-inline: auto;
|
||||
inset-block-start: auto;
|
||||
inset-block-end: auto;
|
||||
inset-inline-start: auto;
|
||||
inset-inline-end: auto;
|
||||
inset-block: auto;
|
||||
inset-inline: auto;
|
||||
inset: auto;
|
||||
padding-block-start: auto;
|
||||
padding-block-end: auto;
|
||||
padding-inline-start: auto;
|
||||
padding-inline-end: auto;
|
||||
padding-block: auto;
|
||||
padding-inline: auto;
|
||||
border-block-start-width: auto;
|
||||
border-block-end-width: auto;
|
||||
border-inline-start-width: auto;
|
||||
border-inline-end-width: auto;
|
||||
border-block-width: auto;
|
||||
border-inline-width: auto;
|
||||
border-block-start-style: auto;
|
||||
border-block-end-style: auto;
|
||||
border-inline-start-style: auto;
|
||||
border-inline-end-style: auto;
|
||||
border-block-style: auto;
|
||||
border-inline-style: auto;
|
||||
border-block-start-color: auto;
|
||||
border-block-end-color: auto;
|
||||
border-inline-start-color: auto;
|
||||
border-inline-end-color: auto;
|
||||
border-block-color: auto;
|
||||
border-inline-color: auto;
|
||||
border-block-start: auto;
|
||||
border-block-end: auto;
|
||||
border-inline-start: auto;
|
||||
border-inline-end: auto;
|
||||
border-block: auto;
|
||||
border-inline: auto;
|
||||
background-image-transform: auto;
|
||||
border-image-transform: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.multicol {
|
||||
.motion-1 {
|
||||
offset-path: ray(45deg closest-side);
|
||||
offset-distance: path(M 100 100 L 300 100 L 200 300 z);
|
||||
offset-anchor: auto;
|
||||
offset-rotate: auto;
|
||||
offset: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.multicol-1 {
|
||||
columns: column;
|
||||
column-count: balance;
|
||||
column-fill: avoid-column;
|
||||
column-gap: auto;
|
||||
column-fill: balance-all;
|
||||
column-rule: auto;
|
||||
column-rule-color: auto;
|
||||
column-rule-style: auto;
|
||||
@@ -417,11 +556,19 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.overflow {
|
||||
max-lines: paged-x;
|
||||
display: paged-y;
|
||||
display: paged-x-controls;
|
||||
display: paged-y-controls;
|
||||
@namespace "http://example.com/css3-namespace/";
|
||||
</style>
|
||||
<style>
|
||||
.overflow-3 {
|
||||
max-lines: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.overflow-4::nth-fragment(1) {
|
||||
scrollbar-gutter: stable;
|
||||
continue: force;
|
||||
display: overflow;
|
||||
display: paginate;
|
||||
display: fragments;
|
||||
}
|
||||
</style>
|
||||
@@ -444,7 +591,19 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.positioning {
|
||||
.paint-api-1 {
|
||||
display: paint(my_logo);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.pointerevents {
|
||||
touch-action: pan-x;
|
||||
display: pan-y;
|
||||
display: manipulation;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.position-3 {
|
||||
offset-before: sticky;
|
||||
offset-end: auto;
|
||||
offset-after: auto;
|
||||
@@ -452,15 +611,14 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.pseudo::selection,
|
||||
.pseudo::spelling-error,
|
||||
.pseudo::grammer-error,
|
||||
.pseuod::placeholder {
|
||||
display: block;
|
||||
.pseudo-4::inactive-selection,
|
||||
.pseudo-4::spelling-error,
|
||||
.pseudo-4::grammer-error {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.regions:region {
|
||||
.regions-1:region {
|
||||
flow-into: element;
|
||||
flow-from: content;
|
||||
region-fragment: break;
|
||||
@@ -469,6 +627,16 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.rhythm-1 {
|
||||
line-height-step: margin;
|
||||
block-step-size: up;
|
||||
block-step-insert: down;
|
||||
block-step-align: nearest;
|
||||
block-step-round: auto;
|
||||
block-step: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@media (device-radius: 50%) {
|
||||
.round-display-1 {
|
||||
shape-inside: outside-shape;
|
||||
@@ -479,48 +647,76 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.ruby {
|
||||
.ruby-1 {
|
||||
ruby-position: ruby-base-container;
|
||||
ruby-merge: ruby-text-container;
|
||||
ruby-align: inter-character;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@scope .scoping {
|
||||
@scope .scoping-1 {
|
||||
div {
|
||||
display: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.scoping:scope-context div,
|
||||
.scoping:host,
|
||||
.scping:host(.foo),
|
||||
.scoping:host-context,
|
||||
.scoping::shadow,
|
||||
.scoping::content,
|
||||
.scoping /deep/ span {
|
||||
|
||||
.scoping-1:scope-context div,
|
||||
.scoping-1:host,
|
||||
.scoping-1:host(.foo),
|
||||
.scoping-1:host-context,
|
||||
.scoping-1::shadow,
|
||||
.scoping-1::content,
|
||||
.scoping-1 /deep/ span {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.selectors3:target,
|
||||
.selectors3:enabled,
|
||||
.selectors3:disabled,
|
||||
.selectors3:checked,
|
||||
.selectors3:indeterminate,
|
||||
.selectors3:root,
|
||||
.selectors3:empty,
|
||||
.selectors3:last-child,
|
||||
.selectors3:last-of-type,
|
||||
.selectors3:first-of-type,
|
||||
.selectors3:only-child,
|
||||
.selectors3:only-of-type,
|
||||
.selectors3:nth-child(2n+1),
|
||||
.selectors3:nth-last-child(-n+2),
|
||||
.selectors3:nth-of-type(2n+1),
|
||||
.selectors3:nth-last-of-type(n+2),
|
||||
.selectors3:not([DISABLED]) {
|
||||
.scroll-snap-1 {
|
||||
scroll-snap-type: x;
|
||||
scroll-padding: y;
|
||||
scroll-snap-margin: mandatory;
|
||||
scroll-snap-align: proximity;
|
||||
scroll-snap-stop: auto;
|
||||
scroll-padding-top: auto;
|
||||
scroll-padding-right: auto;
|
||||
scroll-padding-bottom: auto;
|
||||
scroll-padding-left: auto;
|
||||
scroll-padding-inline-start: auto;
|
||||
scroll-padding-block-start: auto;
|
||||
scroll-padding-inline-end: auto;
|
||||
scroll-padding-block-end: auto;
|
||||
scroll-padding-block: auto;
|
||||
scroll-padding-inline: auto;
|
||||
scroll-snap-margin-top: auto;
|
||||
scroll-snap-margin-right: auto;
|
||||
scroll-snap-margin-bottom: auto;
|
||||
scroll-snap-margin-left: auto;
|
||||
scroll-snap-margin-inline-start: auto;
|
||||
scroll-snap-margin-block-start: auto;
|
||||
scroll-snap-margin-inline-end: auto;
|
||||
scroll-snap-margin-block-end: auto;
|
||||
scroll-snap-margin-block: auto;
|
||||
scroll-snap-margin-inline: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.selectors:target,
|
||||
.selectors:enabled,
|
||||
.selectors:disabled,
|
||||
.selectors:checked,
|
||||
.selectors:indeterminate,
|
||||
.selectors:root,
|
||||
.selectors:empty,
|
||||
.selectors:last-child,
|
||||
.selectors:last-of-type,
|
||||
.selectors:first-of-type,
|
||||
.selectors:only-child,
|
||||
.selectors:only-of-type,
|
||||
.selectors:nth-child(2n+1),
|
||||
.selectors:nth-last-child(-n+2),
|
||||
.selectors:nth-of-type(2n+1),
|
||||
.selectors:nth-last-of-type(n+2),
|
||||
.selectors:not([DISABLED]) {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -565,7 +761,7 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.shapes {
|
||||
.shapes-1 {
|
||||
shape-outside: margin-box;
|
||||
shape-image-threshold: inset(50% 50% 50% 50%);
|
||||
shape-margin: circle(100px 50px 100px);
|
||||
@@ -574,21 +770,10 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.sizing {
|
||||
.sizing-3 {
|
||||
display: max-content;
|
||||
display: min-content;
|
||||
display: fit-content;
|
||||
display: fill-available;
|
||||
display: repudiate-floats;
|
||||
display: contain-floats;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.snappoints {
|
||||
scroll-snap-type: mandatory;
|
||||
scroll-snap-points-x: proximity;
|
||||
scroll-snap-points-y: auto;
|
||||
scroll-snap-destination: auto;
|
||||
scroll-snap-coordinate: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@@ -609,8 +794,18 @@
|
||||
display: reduced;
|
||||
}
|
||||
</style>
|
||||
<style style="display: auto">
|
||||
.style-attr {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.syntax {
|
||||
.syntax-3 {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.tables-3 {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -620,9 +815,10 @@
|
||||
line-break: loose;
|
||||
overflow-wrap: strict;
|
||||
tab-size: match-parent;
|
||||
display: hanging;
|
||||
text-align-all: hanging;
|
||||
display: each-line;
|
||||
display: full-width;
|
||||
display: anywhere;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@@ -669,7 +865,12 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.transforms {
|
||||
.timing-1 {
|
||||
display: frames(2);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.transforms-1 {
|
||||
backface-visibility: flat;
|
||||
perspective: preserve-3d;
|
||||
perspective-origin: matrix(1);
|
||||
@@ -722,7 +923,7 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.values {
|
||||
.values-3 {
|
||||
display: 1ch;
|
||||
display: 1vw;
|
||||
display: 1vh;
|
||||
@@ -730,11 +931,10 @@
|
||||
display: 1q;
|
||||
display: 1turn;
|
||||
display: calc(100%/3 - 2*1em - 2*1px);
|
||||
display: toggle(italic, normal);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.variables {
|
||||
.variables-1 {
|
||||
var-foo: var(foo);
|
||||
}
|
||||
</style>
|
||||
@@ -746,17 +946,17 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.web-animations {
|
||||
.web-animations-1 {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.will-change {
|
||||
.will-change-1 {
|
||||
will-change: scroll-position;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.writing-modes {
|
||||
.writing-modes-3 {
|
||||
writing-mode: before;
|
||||
text-orientation: after;
|
||||
text-combine-upright: mixed;
|
||||
@@ -773,40 +973,107 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.html5-elements,
|
||||
article,
|
||||
section,
|
||||
nav,
|
||||
aside,
|
||||
header,
|
||||
footer,
|
||||
figure,
|
||||
figcaption,
|
||||
main,
|
||||
data,
|
||||
time,
|
||||
mark,
|
||||
ruby,
|
||||
.html5,
|
||||
picture,
|
||||
rb,
|
||||
rt,
|
||||
rtc,
|
||||
rp,
|
||||
bdi,
|
||||
wbr,
|
||||
embed,
|
||||
video,
|
||||
audio,
|
||||
source,
|
||||
track,
|
||||
datalist,
|
||||
keygen,
|
||||
output,
|
||||
progress,
|
||||
meter,
|
||||
template,
|
||||
canvas {
|
||||
slot,
|
||||
template {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.svg2,
|
||||
animate,
|
||||
animateMotion,
|
||||
animateTransform,
|
||||
circle,
|
||||
clipPath,
|
||||
cursor,
|
||||
defs,
|
||||
desc,
|
||||
discard,
|
||||
ellipse,
|
||||
feBlend,
|
||||
feColorMatrix,
|
||||
feComponentTransfer,
|
||||
feComposite,
|
||||
feConvolveMatrix,
|
||||
feDiffuseLighting,
|
||||
feDisplacementMap,
|
||||
feDistantLight,
|
||||
feDropShadow,
|
||||
feFlood,
|
||||
feFuncA,
|
||||
feFuncB,
|
||||
feFuncG,
|
||||
feFuncR,
|
||||
feGaussianBlur,
|
||||
feImage,
|
||||
feMerge,
|
||||
feMergeNode,
|
||||
feMorphology,
|
||||
feOffset,
|
||||
fePointLight,
|
||||
feSpecularLighting,
|
||||
feSpotLight,
|
||||
feTile,
|
||||
feTurbulence,
|
||||
filter,
|
||||
foreignObject,
|
||||
g,
|
||||
hatch,
|
||||
hatchpath,
|
||||
image,
|
||||
line,
|
||||
linearGradient,
|
||||
marker,
|
||||
mesh,
|
||||
meshgradient,
|
||||
meshpatch,
|
||||
meshrow,
|
||||
metadata,
|
||||
mpath,
|
||||
path,
|
||||
pattern,
|
||||
polygon,
|
||||
polyline,
|
||||
radialGradient,
|
||||
rect,
|
||||
set,
|
||||
solidcolor,
|
||||
stop,
|
||||
switch,
|
||||
symbol,
|
||||
text,
|
||||
textPath,
|
||||
tspan,
|
||||
unknown,
|
||||
use,
|
||||
view {
|
||||
color-interpolation: crispEdges;
|
||||
color-rendering: geometricPrecision;
|
||||
cx: optimizeQuality;
|
||||
cy: painted;
|
||||
d: visiblePainted;
|
||||
image-rendering: visibleFill;
|
||||
marker-end: stroke;
|
||||
marker-mid: viewport;
|
||||
marker-start: visibleStroke;
|
||||
pointer-events: context-fill;
|
||||
r: context-stroke;
|
||||
rx: fixed-position;
|
||||
ry: miter;
|
||||
shape-rendering: miter-clip;
|
||||
solid-color: non-scaling-stroke;
|
||||
solid-opacity: non-scaling-size;
|
||||
stop-color: non-rotation;
|
||||
stop-opacity: child(1);
|
||||
text-anchor: icc-color(foo);
|
||||
vector-effect: auto;
|
||||
x: auto;
|
||||
y: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user