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