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