Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 3 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webvtt/api/cue-pseudo-parsing.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>WebVTT: parsing of the ::cue and ::cue() pseudo-elements</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
// Only the double-colon forms are valid.
test_valid_selector('::cue');
test_valid_selector('::cue(v)');
test_valid_selector('::cue(*)');
test_valid_selector('::cue(.loud)');
test_valid_selector('video::cue');
// ::cue is not one of the CSS Level 2 pseudo-elements, so the legacy
// single-colon syntax does not apply to it.
test_invalid_selector(':cue');
test_invalid_selector(':cue(v)');
test_invalid_selector(':cue(*)');
</script>