diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/xhtml/elements/img')
7 files changed, 79 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/003-novalid.xhtml b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/003-novalid.xhtml new file mode 100644 index 000000000..7cc3479b6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/003-novalid.xhtml @@ -0,0 +1,8 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>invalid ismap</title> +</head> +<body> + <p><img src='foo' alt='bar' ismap='ismap'/></p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/004-novalid.xhtml b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/004-novalid.xhtml new file mode 100644 index 000000000..a771247e3 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/004-novalid.xhtml @@ -0,0 +1,9 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>invalid img@usemap as descendant of <a> element</title> +</head> +<body> + <map name="bar"/> + <p id="foo"><a href="#foo"><img src="http://www.w3.org/Icons/w3c_main.png" usemap="#bar" alt=""/></a></p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/043-isvalid.xhtml b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/043-isvalid.xhtml new file mode 100644 index 000000000..21a73c761 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/043-isvalid.xhtml @@ -0,0 +1,29 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title><img></title> +</head> +<body> + <!-- is structured inline --> + <p><a href='foo'><img + src="url" + alt="text" + width="42" + height="095" + ismap="ismap" + class="class" + xml:lang="en"></img></a></p> + + <!-- is strictly inline --> + <p><a href='foo'><dfn><img + src="url" + alt="text" + width="42" + height="095" + ismap="ismap" + class="class" + xml:lang="en"></img></dfn></a></p> + + <!-- src and alt are required, others optional --> + <p><img src="ur" alt="text"></img></p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/051-isvalid.xhtml b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/051-isvalid.xhtml new file mode 100644 index 000000000..660051a3b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/051-isvalid.xhtml @@ -0,0 +1,8 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>img with 0 value for width and height</title> +</head> +<body> +<img src="url" width="0" height="0" alt="bar"/> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/051-novalid.xhtml b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/051-novalid.xhtml new file mode 100644 index 000000000..5ba54ab82 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/051-novalid.xhtml @@ -0,0 +1,8 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>img with 0 value for width and height</title> +</head> +<body> +<img src="url" width="-1" height="-1"/> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/052-isvalid.xhtml b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/052-isvalid.xhtml new file mode 100644 index 000000000..0f7fe8702 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/052-isvalid.xhtml @@ -0,0 +1,8 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>img with positive values for width and height</title> +</head> +<body> +<img src="url" width="10" height="10" alt="bar"/> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/302-isvalid.xhtml b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/302-isvalid.xhtml new file mode 100644 index 000000000..400af6489 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/xhtml/elements/img/302-isvalid.xhtml @@ -0,0 +1,9 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>valid img@usemap</title> +</head> +<body> + <map name="bar"/> + <p><img src="foo.png" usemap="#bar" alt="bar"/></p> +</body> +</html> |