diff options
Diffstat (limited to 'testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images')
8 files changed, 68 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/.gitkeep b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/.gitkeep new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/.gitkeep diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-dim-ref.html b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-dim-ref.html new file mode 100644 index 000000000..b1adb6830 --- /dev/null +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-dim-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<meta charset=utf-8> +<title>img width/height - reference</title> +<style> +p { width: 50px; height: 50px; } +</style> +<p><img src=/images/green.png> +<p><img src=/images/green.png style="width: 10px"> +<p><img src=/images/green.png style="height: 10px"> +<p><img src=/images/green.png style="width: 10%"> +<p><img src=/images/green.png style="height: 10%"> diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-dim.html b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-dim.html new file mode 100644 index 000000000..2d636c941 --- /dev/null +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-dim.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<meta charset=utf-8> +<title>img width/height</title> +<link rel=match href=img-dim-ref.html> +<style> +p { width: 50px; height: 50px; } +</style> +<p><img src=/images/green.png> +<p><img src=/images/green.png width=10> +<p><img src=/images/green.png height=10> +<p><img src=/images/green.png width=10%> +<p><img src=/images/green.png height=10%> diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img_border-ref.xhtml b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img_border-ref.xhtml new file mode 100644 index 000000000..0050c542c --- /dev/null +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img_border-ref.xhtml @@ -0,0 +1,9 @@ +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>IMG - Border in CSS</title> +</head> +<body> +<p><img src="../../../../../images/blue.png"/></p> +<p><img src="../../../../../images/blue.png" style="border-width:50px; border-style:solid;"/></p> +</body> +</html> diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img_border_percent.xhtml b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img_border_percent.xhtml new file mode 100644 index 000000000..da74fb32b --- /dev/null +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img_border_percent.xhtml @@ -0,0 +1,10 @@ +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>IMG - Border= value in percent</title> +<link rel="match" href="img_border-ref.xhtml"/> +</head> +<body> +<p><img src="../../../../../images/blue.png" border="0%"/></p> +<p><img src="../../../../../images/blue.png" border="50%"/></p> +</body> +</html> diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border-ref.xhtml b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border-ref.xhtml new file mode 100644 index 000000000..6eaaa0ba1 --- /dev/null +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border-ref.xhtml @@ -0,0 +1,8 @@ +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>OBJECT - border in CSS</title> +</head> +<body> +<p><object data="../../../../images/blue.png" type="image/png" style="border-width:50px; border-style:solid;"></object></p> +</body> +</html> diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border_perc.xhtml b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border_perc.xhtml new file mode 100644 index 000000000..3663e9ce6 --- /dev/null +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border_perc.xhtml @@ -0,0 +1,9 @@ +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>OBJECT - border=value in %</title> +<link rel="match" href="object_border-ref.xhtml"/> +</head> +<body> +<p><object data="../../../../images/blue.png" type="image/png" border="50%"></object></p> +</body> +</html> diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border_pixel.xhtml b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border_pixel.xhtml new file mode 100644 index 000000000..55f7f0a3b --- /dev/null +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/object_border_pixel.xhtml @@ -0,0 +1,9 @@ +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>OBJECT - border=pixel</title> +<link rel="match" href="object_border-ref.xhtml"/> +</head> +<body> +<p><object data="../../../../images/blue.png" type="image/png" border="50"></object></p> +</body> +</html> |