From 1687aa7717ac6c1b766336e1f5c1c844791ed7b0 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Tue, 5 Mar 2024 10:55:49 -0500 Subject: [PATCH 1/5] Create roles-minimum.html add tests for minimum role in html aam https://github.com/w3c/html-aam/pull/454 --- html-aam/roles-minimum.html | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 html-aam/roles-minimum.html diff --git a/html-aam/roles-minimum.html b/html-aam/roles-minimum.html new file mode 100644 index 00000000000000..986908e9afe21b --- /dev/null +++ b/html-aam/roles-minimum.html @@ -0,0 +1,56 @@ + + + + HTML-AAM Minimum Role Verification Tests + + + + + + + + + +

Tests minimum computedrole mappings defined in HTML-AAM, where the returned computed role for generic elements is expected to change based on the generic elements having attributes that would require the element no longer be generic, and potentially ignored by browsers. Most test names correspond to a unique ID defined in the spec.

+ + +

Baseline div, role=generic
+ +
div with autofocus attribute.
+
div with explicit role=generic and autofocus attribute.
+
div with explicit role=none and autofocus attribute.
+ +
div with draggable attribute.
+
div with explicit role=generic and draggable attribute.
+
div with explicit role=none and draggable attribute.
+ + +
div with popover attribute, role=group
+ +
div with draggable attribute and errant role attribute value.
+ + +
unnamed section with draggable attribute.
+ + + + +
div with explicit role=article and draggable attribute.
+ + +
article element with draggable attribute.
+
named section with draggable attribute.
+ + + cite element with draggable attribute. + + + + + + From 3660669e8591f55be0e1842a1bbb4368a1259db8 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 4 Apr 2024 12:54:07 -0400 Subject: [PATCH 2/5] Rename roles-minimum.html to roles-minimum.tentative.html change file name to include .tentative --- html-aam/{roles-minimum.html => roles-minimum.tentative.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename html-aam/{roles-minimum.html => roles-minimum.tentative.html} (100%) diff --git a/html-aam/roles-minimum.html b/html-aam/roles-minimum.tentative.html similarity index 100% rename from html-aam/roles-minimum.html rename to html-aam/roles-minimum.tentative.html From 8f49b92aecb3be96a7e4f8f55b947e81bd806ea9 Mon Sep 17 00:00:00 2001 From: James Craig Date: Wed, 17 Apr 2024 17:13:04 -0700 Subject: [PATCH 3/5] m. remove trailing whitespace causing the linter to fail. --- html-aam/roles-minimum.tentative.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/html-aam/roles-minimum.tentative.html b/html-aam/roles-minimum.tentative.html index 986908e9afe21b..f0303b8f49a48b 100644 --- a/html-aam/roles-minimum.tentative.html +++ b/html-aam/roles-minimum.tentative.html @@ -12,33 +12,33 @@

Tests minimum computedrole mappings defined in HTML-AAM, where the returned computed role for generic elements is expected to change based on the generic elements having attributes that would require the element no longer be generic, and potentially ignored by browsers. Most test names correspond to a unique ID defined in the spec.

- +

Baseline div, role=generic
- +
div with autofocus attribute.
div with explicit role=generic and autofocus attribute.
div with explicit role=none and autofocus attribute.
- +
div with draggable attribute.
div with explicit role=generic and draggable attribute.
div with explicit role=none and draggable attribute.
- +
div with popover attribute, role=group
- +
div with draggable attribute and errant role attribute value.
unnamed section with draggable attribute.
- - + +
div with explicit role=article and draggable attribute.
- +
article element with draggable attribute.
named section with draggable attribute.
From 817b50b85e44745291d3b49466dcc3085f538e19 Mon Sep 17 00:00:00 2001 From: James Craig Date: Mon, 17 Jun 2024 15:47:10 -0700 Subject: [PATCH 4/5] remove unused call --- html-aam/roles-minimum.tentative.html | 1 - 1 file changed, 1 deletion(-) diff --git a/html-aam/roles-minimum.tentative.html b/html-aam/roles-minimum.tentative.html index f0303b8f49a48b..7455938a82ecd2 100644 --- a/html-aam/roles-minimum.tentative.html +++ b/html-aam/roles-minimum.tentative.html @@ -49,7 +49,6 @@ From ebb4e1bf582671bd13ebd8323ef4c94e53ff3f2c Mon Sep 17 00:00:00 2001 From: James Craig Date: Mon, 17 Jun 2024 15:52:39 -0700 Subject: [PATCH 5/5] link to issue to clarify dead spec link --- html-aam/roles-minimum.tentative.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html-aam/roles-minimum.tentative.html b/html-aam/roles-minimum.tentative.html index 7455938a82ecd2..2093620bb36598 100644 --- a/html-aam/roles-minimum.tentative.html +++ b/html-aam/roles-minimum.tentative.html @@ -11,7 +11,7 @@ -

Tests minimum computedrole mappings defined in HTML-AAM, where the returned computed role for generic elements is expected to change based on the generic elements having attributes that would require the element no longer be generic, and potentially ignored by browsers. Most test names correspond to a unique ID defined in the spec.

+

Tests minimum computedrole mappings defined in HTML-AAM ([HTML-AAM Issue #454](https://github.com/w3c/html-aam/pull/454)), where the returned computed role for generic elements is expected to change based on the generic elements having attributes that would require the element no longer be generic, and potentially ignored by browsers. Most test names correspond to a unique ID defined in the spec.

Baseline div, role=generic