Instruction set reference
HIPE_OP_ADD_STYLE_RULE
Sent by a client application to the display server to specify a CSS style rule.
- location: 0. Not used.
- arg[0]: The CSS descriptor of element(s) the rule will apply to (e.g. "div", "#element", etc.).
- arg[1]: A set of style properties, separated by semicolons (e.g. "border:0; width:100%;").
Notes
This instruction can be used any number of times before your program displays output, but are not guaranteed to be respected by the underlying WebKit engine once the first content element manipulations are performed. Therefore, style rules should generally be specified before anything else.
For styling individual elements after you have created them, use the HIPE_OP_SET_STYLE instruction instead.
Some combinations of CSS rules can produce undefined behaviour involving race conditions where application layouts may either render correctly or incorrectly each time the application runs. To avoid this, ensure that multiple layout elements are not defined purely relative to one another, particularly when using tables.