Style properties
Properties can hold different kind of values:
- Length is a number followed by a unit such as
40px. - Reserved keywords such as
auto,expand,fitandrepeat. - A dep declared by the dependency description language such as
$btn.img.
Here is the full list of valid properties:
| Property name | Accepted values | Meaning |
|---|---|---|
left |
Length | |
right |
Length | |
top |
Length | |
bottom |
Length | |
height |
Length | |
width |
Length, auto, expand |
|
margin |
Length, auto, expand |
|
margin-left |
Length, auto, expand |
|
margin-right |
Length, auto, expand |
|
margin-top |
Length, auto |
|
margin-bottom |
Length, auto |
|
padding |
Length | |
padding-left |
Length | |
padding-right |
Length | |
padding-top |
Length | |
padding-bottom |
Length | |
border |
Length | |
border-left |
Length | |
border-right |
Length | |
border-top |
Length | |
border-bottom |
Length | |
layout |
TBD | |
background-image |
dep only | |
background-image-rule |
fit or repeat |