CSS rules

A CSS element defines a set of assignable properties and a set of attributes that represent the current state of the element. The property values determine how a component displays.

The web component framework provides a server-side CSS engine that can process and apply CSS rules on web components just before printing them in the current response, to customize their rendering. Each web component class contains a hierarchy of CSS elements to which CSS rules can be applied. The values of the assignable properties determine the way that a component displays. The attributes serve as attribute selectors for writing CSS rules.

Therefore, to customize a web component with a CSS, you set its assignable properties.

This section assumes that you are familiar with CSS2. For more information about CSS2, see W3C CSS2 Specification.