diff options
Diffstat (limited to 'testing/web-platform/tests/accname/name')
-rw-r--r-- | testing/web-platform/tests/accname/name/comp_label.html | 6 | ||||
-rw-r--r-- | testing/web-platform/tests/accname/name/comp_name_from_content.html | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/accname/name/comp_label.html b/testing/web-platform/tests/accname/name/comp_label.html index 8b569ba6ff..3eda2a5367 100644 --- a/testing/web-platform/tests/accname/name/comp_label.html +++ b/testing/web-platform/tests/accname/name/comp_label.html @@ -186,6 +186,12 @@ x x </button> +<span style="display: none"> +<button data-expectedlabel="" data-testname="Hidden button's label should be the empty string" class="ex"> +x +</button> +</span> + <!-- Step 2B: LabelledBy supercedes 2D: AriaLabel, also see wpt/accname/name/comp_labelledby.html --> <a href="#" aria-labelledby="span6" aria-label="foo" data-expectedlabel="label" data-testname="link's aria-labelledby name supercedes aria-label" class="ex">x</a> <span id="span6">label</span> diff --git a/testing/web-platform/tests/accname/name/comp_name_from_content.html b/testing/web-platform/tests/accname/name/comp_name_from_content.html index deae6699c6..3504658ea4 100644 --- a/testing/web-platform/tests/accname/name/comp_name_from_content.html +++ b/testing/web-platform/tests/accname/name/comp_name_from_content.html @@ -49,6 +49,12 @@ content: " after "; /* [sic] leading and trailing space */ content: " after " / " alt-after "; /* Override the previous line for engines that support the Alternative Text syntax. */ } + .fallback-before-empty::before { + content: "before" / ""; + } + .fallback-before-image-empty::before { + content: "before " url(/images/blue.png) / ""; + } .fallback-before-mixed::before { content: " before "; /* [sic] leading and trailing space */ content: " before " / " start " attr(data-alt-text-before) " end "; /* Override the previous line for engines that support the Alternative Text syntax. */ @@ -145,6 +151,10 @@ <a href="#" data-alt-text-before="alt-before" data-alt-text-after="alt-after" data-expectedlabel="start alt-before end label start alt-after end" data-testname="link name from fallback content mixing attr() and strings with ::before and ::after" class="ex fallback-before-mixed fallback-after-mixed">label</a><br> <br> +<h1>Empty alternative text for CSS content in pseudo-elements when applied to primitive appearance form controls</h1> +<p><input data-expectedlabel="" data-testname="primitive radio input with ::before containing empty alternative text" class="ex fallback-before-empty" type=radio style=appearance:none> +<p><input data-expectedlabel="" data-testname="primitive radio input with ::before containing empty alternative text for an image" class="ex fallback-before-image-empty" type=radio style=appearance:none> + <h1>simple w/ for each child</h1> <button data-expectedlabel="one two three" data-testname="button name from content for each child" class="ex"><span>one</span> <span>two</span> <span>three</span></button><br> <h3 data-expectedlabel="one two three" data-testname="heading name from content for each child" class="ex"><span>one</span> <span>two</span> <span>three</span></h3> |