diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html/elements/sub')
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html/elements/sub/model-isvalid.html | 24 | ||||
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html/elements/sub/model-novalid.html | 18 |
2 files changed, 42 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/sub/model-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/sub/model-isvalid.html new file mode 100644 index 0000000000..2dbd047f46 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/elements/sub/model-isvalid.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset=utf-8> + <title><sub></title> +</head> +<body> + <!-- is structured inline --> + <p><sub class="class" lang="en">text</sub></p> + + <!-- is strictly inline --> + <p><dfn><sub class="class" lang="en">text</sub></dfn></p> + + <!-- can be empty --> + <p>text <sub></sub></p> + <p>text <dfn><sub></sub></dfn></p> + + <!-- can contain interactive --> + <p><sub><a>text</a></sub></p> + <p><dfn><sub><a>text</a></sub></dfn></p> + + <!-- cannot contain structured inline --> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/sub/model-novalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/sub/model-novalid.html new file mode 100644 index 0000000000..41e40a63d7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/elements/sub/model-novalid.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset=utf-8> + <title><sub></title> +</head> +<body> + <!-- not a block --> + <sub>text</sub> + + <!-- cannot contain structured inline --> + <p><sub><ul><li>text</li></ul></sub></p> + + <!-- cannot contain interactive if parent forbids interactive --> + <p><a><sub><a>text</a></sub></a></p> + <p><a><dfn><sub><a>text</a></sub></dfn></a></p> +</body> +</html> |