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();