* @param css CSS
*/
private void processStylesheet(String css) {
try {
CSSOMParser parser = new CSSOMParser();
InputSource is = new InputSource(new StringReader(css));
CSSStyleSheet stylesheet = parser.parseStyleSheet(is);
CSSRuleList list = stylesheet.getCssRules();
// ArrayList assists = new ArrayList();
for (int i = 0; i < list.getLength(); i++) {
CSSRule rule = list.item(i);
if (rule instanceof CSSStyleRule) {
CSSStyleRule styleRule = (CSSStyleRule) rule;
String selector = styleRule.getSelectorText();
SelectorList selectors = parser.parseSelectors(new InputSource(new StringReader(selector)));
for (int j = 0; j < selectors.getLength(); j++) {
Selector sel = selectors.item(j);
if (sel instanceof ConditionalSelector) {
Condition cond = ((ConditionalSelector) sel).getCondition();
SimpleSelector simple = ((ConditionalSelector) sel).getSimpleSelector();