1. Introduction
There are currently many test procedures and tools available which aid their users in testing web content for conformance to accessibility standards such as the Web Content Accessibility Guidelines (WCAG) [WCAG] . As the web develops in both size and complexity, these procedures and tools are essential for managing the accessibility of resources available on the web.
This
format
is
intended
to
enable
a
consistent
interpretation
of
how
to
test
conformance
to
accessibility
requirements
documents
and
promote
consistent
results
of
in
accessibility
tests.
It
testing.
The
rules
format
is
intended
to
be
used
designed
to
describe
both
manual
accessibility
tests
as
well
as
automated
tests
as
performed
by
accessibility
testing
tools.
Describing
Documenting
how
to
test
certain
accessibility
requirements
will
result
in
accessibility
tests
that
are
transparent,
with
test
results
that
are
reproducible.
The
Accessibility
Conformance
Testing
(ACT)
Rules
Format
defines
the
requirements
for
these
test
descriptions,
known
as
Accessibility
Conformance
Testing
Rules
(ACT
Rules).
2. Scope
The
ACT
Rules
Format
defined
in
this
specification
is
focused
on
the
description
of
designed
for
rules
that
can
be
used
in
testing
content
created
using
web
technologies,
such
as
Hypertext
Markup
Language
[HTML]
,
Cascading
Style
Sheets
[css-2018]
,
Accessible
Rich
Internet
Applications
[WAI-ARIA]
,
Scaleable
Vector
Graphics
[SVG2]
,
EPUB
,
and
more,
including
digital
publishing.
more.
The
ACT
Rules
Format
is
designed
to
be
technology
agnostic,
meaning
that
it
can
conceivably
be
used
to
describe
test
rules
for
other
technologies.
The ACT Rules Format can be used to describe ACT Rules dedicated to testing the accessibility requirements defined in Web Content Accessibility Guidelines [WCAG] , which are specifically designed for web content. Other accessibility requirements applicable to web technologies can also be testable with ACT Rules. For example, ACT Rules could be developed to test the conformance of web-based user agents to the User Agent Accessibility Guidelines [UAAG20] . The ACT Rules Format might not always be suitable to describe tests for other types of accessibility requirements.
3. ACT Rule Types
In
accessibility,
there
are
often
different
technical
solutions
to
make
the
same
type
of
content
accessible.
For
example,
there
are
multiple
methods
for
giving
an
img
element
in
HTML
an
accessible
name.
Multiple
solutions
could
be
tested
in
a
single
rule;
however,
such
a
rule
tends
to
be
quite
complex,
making
it
difficult
to
understand
and
maintain.
The
ACT
Rules
Format
solves
this
by
providing
two
types
of
rules:
-
Atomic rules describe how to test a specific type of solution. It contains a precise definition of what elements, nodes or other
parts"parts" of a test subject are to be tested, and when those elements are considered to fail the rule. These rules are to be kept small and atomic . Meaning that atomic rules test a single "failure condition", and do so without using theoutcomefindingsoffrom other rules. -
Composite rules describe how the
outcomesfindings of multiple atomic rules or composite rules can be combined into a singleoutcome.outcome . A composite rule can have multiple "satisfying conditions", each of theseprovidedtested in separateatomic or compositerules. The logic in the composite rule describes how any one of these satisfying conditions, or some combination of them is used to determine a single outcome.
Composite
rule:
Header
cells
in
HTML
tables
video
elements
have
an
audio
description
or
media
alternative
(
WCAG
2
Success
Criterion
1.3.1
2.1,
success
criterion
1.2.3
Audio
Description
or
Media
Alternative
).
This
rule
uses
outcomes
Each
HTML
video
element
meets
expectations
from
at
least
one
of
the
following
rules:
-
Header indicated through implicit scope Header indicated through the scope attributevideo elements have a transcript -
Header indicated by using the headers attributevideo elements have an audio description -
Header indicated by using ARIA labelsvideo elements have a description track
If
any
one
of
these
Not
all
atomic
rules
passes,
the
outcome
have
to
be
part
of
the
a
composite
rule
for
rule.
Composite
rules
are
used
when
the
table
cell
is
"passed".
findings
of
multiple
rules
need
to
be
combined
in
order
to
determine
(non-)conformance
of
a
test
subject
to
an
accessibility
requirement
.
The
separation
between
atomic
rules
and
composite
rules
can
be
seen
as
is
a
division
of
responsibility.
Atomic
rules
typically
test
if
web
content
is
correctly
implemented
in
a
particular
solution.
Composite
rules
can
test
if
a
combination
of
outcomes
findings
from
other
rules
satisfy
the
accessibility
requirement,
in
part
or
as
a
whole.
4. ACT Rule Structure
An ACT Rule MUST consist of at least the following items:
-
Descriptive Title
-
Input Aspects
Under TestList (for atomic rules) OR Input Rules List (for composite rules) -
Acknowledgements (optional)
-
Background (optional)
-
ACT Rules Format outcome definition
ACT Rules MUST be written in a format that conforms to the Web Content Accessibility Guidelines [WCAG] or a comparable accessibility standard. ACT Rule test cases are allowed to contain inaccessible content. If any test case contains accessibility issues listed in WCAG 2.1 Section 5.2.5 Non-Interference , users MUST be warned of this in advance. Using an accessible format supports people with disabilities. It also makes internationalization of ACT Rules easier.
5. Rule Identifier
An ACT Rule MUST have a unique identifier that can be any unique text, such as plain text, URL or a database identifier.
Example : ACT Rules may use file names as identifiers. They include a technology directory, followed by a handle that includes an element name or attribute:
- html+svg/video-alternative
- html+svg/meta-no-refresh
- html+svg/unique-id
6. Rule Description
An ACT Rule MUST have a description that is in plain language, and provides a brief explanation of what the rule does.
7. Accessibility Requirements Mapping
When
an
ACT
Rule
is
designed
to
test
the
conformance
to
one
or
more
Accessibility
requirements
documents
,
the
rule
MUST
list
all
accessibility
requirements
from
those
documents
that
are
not
satisfied
when
the
outcome
of
the
rule
is
failed
.
For
example,
when
designing
a
rule
for
WCAG
2.1
that
tests
if
image
buttons
have
an
alternative
text,
the
rule
maps
to
success
criteria
1.1.1
Non-text
content,
and
4.1.2
Name,
Role,
Value.
That
ACT
rule
will
list
both
success
criteria
in
the
accessibility
requirements
mapping.
Each accessibility requirement in the mapping MUST include the following:
-
the name, title or summary of the accessibility requirement, and
-
the name of the accessibility requirements document , and
-
a link to the accessibility requirements document if one exists, and
-
the conformance level associated with the accessibility requirement, if one exists.
For
each
accessibility
requirement
in
the
mapping,
an
ACT
Rule
MUST
indicate
what
the
outcome
of
the
rule
means
for
satisfying
that
accessibility
requirement.
When
the
outcome
is
failed
,
the
accessibility
requirements
are
*
not
satisfied
*.
When
the
outcome
is
passed
or
inapplicable
,
the
accessibility
requirements
could
be
*
satisfied
,
or
further
testing
could
be
necessary
.
Rules
that
can
be
used
to
determine
if
an
accessibility
requirement
is
satisfied*
are
called
satisfying
tests
.
passed
,
failed
or
inapplicable
.
Rather
they
can
be
satisfied
(or
not).
(See
the
WCAG
2.1
definition:
satisfies
a
success
criterion
.)
If
a
success
criterion
is
not
satisfied
a
web
page
can
only
conform
if
there
is
a
conforming
alternative
version,
as
described
in
WCAG
2.1
Conformance
Requirement
1
.
Example: Accessibility Requirements Mapping for a rule that tests if an image button has an accessible name:
- Success Criterion 1.1.1: Non-text content
- Required for conformance to WCAG 2.0 and WCAG 2.1 level A
- Outcome mapping:
- Failed outcome: not satisfied
- Passed outcome: further testing is needed
- Inapplicable outcome: further testing is needed
- Success Criterion 4.1.2: Name, Role, Value
- Required for conformance to WCAG 2.0 and WCAG 2.1 level A
- Outcome mapping:
- Failed outcome: not satisfied
- Passed outcome: further testing is needed
- Inapplicable outcome: further testing is needed
ACT
Rules
can
be
used
to
test
accessibility
requirements
that
are
not
part
of
a
W3C
accessibility
standard,
such
as
[WAI-ARIA]
Hypertext
Markup
Language
[HTML]
requirements,
or
a
testing
methodology
like
RGAA
3
2016
.
An
ACT
Rule
MUST
indictate
whether
or
not
the
accessibility
requirement
it
maps
to
is
required
for
conformance
in
its
accessibility
requirements
document
.
Examples
of
accessibility
requirements
that
are
not
required
for
conformance
are
WCAG
sufficient
techniques,
or
a
company
style
guide
which
includes
both
requirements
and
optional
"best
practices".
That
The
distinction
between
what
is
required
and
what
is
optional
has
to
be
made
clear.
Example:
Accessibility
Requirements
Mapping
for
a
rule
that
tests
that
each
img
element
has
an
alt
attribute
- Technique H37: Using alt attributes on img elements
- Not required for conformance to WCAG 2.0 and WCAG 2.1 at any level
- Outcome mapping:
- Failed outcome: not satisfied
- Passed outcome: satisfied
- Inapplicable outcome: satisfied
- RGAA 3, Test 1.1.1: Does each image have a text alternative
- Required for conformance to RGAA 3 level A
- Outcome mapping:
- Failed outcome: not satisfied
- Passed outcome: satisfied
- Inapplicable outcome: satisfied
If
the
failed
outcome
can
not
be
mapped
to
not
satisfied
for
an
accessibility
requirement,
that
requirement
MUST
NOT
be
included
in
the
accessibility
requirements
mapping.
The
optional
Background
section
could
be
used
to
list
accessibility
requirements
and
standards
that
may
be
thematically
related,
but
for
which
the
rule
is
not
a
failure
test.
If
the
rule
does
not
map
to
any
accessibility
requirement
,
the
accessibility
requirement
mapping
will
only
contain
the
explainer
that
it
is
not
required
for
conformance
to
the
accessibility
requirements
document
.
This
is
common
with
atomic
rules
used
in
composite
rules,
where
accessibility
requirements
are
only
not
satisfied
with
multiple
atomic
rules
have
the
outcome
failed
.
Example: An ACT Rule that tests a best practice not included in any accessibility standard:
This rule is not required for conformance to WCAG 2.0 or WCAG 2.1 at any level.
8. Rule Input
The input describes what information is needed in an ACT Rule. The atomic and composite rules have different types of input.
Atomic rules have an Input Aspects List
Composite rules have an Input Rules List
8.1.
Input
Aspects
Under
Test
List
(Atomic
rules
only)
An
aspect
is
a
distinct
part
of
technology
used
in
the
test
subject
.
For
example,
rendering
Rendering
a
particular
piece
of
content
to
an
end
user
commonly
involves
multiple
different
technologies,
some
or
all
of
which
can
be
of
use
in
an
[atomic
rule].
Some
atomic
rule
.
For
example,
some
rules
need
to
operate
directly
on
the
Hypertext
Transfer
Protocol
[http11]
messages
exchanged
between
a
server
and
a
client,
while
others
need
to
operate
on
the
Document
Object
Model
[DOM]
tree
exposed
by
a
web
browser.
Atomic
rules
MUST
list
the
aspects
used
as
input
for
the
applicability
and
expectations
of
the
atomic
rule.
Rules
can
operate
on
several
aspects
simultaneously,
such
as
both
the
HTTP
messages
and
the
DOM
tree.
Atomic
rules
MUST
list
the
aspects
used
The
method
through
which
an
input
aspect
is
served
is
not
relevant.
For
example
a
DOM
tree
can
be
served
through
HTTP
as
HTML,
it
can
be
bundled
as
several
pages
in
the
applicability
EPUB
,
or
it
can
be
inferred
from
a
JSX
and
expectations
.
source
file.
All
rules
that
have
only
DOM
tree
as
an
input
aspect
can
be
applied
to
those
technologies.
Some
input
aspects
are
already
well
defined
in
a
formal
specification
within
the
context
of
web
content,
specification,
such
as
HTTP
messages,
DOM
tree,
and
CSS
styling
[css-2018]
.
These
do
not
warrant
a
detailed
description
further
than
For
these,
a
reference
to
the
corresponding
section
in
this
specification
(see
Common
Input
Aspects
under
Test
).
)
is
sufficient
as
a
description
of
the
aspect.
For
other
input
aspects
that
are
not
well
defined,
an
ACT
Rule
MUST
include
either
a
detailed
description
of
the
aspect
in
question
or
a
reference
to
a
well
defined
description.
Example : Test aspects for a rule that checks if images have an accessible name:
- DOM Tree
- CSS Styling
Example : Test aspects for a rule that checks if a transcript is available for videos:
- DOM Tree
- CSS Styling
- Audio output
- Visual output
Example : Test aspects for a rule that checks for use of (language specific) generic link texts like "click here" and "more":
- DOM Tree
- CSS Styling
- Language
9.
8.2.
Input
Rules
List
(Composite
rules
only)
A
composite
rule
uses
outcomes
findings
from
atomic
rules
or
other
composite
rules
and
applies
a
logic
to
them
so
that
a
single
outcome
can
be
determined
for
each
the
test
target
subject
.
The
identifiers
of
all
rules
used
in
the
expectations
MUST
be
listed
in
the
composite
rule.
The
input
rules
list
describes
the
input
for
composite
rules,
similar
to
how
input
aspects
under
test
describe
the
input
for
atomic
rules.
10.
9.
Applicability
The applicability describes what (parts of) the test subject are tested.
10.1.
9.1.
Applicability
for
Atomic
Rules
The
applicability
section
is
a
required
part
of
an
atomic
rule
.
It
MUST
contain
a
precise
description
of
the
parts
of
the
test
subject
to
which
the
rule
applies.
For
example,
specific
nodes
in
the
DOM
[DOM]
tree,
or
tags
that
are
incorrectly
closed
in
an
HTML
[HTML]
document.
These
are
known
as
the
test
targets
.
The
applicability
MUST
only
use
information
provided
through
test
input
aspects
of
the
same
rule.
No
other
information
can
be
used
in
the
applicability.
Applicability MUST be described objectively, unambiguously and in plain language.
An
objective
description
is
one
that
can
be
resolved
without
uncertainty,
in
a
given
technology.
Examples
of
objective
properties
in
HTML
are
element
names,
their
computed
role,
the
spacing
between
two
elements,
etc.
Subjective
properties
on
the
other
hand,
are
concepts
like
decorative,
navigation
mechanism
and
pre-recorded.
Even
concepts
like
headings
and
images
can
be
misunderstood.
For
example,
describing
that
the
rule
examines
Which
could
refer
to
the
tag
name,
the
accessibility
semantic
role,
or
the
element’s
purpose
on
the
web
page.
The
latter
of
which
is
almost
impossible
to
define
objectively.
When
used
in
applicability,
potentially
ambiguous
concepts
MUST
be
defined
objectively.
This
definition
can
be
part
of
a
larger
glossary
shared
between
rules.
Example : The applicability of an atomic rule testing WCAG 2.1 Audio Control:
Any
video
oraudio
element(s) with theautoplay
attribute, as well as anyobject
element(s) that is used for automatically playing video or audio when the web page loads.
10.2.
9.2.
Applicability
for
Composite
Rules
A
composite
rule
defines
how
the
outcomes
findings
from
rules
in
its
input
rules
list
are
used
to
determine
a
single
outcome.
outcome
.
The
applicability
of
a
composite
rule
is
defined
as
the
union
of
all
the
applicability
sections
of
its
atomic
rules
as
well
as
atomic
rules
that
make
up
any
composite
rules
in
the
input
rules
list
.
Rule
authors
MAY
describe
ommit
the
applicability
for
composite
rules.
This
can
be
useful
if
it
is
difficult
to
express
the
combined
applicability
in
plain
language.
If
the
composite
rule
includes
applicability,
it
MUST
be
the
union
of
all
the
applicability
sections
of
in
the
atomic
rules.
input
rules
list
.
Note
that
atomic
input
rules
in
a
composite
rule
MAY
have
different
applicability.
Because
of
this,
not
every
element
applicable
within
the
composite
rule
is
tested
by
every
atomic
input
rule.
Example
:
A
composite
rule
about
img
elements
uses
results
from
atomic
rules
that
have
the
following
applicability:
-
Atomic
rule1rule 1 : Allimg
element with analt
attribute -
Atomic
rule1rule 2 : Allimg
element without analt
attribute
The applicability of the composite rule combines the applicability of both atomic rules. This becomes:
All
img
elements.
11.
10.
Expectations
An
ACT
Rule
MUST
contain
one
or
more
expectations.
The
expectations
describe
what
the
requirements
are
for
the
test
targets
derived
from
the
applicability
.
11.1.
Expectations
for
Atomic
Rules
An
atomic
rule
MUST
contain
one
or
more
expectations.
An
expectation
is
an
assertion
about
all
test
targets
that
is
true
about
each
if
the
test
target
subject
(see
Applicability
satisfies
).
the
accessibility
requirement
.
When
all
expectations
are
true
for
a
test
subject,
the
test
subject
passed
the
rule.
If
one
or
more
expectations
are
false,
the
test
subject
failed
the
rule.
Each expectation MUST be distinct, unambiguous, and be written in plain language. Unlike in applicability, a certain level of subjectivity is allowed in expectations. Meaning that the expectation has only one possible meaning, but that meaning MAY not fully quantifiable.
When
all
expectations
are
true
for
a
test
target,
Commonly,
an
expectation
comes
in
the
form
of
an
"Each
test
target
passed
has
..."
statement.
In
such
an
expectation,
all
test
targets
need
to
meet
the
rule.
If
one
or
more
expectations
are
false,
for
the
rule
to
pass.
It
is
also
possible
to
have
an
expectation
where
not
all
test
target
failed
the
rule.
When
atomic
rules
are
used
in
composite
rules,
targets
meet
the
outcome
expectations.
For
example:
"85%
of
the
composite
rules
can
be
passed
all
test
targets
have
an
accessible
name"
is
an
expectation
that
is
true
even
if
the
outcome
of
one
when
15%
of
its
constituent
the
test
targets
do
not
meet
the
expectations.
10.1. Expectations for Atomic Rules
An
atomic
rule
is
failed
,
depending
on
expectation
MUST
only
use
information
available
in
the
input
aspects
,
from
the
applicability,
and
other
expectations
of
the
composite
same
rule.
No
other
information
can
be
used
in
the
expectation.
So
for
instance,
an
expectation
could
be
"Expectation
1
is
true
and
...",
but
it
can’t
be
"Rule
XYZ
passed
and
...".
This
ensures
that
atomic
rules
are
encapsulated.
Example
:
A
rule
for
labels
of
HTML
input
elements
might
have
the
following
expectations:
-
TheEach test target has an accessible name (as described in Accessible Name and Description: Computation and API Mappings 1.1 ). [accname-aam-1.1] -
The
accessible
name describesnames describe the purpose oftheeach test target.
11.2.
10.2.
Expectations
for
Composite
Rules
A
When
atomic
rules
are
used
in
composite
rules,
the
outcome
of
the
composite
rules
can
be
passed
even
if
the
outcome
of
one
of
its
input
rules
is
failed
,
depending
on
the
expectations
of
the
composite
rule.
All
expectations
of
a
composite
rule
MUST
contain
one
or
more
expectations
that
describes
describe
the
logic
that
is
used
to
determine
a
single
passed
or
failed
outcome
for
each
a
test
target
subject
,
based
on
the
outcomes
of
atomic
rules
findings
or
composite
of
rules
listed
in
its
input
rules
list
.
When
all
expectations
are
true
for
a
test
target,
the
test
target
passed
the
rule.
If
one
or
more
expectations
is
false,
the
test
target
failed
the
rule.
This
works
the
same
way
for
atomic
rules.
A
composite
rule
expectation
MUST
NOT
use
information
from
test
input
aspects
.
A
composite
rule
for
Composite
rule:
video
elements
have
an
audio
description
or
media
alternative
(
WCAG
2.1
2.1,
success
criterion
1.2.3
Audio
Description
or
Media
Alternative
applies
a
logic
across
results
from
three
atomic
rules.
The
expectation
of
the
composite
rule
is
as
follows:
).
For
each
test
target,
the
outcome
of
Each
HTML
video
element
meets
expectations
from
at
least
one
of
the
following
rules
is
passed
:
rules:
-
Videovideo elements have a transcript -
video
elements
have
an
audio
description
(video-audio-desc) -
Videovideo elements have amedia alternative (video-text-alt)description track
12.
11.
Assumptions
An
ACT
Rule
MUST
list
any
known
assumptions,
limitations
or
any
exceptions
for
the
evaluation,
the
test
environment,
technologies
being
used
or
the
subject
being
tested.
For
example,
a
rule
that
would
partially
test
WCAG
2.0
2.1
Success
Criterion
1.4.3
Contrast
(Minimum)
based
on
the
inspection
of
CSS
properties
could
state
that
it
is
only
applicable
to
HTML
text
content
stylable
with
CSS,
and
that
the
rule
does
not
support
images
of
text.
Sometimes there are multiple plausible ways that an accessibility requirement can be interpreted. For instance, it is not immediately obvious if emoji characters are "text" or "non-text content" under WCAG 2.1. Whatever the interpretation is, this MUST be documented in the rule.
While this item MUST be included in the ACT Rule, it MAY be empty when there are no known assumptions, limitations or exceptions.
13.
12.
Accessibility
Support
Content
can
be
designed
to
rely
on
the
support
for
particular
accessibility
features
by
different
assistive
technologies
and
user
agents.
For
example,
content
using
a
particular
WAI-ARIA
[WAI-ARIA]
feature
relies
on
that
feature
to
be
supported
by
assistive
technologies
and
user
agents.
This
content
would
not
work
for
assistive
technologies
and
user
agents
that
do
not
support
WAI-ARIA.
WCAG
[WCAG]
provides
a
definition
for
accessibility
supported
use
of
a
Web
technology.
An ACT Rule MUST include known limitations on accessibility support. For example, an atomic rule that checks for a particular accessibility feature that is known not to be widely supported by assistive technologies and web browsers, or a composite rule that lists rules with known accessibility support limitations.
While this item MUST be included in the ACT Rule, it MAY be empty when there are no known accessibility support issues.
14.
13.
Test
Cases
Test
cases
are
(snippets
of)
content
that
can
be
used
to
validate
the
implementation
of
ACT
Rules.
Each
rule
MUST
have
one
or
more
test
cases
for
passed
,
failed
,
and
inapplicable
outcome
.
A
test
case
consists
of
two
pieces
of
data,
a
snippet
of
each
test
input
aspect
for
a
rule,
and
the
expected
result
from
evaluating
that
rule.
Test
cases
serve
two
functions,
firstly
as
example
scenarios
for
readers
to
understand
when
a
rule
passes,
when
it
fails,
and
when
it
is
inapplicable.
It
also
serves
developers
and
users
of
accessibility
testing
tools
and
methodologies
to
validate
that
a
rule
is
correctly
implemented.
15.
14.
Change
Log
It is important to keep track of changes to the ACT Rules so that users of the rules can understand if changes in test results are due to changes in the rules used when performing the tests, or from changes in the content itself. All changes to an ACT Rule that can change the outcome of a evaluation MUST be recorded in a change log. The change log can either be part of the rule document itself or be referenced from it.
Each new release of an ACT Rule MUST be identifiable with either a date or a version number. Additionally, a reference to the previous version of that rule MUST be available. For extensive changes, a new rule SHOULD be created and the old rule SHOULD be deprecated.
blink
element
changes
to
instead
look
for
any
animated
style
changes.
This
potentially
adds
several
new
failures
that
were
previously
out
of
scope.
Using
that
same
rule
as
an
example,
adding
an
exception
to
allow
blink
elements
positioned
off
screen
can
be
done
by
updating
the
existing
rule.
16.
15.
Issues
List
(optional)
An
ACT
Rule
MAY
include
a
list
or
a
reference
to
a
list
of
any
known
issues.
The
issues
list
would
be
used
to
record
cases
where
the
outcome
of
an
ACT
Rule
was
failed
where
it
ought
to
have
been
passed
or
inapplicable
,
or
vice
versa.
There
are
several
reasons
why
this
might
occur,
including:
-
Certain scenarios or the use of technologies that are very rare and were not included in the rule for that reason.
-
Certain accessibility features are impossible to test within the test environment. For instance, they might only be testable by accessing the accessibility API, require screen capturing, etc.
-
The scenario did not exist (due to changing technologies) or was overlooked during the initial design of the rule.
The issues list serves two purposes. For users of ACT Rules, the issues list gives insight into why an inaccurate result occurred, as well as provide confidence in the result of that rule. For the designer of the rule, the issues list is also useful to plan future updates to the rule. In a new version of the rule, resolved issues would be moved to the change log.
17.
16.
Acknowledgements
(optional)
An ACT Rule MAY contain acknowledgements. This can include, but is not limited to:
-
List of rule authors
-
List of rule reviewers/contributors
-
Funding or other support
18.
17.
Background
(optional)
An ACT Rule MAY contain information about the background for the development of the rule, or references to relevant reading. The relationship to the relevant reading should be specified. Examples of relevant background references for a rule for a WCAG [WCAG] success criterion could be Understanding documents , WCAG Techniques , or WAI-ARIA [WAI-ARIA] , CSS [css-2018] , or HTML [HTML] specifications.
19.
18.
Rule
Accuracy
This section is non-normative .
While test cases can be used to determine if an ACT Rule was correctly implemented, they do not guarantee that implementations will never produce incorrect results. When writing ACT Rules, it is almost inevitable that edge cases will be overlooked. Technologies are always evolving, and content authors are constantly coming up with new and unexpected ways to use those.
There are two types of inaccuracies that can produce incorrect results. Inaccuracies in the implementation can be addressed with test cases, but inaccuracies in the ACT Rule itself can not. After all, rule inaccuracies come from the rule author being unaware of a particular edge case.
When a test result incorrectly indicates non-conformance to an accessibility requirement, this is known as a false positive. Opposite, when a rule incorrectly indicates conformance, this is a false negative. A percentage of false positives and false negatives can be calculated by comparing it to results from an accessibility audit:
-
False positives : This is the percentage of test subjects , that were
failed
by the rule, but conform to the accessibility requirements . -
False negatives : This is the percentage of test subjects , that were
passed
by the rule, but were non-conformant to the accessibility requirements .
The possibility of false positives and false negatives with ACT Rules mean they will likely require ongoing maintainence. Designing a process for maintaining ACT Rules is outside the scope of the ACT Rules Format, which is limited to the rules themselves. Neverthless, it is suggested that rule authors work out a process for maintaining their rules.
20.
19.
Harmonization
This section is non-normative .
While the ACT Rules Format is designed to stimulate harmonization, there are no direct requirement in the ACT Rules Format that prevent a rule author from writing rules inconsistent with already established ACT Rules. Neither are there requirements for ACT Rules to have a certain number of implementations, or to have a certain level of accuracy. This allows quality requirements to be different for different user groups, and allows them to develop over time.
Harmonization occurs when a group of rule implementors collectively accept the validity of an ACT Rule. For example, a community group of accessibility testing tool vendors could declare they’ve harmonized on a particular set of ACT Rules. Such a group can set acceptance criteria for rules, and have quality requirements that go beyond the ACT Rules Format. For example:
Example : The ACT EPUB group might have the following acceptance criteria:
- An ACT EPUB Rule is harmonized when it is approved by members of 3 organizations, AND
- An ACT EPUB Rule is harmonized when it has 2 independent implementations
An example of such a process is the WCAG ACT Review Process .
21.
20.
Definitions
-
Accessibility
requirement
-
A requirement is a condition that has to be satisfied in order to conform to a standard, or to comply with a contract, policy or regulation. An accessibility requirement is a requirement aimed at improving access for people with disabilities to an ICT product.
A common example of accessibility requirements are the WCAG 2.1 success criteria. There are other standards, including W3C standards that include recommendations for accessibility, such as WAI-ARIA and HTML. Accessibility requirements are also often found in company policies, regional standards or in legislation.
-
Accessibility
requirements
document
-
A document, such as a standard, contract, policy or regulation, that includes accessibility requiremenst . For example, WCAG 2.1, WAI-ARIA 1.1, HTML 5.2, BBC HTML Accessibility Standards v2.0
-
Test SubjectFinding -
A resource or collectionWhen evaluating a test subject using a rule, the findings ofresourcesthatcan be evaluated by an ACT Rule. Example:rule are:-
An HTML page, including all embedded scripts, style and images An EPUB document A Vue component file Note : Implementers using the [EARL10-Schema]All test targetscan expressin the test subjectwith the subject property -
Which
test
targets
met
which
expectations
Test Target A distinct part ofin the test subject. Example: -
Nodes within an HTML page A period of time within a video A range of characters within a text document Note : Implementers using the [EARL10-Schema]The outcomecan express(passed, failed or inapplicble) for the testtarget with the pointer propertysubject
-
- Outcome
-
One of three types of conclusions that come from evaluating an ACT Rule on a test subject . An outcome can be:
- Inapplicable : No part of the test subject matches the applicability
- Passed : The test subject meets all expectations
- Failed : The test subject does not meet all expectations
Note : While inapplicable is a valid outcome for ACT Rules, it might not be a valid result for all accessibility requirements . Notably the success criteria of WCAG 2.0 and WCAG 2.1 can only be evaluated to satisfied (passed and inapplicable) or not satisfied (failed).
Note : Implementers using the [EARL10-Schema] can express the outcome with the outcome property . In addition to
passed
failed
andinapplicable
, EARL 1.0 also defined anincomplete
outcome. While this can not be the outcome of an ACT Rule when applied in its entirety, it often happens that rules are only partially evaluated. For example, when applicability was automated, but the expectations have to be evaluated manually. Such "interim" results can be expressed with theincomplete
outcome. - Test Subject
A resource or collection of resources that can be evaluated by an ACT Rule.
Example:
- An HTML page, including all embedded scripts, style and images
- An EPUB document
- A Vue component file
Note : Implementers using the [EARL10-Schema] can express the test subject with the subject property
- Test Target
A distinct part of the test subject .
Example:
- Nodes within an HTML page
- A period of time within a video
- A range of characters within a text document
Note : Implementers using the [EARL10-Schema] can express the test target with the pointer property
Appendix 1: Expressing ACT Rule results with JSON-LD and EARL
This section is non-normative .
Example: Output data using EARL and JSON-LD. (See Evaluation and Report Language [EARL10-Schema] and Java Script Object Notation (JSON) .)
{ "@context" : "https://raw.githubusercontent.com/w3c/wcag-act/master/earl-act.json" , "@type" : "Assertion" , "subject" : "https://example.org/" , "test" : "auto-wcag:rules/SC1-1-1-css-image.html" , "result" : { "outcome" : "earl:failed" , "pointer" : "html > body > h1:first-child" } }
Example:
{ "@context" : "https://raw.githubusercontent.com/w3c/wcag-act/master/earl-act.json" , "@type" : "Assertion" , "subject" : "https://example.org/" , "test" : "auto-wcag:SC1-1-1-css-image.html" , "result" : { "outcome" : "earl:failed" , "source" : [{ "test" : "auto-wcag:SC1-1-1-css-image.html" , "result" : { "outcome" : "earl:failed" , "pointer" : "html > body > h1:first-child" } }, { "test" : "auto-wcag:SC1-1-1-css-image.html" , "result" : { "outcome" : "earl:passed" , "pointer" : "html > body > h1:nth-child(2)" } }] } }
Example: Aggregate outcomes to a WCAG success criterion
{ "@context" : "https://raw.githubusercontent.com/w3c/wcag-act/master/earl-act.json" , "@type" : "Assertion" , "subject" : "https://example.org/" , "test" : { "@id" : "wcag20:#text-equiv-all" , "title" : "1.1.1 Non-text Content" }, "result" : { "outcome" : "Failed" , "source" : [{ "test" : "auto-wcag:SC1-1-1-css-image.html" , "result" : { "outcome" : "Failed" , "pointer" : "html > body > h1:first-child" } }, { "test" : "auto-wcag:SC1-1-1-longdesc.html" , "result" : { "outcome" : "Passed" , "pointer" : "html > body > img:nth-child(2)" } }] } }
Example: Aggregate a list of results to a result for the website
{ "@context" : "https://raw.githubusercontent.com/w3c/wcag-act/master/earl-act.json" , "@type" : "Assertion" , "subject" : { "@type" : [ "WebSite" , "TestSubject" ], "@value" : "https://example.org/" } "test" : "http://www.w3.org/WAI/WCAG2A-Conformance" , "result" : { "outcome" : "Failed" , "source" : [{ "test" : "wcag20:text-equiv-all" , "result" : { "outcome" : "Failed" , "source" : [ …] } }, { "test" : "wcag20:media-equiv-av-only-alt" , "result" : { "outcome" : "Passed" , "source" : [ …] } }, { "test" : "wcag20:media-equiv-captions" , "result" : { "outcome" : "Inapplicable" , "source" : [ …] } }, …] } }
Appendix 2: Acknowledgments
This section is non-normative .
Participants of the AG WG active in the development of this document
Shadi Abou-Zahra, Trevor Bostic, Romain Deltour, Kathy Eng, Wilco Fiers, Alistair Garrison, Kasper Isager, Maureen Kraft, Mary Jo Mueller, Jey Nandakumar, Charu Pandhi, Stein Erik Skotkjerra, Anne Thyme Nørregaard, Kathleen Wahlbin
Enabling funders
This publication has been developed with support from the WAI-Tools Project , co-funded by the European Commission (EC) under the Horizon 2020 Program (Grant Agreement 780057). The content of this publication does not necessarily reflect the views or policies of the European Commission (EC) or any of the European Union (EU) Member States.