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