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
The instruction is ignored if the selector or the properties contain </. See "Tags, attributes and styles".
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.
