240241242243244245246247248249
for (int i = 0; i < rc; i++) { final StyleRule rule = styleSheet.getRule(i); if (rule instanceof CSSCounterRule) { final CSSCounterRule drule = (CSSCounterRule) rule; rules.add(drule); } } }