Skip to content

Commit 9e0ef24

Browse files
committed
1 parent a801b7b commit 9e0ef24

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
syn match cssFontProp contained "\<shape-inside\>"
2+
syn match cssFontProp contained "\<border-boundary\>"
3+
syn match cssFontProp contained "\<polar-\(angle\|distance\)\>"
4+
syn keyword cssFontAttr contained parent polar
5+
syn match cssFontAttr contained "\<outside-shape\>"
6+
syn match cssFontAttr contained "\<shape-box\>"
7+
syn match cssMediaProp contained /device-radius/

after/syntax/html.vim

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ syn include @htmlCss syntax/css/css-masking-1.vim
3434
syn include @htmlCss syntax/css/css-overflow-3.vim
3535
syn include @htmlCss syntax/css/css-pseudo-4.vim
3636
syn include @htmlCss syntax/css/css-page-floats-3.vim
37+
syn include @htmlCss syntax/css/css-round-display-1.vim
3738
syn include @htmlCss syntax/css/css-ruby-1.vim
3839
syn include @htmlCss syntax/css/css-scoping-1.vim
3940
syn include @htmlCss syntax/css/css-shapes-1.vim

test/test.css

+9
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,15 @@
377377
display: avoid-region;
378378
}
379379

380+
@media (device-radius: 50%) {
381+
.round-display-1 {
382+
shape-inside: outside-shape;
383+
border-boundary: shape-box;
384+
polar-angle: parent;
385+
polar-distance: polar;
386+
}
387+
}
388+
380389
.ruby {
381390
ruby-position: ruby-base-container;
382391
ruby-merge: ruby-text-container;

test/test.html

+10
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,16 @@
416416
}
417417
</style>
418418
<style>
419+
@media (device-radius: 50%) {
420+
.round-display-1 {
421+
shape-inside: outside-shape;
422+
border-boundary: shape-box;
423+
polar-angle: parent;
424+
polar-distance: polar;
425+
}
426+
}
427+
</style>
428+
<style>
419429
.ruby {
420430
ruby-position: ruby-base-container;
421431
ruby-merge: ruby-text-container;

0 commit comments

Comments
 (0)