Subjective applicability #2061
Replies: 6 comments 8 replies
-
What we lose from subjective applicabilityThe biggest reason for requiring an objective applicability was to ensure rules writers were required to write more testable rules. Without that constrained it's too easy to write rules that barely improve on the testability of the WCAG success criteria. Here's an example of such a rule: ## Applicability
This rule applies to any non-text content
## Expectation
Each test target is described in an accessible name that serves an equivalent purpose to the test target. A rule like that feels too vague, and not enough of an improvement on the WCAG success criterion to justify even writing this up as a rule. I still feel that that's the case, but it's worth checking to what extent people writing rules today still share that sentiment. |
Beta Was this translation helpful? Give feedback.
-
Some rules use a hack to get around the objective applicabilityTo work around the constraint of an objective applicability, there are a few rules where we put things in the expectation that logically might seem like they belong in the applicability. Some example of that include Error identification, where we basically did this: ## Applicability
This rule applies to each semantic textbox:
## Expectation
Each test target either has no form field error indicators, or at least one of the form field error indicators
allows the identification of the related test target. That's a neat way to get around the objective applicability requirement, but it also seems like it makes that rule more difficult to understand. Without the objectivity constraint, this rule could have been written like this instead (more or less): ## Applicability
This rule applies to any form field error indicator.
## Expectation
Each test target allows identifying the form field that is in error It seems to me that a rule like that is much easier to understand. @tbostic32 and I tried a couple other ways to try and write this rule, but nothing we could come up with really worked. I'm also curious whether people think including that textbox applicability is useful at all. The rule barely changes if you were to write an applicability like "This rule applies to every HTML page". That you can basically remove the applicability without changing the rule does strongly suggest to me that what's there now shouldn't be there. |
Beta Was this translation helpful? Give feedback.
-
Rules we cannot writeOne type of rule in particular has proven impossible to write because of the constraint on applicability. It's the "X has semantic role of X". Poster child of that is the "Heading has heading markup" rule, that seems like it should be an easy rule to write, but after several attempts we have never been successful at that. I've been thinking of that as a Venn diagram. On the one hand you want everything marked as a heading to be a heading. We can write such a rule, and on the other hand we want things that look like headings to be marked up as headings. That's the part we cannot do today. An idea that I've pitched a few times is that maybe we should allow subjective applicability if the expectation is objective. That would let us write that rule like this: ## Applicability
This rule applies to any text that is styled as a heading
## Expectation
Each test target must be a descendant of the semantic role of `heading`. This seems to me like a very natural thing to do, and (to me) seems like a rule that's just as testable as one that checks that things that are marked up as heading are actually headings. I think a rule written like this, with a subjective applicability and objective expectation is just as testable as the kind of rules we're writing today. I am curious though if people have ideas of rules where this might cause problems though. |
Beta Was this translation helpful? Give feedback.
-
Is it all about semantics?Something that jumped out at me in this conversation is that the places where we had to use this expectations hack is that they all seem to be situations in which the semantics aren't required. Non-text content isn't required to be marked up with The rules where it seems you'd need both the applicability and expectations to be subjective all seem to be rules in which either programmatic semantics isn't required, or where they don't exist. What's curious about that is that we do have rules for non-text content, but all of them count on non-text content using special elements for rendering bitmap or vector graphics ( If we could require CSS pie charts to be marked up with ## Applicability
This rule applies to any non-decorative graphic constructed using CSS
## Expectation
Each test target has a semantic role of `img` ## Applicability
This rule applies to any semantic `img`
## Expectation
Each test target has an accessible name that describes the topic or purpose Whereas without the ## Applicability
This rule applies to any non-decorative graphic constructed using CSS
## Expectation
Each test target has an accessible name that describes the topic or purpose |
Beta Was this translation helpful? Give feedback.
-
Here are a few rules that have subjective exceptions in the expectation, which seem like they better fit in the applicability:
There may be others too. |
Beta Was this translation helpful? Give feedback.
-
Subjectivity TypesOne thing we have not yet discussed in detail is what types of subjectivity we are most commonly seeing in our rules. Below I have laid out a few different types that we have seen or that we want to include in the future to allow us to write new rules. I think it is important to determine the different types of subjectivity that we want to use as we can potentially limit which types are used or how they are formulated in order to prevent applicabilities like "Applies to any non-text content". Applicability Subjectivity Types
Examples of subjectivity in current proposed rules:
From this thinking/digging, it appears that subjectivity type 3 is the one we are struggling the most with and likely has too much leeway in how it could get used (the other 2 may have too much leeway as well and we just haven't found it yet). Expectation Subjectivity TypesSince we are currently having the conversation on if subjectivity should be treated the same everywhere (i.e., subjectivity in the expectation isn't necessarily better than subjectivity in the applicability), I think it is also worthwhile to explore how we use subjectivity in the expectation in our currently proposed. As an aside, I noticed that we have few if any approved rules that include subjectivity in the expectation, possibly signaling that we are hesitant/struggling with publishing rules with subjective expectations as well right now. Subjectivity types:
|
Beta Was this translation helpful? Give feedback.
-
In the ACT Rules Format version 1.0 there is a hard requirement that the applicability of each rule needs to be objective. This was done to "force" rule writers to ensure rules are built using "strong" definitions wherever reasonably possible. With several years of experience writing rules under this constrained, we have seen a few problems come from that.
Beta Was this translation helpful? Give feedback.
All reactions