Performance consideration for cascading style sheet implementation
I have the plan for an UI component hierarchy. Each UI component contains zero or more children UI components, and each UI component may set an optional theme. A theme is responsible for skinning a given hierarchy of UI components, mostly influencing over the property values. A theme may link a cascading style sheet file, which is a subset of CSS3 where properties are implemented based on runtime type information. For instance, a .style1 selector definitely needs type reflection, as it's unknown which kind of UI component it is matching and what properties will be available for it in the CSS rule. The engine where these UI components are implemented runs over a HTML5 engine, and native CSS files cannot be targeted since the CSS subset works differently from the native CSS (however, it's used for skinning the UI components, through their various properties that alter inline styling and internally create CSS blocks for customizing character selection and scrollbar). Given this description, can I expect a bad performance when applying cascading style sheets or is it going to act normally?
I have the plan for an UI component hierarchy. Each UI component contains zero or more children UI components, and each UI component may set an optional theme.
A theme is responsible for skinning a given hierarchy of UI components, mostly influencing over the property values.
A theme may link a cascading style sheet file, which is a subset of CSS3 where properties are implemented based on runtime type information. For instance, a .style1
selector definitely needs type reflection, as it's unknown which kind of UI component it is matching and what properties will be available for it in the CSS rule.
The engine where these UI components are implemented runs over a HTML5 engine, and native CSS files cannot be targeted since the CSS subset works differently from the native CSS (however, it's used for skinning the UI components, through their various properties that alter inline styling and internally create CSS blocks for customizing character selection and scrollbar).
Given this description, can I expect a bad performance when applying cascading style sheets or is it going to act normally?