diff --git a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_embedded_control-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_embedded_control-expected.txt index a2511f15a750..de3a0e73a4d7 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_embedded_control-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_embedded_control-expected.txt @@ -2,6 +2,61 @@ Tests the #comp_embedded_control portions of the AccName Name Computation algori Flash the screen times + Flash the screen times + + Flash the screen times + + Flash the screen times + + Flash the screen 3 times + + Flash the screen 3 times + + Flash the screen +1 +2 +3 +4 +5 + times + + Flash the screen times + + Flash the screen times + + Flash the screen 3.0 times + + Flash the screen 3.0 times + + Flash the screen 3.0 times + + Flash the screen 3.0 times + + FAIL checkbox label with embedded textfield assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" PASS label of embedded textfield inside checkbox label +FAIL checkbox label with embedded select:not([size]) assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded select:not([size]) inside checkbox label +FAIL checkbox label with embedded select[size] assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded select[size] inside checkbox label +FAIL checkbox label with embedded combobox (input[type=text]) assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded combobox (input[type=text]) inside checkbox label +FAIL checkbox label with embedded combobox (span) assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded combobox (span) inside checkbox label +FAIL checkbox label with embedded combobox (div) assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded combobox (div) inside checkbox label +FAIL checkbox label with embedded listbox>option[aria-selected=true] assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded listbox>option[aria-selected=true] inside checkbox label +FAIL checkbox label with embedded input[type=range] assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded input[type=range] inside checkbox label +FAIL checkbox label with embedded input[type=number] assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded input[type=number] inside checkbox label +FAIL checkbox label with embedded ARIA slider (aria-valuenow) assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded ARIA slider (aria-valuenow) inside checkbox label +FAIL checkbox label with embedded ARIA slider (aria-valuetext) assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded ARIA slider (aria-valuetext) inside checkbox label +FAIL checkbox label with embedded ARIA spinbutton (aria-valuenow) assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded ARIA spinbutton (aria-valuenow) inside checkbox label +FAIL checkbox label with embedded ARIA spinbutton (aria-valuetext) assert_equals: expected "Flash the screen 3 times" but got "Flash the screen number of times times" +PASS label of embedded ARIA spinbutton (aria-valuetext) inside checkbox label diff --git a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_embedded_control.html b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_embedded_control.html index 09856ef662e9..2cdb5cbdf7d0 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_embedded_control.html +++ b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_embedded_control.html @@ -13,24 +13,119 @@

Tests the #comp_embedded_control portions of the AccName Name Computation algorithm.

+ +

+ + +

+ + + +

+ + + +

+ +

+ +

+ + + + + +

- + +

+ +

+ +

+ +

+ +

+ +

---> @@ -13,16 +14,79 @@

Tests the #comp_hidden_not_referenced portions of the AccName Name Computation algorithm.

-

- heading - - label + + + + + + + + + visible to all users, + + + + + + +

+ visible to all users, + + hidden from all users, + un-hidden for all users +

- + + + + + + + + + + - \ No newline at end of file + diff --git a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_host_language_label-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_host_language_label-expected.txt index 23ee626b29f3..5c4146a187ea 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_host_language_label-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_host_language_label-expected.txt @@ -85,7 +85,7 @@ PASS html: label[for] input[type=week] PASS html: label input[type=checkbox] encapsulation PASS html: label input[type=color] encapsulation FAIL html: label input[type=date] encapsulation assert_equals: expected "date label" but got "month / day / year date label" -FAIL html: label input[type=datetime-local] encapsulation assert_equals: expected "datetime-local label" but got "month / day / year , 12 : 30 PM datetime-local label" +FAIL html: label input[type=datetime-local] encapsulation assert_equals: expected "datetime-local label" but got "month / day / year , 12 : 30   PM datetime-local label" PASS html: label input[type=email] encapsulation FAIL html: label input[type=month] encapsulation assert_equals: expected "month label" but got "month / year month label" PASS html: label input[type=number] encapsulation @@ -95,7 +95,7 @@ FAIL html: label input[type=range] encapsulation assert_equals: expected "search label" but got "cancel search label" PASS html: label input[type=tel] encapsulation PASS html: label[for] input[type=text] encapsulation -FAIL html: label input[type=time] encapsulation assert_equals: expected "time label" but got "12 : 30 PM time label" +FAIL html: label input[type=time] encapsulation assert_equals: expected "time label" but got "12 : 30   PM time label" PASS html: label input[type=url] encapsulation PASS html: label input[type=week] encapsulation PASS html: select for/id diff --git a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_labelledby-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_labelledby-expected.txt index dabaf7a23a50..599525d3b463 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_labelledby-expected.txt +++ b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_labelledby-expected.txt @@ -1,9 +1,16 @@ Tests the #comp_labelledby portions of the AccName Name Computation algorithm. -div group label +first heading text inside div group ++ first heading + +text inside div group + +verifyspacesFAIL IF INCLUDEDbetweenforeach PASS div group explicitly labelledby heading +PASS div group explicitly labelledby self and heading +PASS nav with verified spaces appended between each of IDREFS diff --git a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_labelledby.html b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_labelledby.html index ab17bff11874..2a22fd891912 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_labelledby.html +++ b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_labelledby.html @@ -13,14 +13,37 @@

