diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-option-arbitrary-content-not-displayed.tentative.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-option-arbitrary-content-not-displayed.tentative.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-option-arbitrary-content-not-displayed.tentative.html b/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-option-arbitrary-content-not-displayed.tentative.html new file mode 100644 index 0000000000..e7cacdba27 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-option-arbitrary-content-not-displayed.tentative.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> +<title>HTMLSelectListElement Test: option arbitrary content not displayed</title> +<link rel="author" title="Ionel Popescu" href="mailto:iopopesc@microsoft.com"> +<link rel=match href="selectlist-option-arbitrary-content-not-displayed-ref.tentative.html"> + +<option> + option with image not displayed + <img src="/images/green-256x256.png"> +</option> + +<selectlist id="selectList0"> + <option id="selectList0-option"> + option with image not displayed + <img src="/images/green-256x256.png"> + </option> +</selectlist> + +<script> + const selectList0Option = document.getElementById("selectList0-option"); + + // removing an option from <selectlist> should revert back to its original display behavior + selectList0Option.remove(); + document.body.append(selectList0Option); +</script> |