(List<CssSelector> selectors)
| 215 | } |
| 216 | |
| 217 | @Override |
| 218 | public void selectors(List<CssSelector> selectors) |
| 219 | { |
| 220 | for (CssSelector selector : selectors) |
| 221 | { |
| 222 | if (!context.featureReport.hasFeature(FeatureEnum.MEDIA_OVERLAYS_ACTIVE_CLASS) |
| 223 | && findClassName(selector, ".-epub-media-overlay-active")) |
| 224 | { |
| 225 | report.message(MessageId.CSS_029, |
| 226 | getCorrectedEPUBLocation(selector.getLocation().getLine(), |
| 227 | selector.getLocation().getColumn(), selector.toCssString()), |
| 228 | "-epub-media-overlay-active", "media:active-class"); |
| 229 | } |
| 230 | if (!context.featureReport.hasFeature(FeatureEnum.MEDIA_OVERLAYS_PLAYBACK_ACTIVE_CLASS) |
| 231 | && findClassName(selector, ".-epub-media-overlay-playing")) |
| 232 | { |
| 233 | report.message(MessageId.CSS_029, |
| 234 | getCorrectedEPUBLocation(selector.getLocation().getLine(), |
| 235 | selector.getLocation().getColumn(), selector.toCssString()), |
| 236 | "-epub-media-overlay-playing", "media:playback-active-class"); |
| 237 | } |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | private boolean findClassName(CssConstruct construct, String name) |
| 242 | { |
nothing calls this directly
no test coverage detected