H-SMILE core. CSSS! (css-script) language.

The calc() function.

The calc(<expression>) function can be used wherever length values are allowed. The expression within the parethesis is computed at the same time as em lengths are computed. In h-smile core engine expression inside the calc() is being interpreted by CSSS! evaluation engine can use limited subset of CSSS! features. In particular you can access DOM attributes and states of the element using following notation:

Where self designates the element for what the calc() is called.

Functions (methods) supported by the DOM element inside the calc()

There is a set of methods that are defined for the DOM element in CSSS! in context of calc() execution: