File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @vanilla-extract/css ' : minor
3
+ ---
4
+
5
+ Add support for ` CSS anchor positioning ` rules types
Original file line number Diff line number Diff line change 1
1
import type { CSSVarFunction , MapLeafNodes } from '@vanilla-extract/private' ;
2
- import type { AtRule , Properties } from 'csstype' ;
2
+ import type { AtRule , Globals , Properties } from 'csstype' ;
3
3
4
4
import type { SimplePseudos } from './simplePseudos' ;
5
5
@@ -16,8 +16,33 @@ interface ContainerProperties {
16
16
containerName ?: string ;
17
17
}
18
18
19
+ interface AnchorProperties {
20
+ anchorName ?: 'none' | `--${string } ` | Globals | ( string & { } ) ;
21
+ positionAnchor ?: 'auto' | `--${string } ` | Globals ;
22
+ positionArea ?:
23
+ | 'none'
24
+ | 'all'
25
+ | 'bottom'
26
+ | 'center'
27
+ | 'end'
28
+ | 'left'
29
+ | 'right'
30
+ | 'self-end'
31
+ | 'self-start'
32
+ | 'start'
33
+ | 'top'
34
+ | 'x-end'
35
+ | 'x-start'
36
+ | 'y-end'
37
+ | 'y-start'
38
+ | Globals
39
+ | ( string & { } ) ;
40
+ positionVisibility ?: 'always' | 'anchors-visible' | 'no-overflow' | Globals ;
41
+ }
42
+
19
43
type CSSTypeProperties = Properties < number | ( string & { } ) > &
20
- ContainerProperties ;
44
+ ContainerProperties &
45
+ AnchorProperties ;
21
46
22
47
export type CSSProperties = {
23
48
[ Property in keyof CSSTypeProperties ] :
You can’t perform that action at this time.
0 commit comments