A string type that represents non-relative CSS size values.
This is a subtype of the '<length> type'
defined in the CSS specifications. Allowed values are only absolute CSS sizes like "1px" or "2em". Percentage sizes like "50%" and the special values "auto" and "inherit" are NOT allowed. Mathematical expressions using the CSS3 calc(expression)
operator are allowed as long as they do not use percentage sizes.
Note that CSS might not allow all these values for every CSS property representing a size. So even if a value is accepted by sap.ui.core.AbsoluteCSSSize
, it still might have no effect in a specific context. In other words: UI5 controls usually don't extend the range of allowed values in CSS.
Units
Valid font-relative units are em, ex
and rem
. Supported absolute units are cm, mm, in, pc, pt
and px
. Other units are not supported.
Mathematical Expressions
Expressions inside the calc()
operator are only roughly checked for validity. Not every value that this type accepts is a valid expression in the sense of the CSS spec. But vice versa, any expression that is valid according to the spec should be accepted by this type. The current implementation is based on the CSS3 Draft specification from 22 April 2015
.
Noteworthy details:
Future versions of UI5 might check calc()
expressions in more detail, so applications should not assume that a value, that is invalid according to the CSS spec but currently accepted by this type still will be accepted by future versions of this type.
Node | Description |
---|
Method | Description |
---|