Tests the #comp_labelledby portions of the AccName Name Computation algorithm.

-
-

div group label

+ + +
+

first heading

text inside div group

+
+

+ first heading

+

text inside div group

+
+ + + + + + link2 + image + + + link3 + + expected "image link2 link3" but got "image link2 image link3" +PASS link name from content for each child including nested image (referenced elsewhere via labelledby) +FAIL heading with link referencing image using aria-labelledby, that in turn references text element via aria-labelledby assert_equals:

+ + link + + + image +

expected "image link" but got "link link" +FAIL heading with link referencing image using aria-labelledby, that in turn references itself and another element via aria-labelledby assert_equals:

+ + link + + + image +

expected "image link" but got "image image link" +FAIL button name from content for each child (no space, inline) assert_equals: expected "onetwothree" but got "one two three" +FAIL heading name from content for each child (no space, inline) assert_equals:

onetwothree

expected "onetwothree" but got "one two three" +FAIL link name from content for each child (no space, inline) assert_equals: onetwothree expected "onetwothree" but got "one two three" +PASS button name from content for each child (no space, display:block) +PASS heading name from content for each child (no space, display:block) +PASS link name from content for each child (no space, display:block) +PASS button name from content for each child (no space, display:inline-block) +PASS heading name from content for each child (no space, display:inline-block) +PASS link name from content for each child (no space, display:inline-block) diff --git a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_name_from_content.html b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_name_from_content.html index 0b40206a7ebc..41cd3506ce20 100644 --- a/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_name_from_content.html +++ b/LayoutTests/imported/w3c/web-platform-tests/accname/name/comp_name_from_content.html @@ -2,35 +2,251 @@ Name Comp: Name From Content + +

Tests the #comp_name_from_content portions of the AccName Name Computation algorithm.

-

label

+

This series of tests exercises the button, heading, and link elements, because each have different characteristics worthy of testing in each of the name computation algorithm scenarios:

+ + +

ARIA roles, inline

+label
+label
+label
+
+ +

ARIA roles, block

+
label
+
label
+
label
+
+ +

simple

+
+

label

+label
+
+ +

simple with ::before

+
+

label

+label
+
+ +

simple with ::after

+
+

label

+label
+
+ +

simple with ::before and ::after

+
+

label

+label
+
+ +

no space joiners ::before and ::after

+
+

label

+label
+
+ +

Arabic right-to-left (RTL) with ::before and ::after

+
+
+

اسم

+ اسم
+
+
+ +

Alternative Text for CSS content (previously `alt:`) in pseudo-elements

+

rendered text should be "before label after"

+

accessibility label should be "alt-before label alt-after"

+
+

label

+label
+
+ +

simple w/ for each child

+
+

one two three

+one two three
+
+ +

simple for each child with image

+
+

one two three

+one two three
+
+ + +

simple for each child with extra nesting containing image

+
+

one two three four

+one two three four
+
+ +

heading with nested button with nested image

+

+ heading + + heading +

+ +

heading with nested link with nested image

+

+ heading + + link + image + link + + heading +

+ +

heading with nested link with nested image using aria-label

+

+ heading + + ignored link text + ignored image alt + ignored link text + + heading +

+ +

heading with nested link with nested image using aria-labelledby

+

+ heading + + ignored link text + image + ignored link text + + heading +

+ +

heading with two nested links referencing image using aria-labelledby

+

+ + link1 + + + link2 + image + + + link3 + +

+ + +

heading with link referencing image using aria-labelledby, that in turn references text element via aria-labelledby

+

+ + link + + + image +

+ + +

heading with link referencing image using aria-labelledby, that in turn references itself and another element via aria-labelledby

+

+ + link + + + image +

- + + +

simple w/ for each child (w/o spaces and display:inline)

+
+

onetwothree

+onetwothree
+
-Todo: test all remaining *recursive* cases in https://w3c.github.io/accname/#comp_recursive_name_from_content +

simple w/ for each child (w/o spaces and display:block)

+
+

onetwothree

+onetwothree
+
---> +

simple w/ for each child (w/o spaces and display:inline block)

+
+

onetwothree

+onetwothree
+