Skip to content

Commit d2facdc

Browse files
Merge branch 'develop' into giacomo-petri-links-with-identical-names-and-context-serve-equivalent-purpose-images-size-fix
2 parents cbf114a + a77f604 commit d2facdc

9 files changed

+45
-20
lines changed

__tests__/spelling-ignore.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
# Notes and acronyms
127127
- TODO
128128
- TBD
129+
- CJK
129130

130131
# Tool and library names
131132
- axe-core
@@ -244,6 +245,9 @@
244245
- 000B
245246
- 000C
246247
- 000D
248+
- 4E00
249+
- 9FFF
250+
- 4E00–9FFF
247251

248252
# JSON attributes/ metadata/ methods
249253
- testcases

__tests__/spelling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function getCuratedMarkdownBody(body, options = {}) {
109109
* @returns {String[]}
110110
*/
111111
function getSpellIgnored() {
112-
const ignoreConfigured = yaml.safeLoad(fs.readFileSync('./__tests__/spelling-ignore.yml', 'utf8'))
112+
const ignoreConfigured = yaml.safeLoad(fs.readFileSync('./__tests__/spelling-ignore.yml', 'utf8'), {schema: yaml.FAILSAFE_SCHEMA}) //added schema due to entries starting with a non-zero digit
113113

114114
/*
115115
Building spelling exception in the shape FOOxxx where xxx is a number.

_rules/auto-play-audio-has-control-mechanism-4c31df.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ The `src` file of this `video` element has no audio output.
267267

268268
```html
269269
<video autoplay>
270-
<source src="/test-assets/rabbit-video/video-with-incorrect-voiceover.mp4" type="video/mp4" />
271-
<source src="/test-assets/rabbit-video/video-with-incorrect-voiceover.webm" type="video/webm" />
270+
<source src="/test-assets/rabbit-video/silent.mp4" type="video/mp4" />
271+
<source src="/test-assets/rabbit-video/silent.webm" type="video/webm" />
272272
</video>
273273
```
274274

_rules/autocomplete-valid-value-73f2c2.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ The purpose of a control is programmatically identifiable even when its `autocom
5858
- Implementation of [Presentational Roles Conflict Resolution][] varies from one browser or assistive technology to another. Depending on this, some elements can have a [semantic role][] of `none` and fail this rule with some technology but users of other technologies would not experience any accessibility issue.
5959
- Some user agents treat the value of the `aria-disabled` attribute as case-sensitive.
6060
- In some user agents, querying the value of the `autocomplete` property returns an empty string ("") even when the attribute was set according to the rule's expectations. It affects assistive technologies which rely on this property to personalize input fields collecting information about the user.
61+
- Authors may assign inappropriate `autocomplete` attribute values. Moreover, HTML specifications restrict certain `autocomplete` attribute values to specific form controls. Mismatches between `autocomplete` attribute values and form control types may or may not lead to a failure of [Success Criterion 1.3.5 Identify Input Purpose](https://www.w3.org/TR/WCAG22/#identify-input-purpose). However, this rule focuses exclusively on validating valid `autocomplete` attribute values, disregarding their contextual appropriateness.
6162

6263
## Background
6364

@@ -147,14 +148,6 @@ This `autocomplete` [attribute value][] list includes all allowed types of token
147148

148149
#### Passed Example 8
149150

150-
This `autocomplete` [attribute value][] only has the required token "bday-day". It remains programmatically identifiable even though it is inappropriate for the control's `type` [attribute value][] "tel".
151-
152-
```html
153-
<label>Birthday day<input name="bdayday" type="tel" autocomplete="bday-day"/></label>
154-
```
155-
156-
#### Passed Example 9
157-
158151
This `autocomplete` [attribute value][] has the required token "current-password", followed by the optional "webauthn" token.
159152

160153
```html

_rules/form-field-non-empty-accessible-name-e086e5.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ accessibility_requirements:
1010
failed: not satisfied
1111
passed: further testing needed
1212
inapplicable: further testing needed
13+
wcag20:1.3.1: # Info and Relationships (A)
14+
secondary: This success criterion is **more strict** than this rule. This is because 1.3.1 Info and Relationship requires that information, structure, and relationships conveyed through presentation can be programmatically determined or are available in text, while 4.1.2 Name, Role, Value only requires an accessible name.
15+
wcag20:2.5.3: # Label in Name (A)
16+
secondary: This success criterion is **more strict** than this rule. This is because 2.5.3 Label in Name requires that if a label is visible, the accessible name contains the label that is presented visually, while 4.1.2 Name, Role, Value only requires an accessible name.
1317
input_aspects:
1418
- Accessibility Tree
1519
- CSS styling

_rules/meta-refresh-no-delay-bc659a.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Not all major web browsers parse the value of the `content` attribute in the sam
6161

6262
## Background
6363

64+
The `meta http-equiv="refresh"` directive is an HTML tag used to instruct browsers to automatically refresh or reload a web page after a specified time interval. This can be useful for updating content dynamically or redirecting users to another page.
65+
66+
The `content` attribute in the `meta http-equiv="refresh"` directive is used to define the time interval, in seconds, after which the browser should automatically refresh or reload the web page. For example, `content="5"` would instruct the browser to refresh the page every 5 seconds. Careful consideration of the refresh interval is crucial to ensure optimal user experience and accessibility, particularly for individuals who may require more time to consume or interact with web content.
67+
6468
Because a refresh with a timing of 0 is a redirect, it is exempt from this rule. Since this can cause rapid screen flashes it is strongly recommended to avoid this.
6569

6670
### Bibliography

_rules/meta-refresh-no-delay-no-exception-bisz58.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Not all major web browsers parse the value of the `content` attribute in the sam
6161

6262
## Background
6363

64+
The `meta http-equiv="refresh"` directive is an HTML tag used to instruct browsers to automatically refresh or reload a web page after a specified time interval. This can be useful for updating content dynamically or redirecting users to another page.
65+
66+
The `content` attribute in the `meta http-equiv="refresh"` directive is used to define the time interval, in seconds, after which the browser should automatically refresh or reload the web page. For example, `content="5"` would instruct the browser to refresh the page every 5 seconds. Careful consideration of the refresh interval is crucial to ensure optimal user experience and accessibility, particularly for individuals who may require more time to consume or interact with web content.
67+
6468
Because a refresh with a timing of 0 is effectively a redirect, it is exempt from this rule. Since refreshing the same page with a time of 0 can cause rapid screen flashes it is strongly recommended to avoid this.
6569

6670
### Bibliography

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/glossary/large-scale-text.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@ input_aspects:
88
- DOM tree
99
---
1010

11-
Text nodes with a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font-size](https://www.w3.org/TR/css-fonts-3/#propdef-font-size) of:
11+
A text node is large scale text if at least one of the following is true:
1212

13-
- at least 18 [points](https://www.w3.org/TR/css-values/#pt), or
14-
- at least 14 [points](https://www.w3.org/TR/css-values/#pt) and a [computed](https://www.w3.org/TR/css-cascade-3/#computed-value) [font weight](https://www.w3.org/TR/css-fonts-3/#font-weight-prop) CSS property of 700 or higher.
13+
- the text node [computed][] [font-size][] is at least 18 [points][], or
14+
- the text node [computed][] [font-size][] is at least 14 [points][] and has a [computed][] [font weight][] of 700 or higher.
15+
16+
17+
#### Background
18+
In the domain of languages such as Chinese, Japanese, and Korean (CJK languages), encompassing the Unicode character range from 4E00 to 9FFF ([CJK Unified Ideographs](https://unicode.org/charts/PDF/U4E00.pdf)), it becomes crucial to acknowledge the intricate nuances in their typographic requirements. Despite sharing a common Unicode spectrum, each CJK language and its corresponding country may exhibit distinct typographic preferences and standards.
19+
20+
Particularly noteworthy is the lack of uniformity in defining text sizes as either large or small within the following ranges:
21+
- from 18 [points][] to 22 [points][]
22+
- from 14 [points][] to 18 [points][] with a [computed][] [font weight][] of 700 or higher.
23+
24+
Whether CJK characters in these ranges should be considered as "large scale" depends on the language of the text, as well as the country for which the text is designed and whose requirements must be followed. Given that these pieces of information are not readily available, the ACT rules adhere to the large text definition outlined above. This definition is applicable across all languages under the rationale of "no false positives."
25+
26+
27+
[computed]: https://www.w3.org/TR/css-cascade-3/#computed-value
28+
[font-size]: https://www.w3.org/TR/css-fonts-3/#propdef-font-size
29+
[points]: https://www.w3.org/TR/css-values/#pt
30+
[font weight]: https://www.w3.org/TR/css-fonts-3/#font-weight-prop

0 commit comments

Comments
 (0)