File tree 2 files changed +21
-1
lines changed
language-server/src/plugins/html
svelte2tsx/src/htmlxtojsx_v2/nodes 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,22 @@ const svelteAttributes: IAttributeData[] = [
64
64
name : 'bind:offsetHeight' ,
65
65
description : 'Available for block level elements. (read-only)'
66
66
} ,
67
+ {
68
+ name : 'bind:contentRect' ,
69
+ description : 'Available for all elements. (read-only)'
70
+ } ,
71
+ {
72
+ name : 'bind:contentBoxSize' ,
73
+ description : 'Available for all elements. (read-only)'
74
+ } ,
75
+ {
76
+ name : 'bind:borderBoxSize' ,
77
+ description : 'Available for all elements. (read-only)'
78
+ } ,
79
+ {
80
+ name : 'bind:devicePixelContentBoxSize' ,
81
+ description : 'Available for all elements. (read-only)'
82
+ } ,
67
83
{
68
84
name : 'bind:this' ,
69
85
description :
Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ const oneWayBindingAttributes: Set<string> = new Set([
17
17
'ended' ,
18
18
'readyState' ,
19
19
'naturalWidth' ,
20
- 'naturalHeight'
20
+ 'naturalHeight' ,
21
+ 'contentRect' ,
22
+ 'contentBoxSize' ,
23
+ 'borderBoxSize' ,
24
+ 'devicePixelContentBoxSize'
21
25
] ) ;
22
26
/**
23
27
* List of all binding names that are transformed to sth like `binding = variable`.
You can’t perform that action at this time.
0 commit comments