You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Target Size: Inline link adjacent to control #5384
I have a styled select menu that is 24px in height (and more in width). It satisfies SC 2.5.8 without using any exceptions.
Immediately following (below) the select menu is a sentence of text. That sentence has two links which meet the Inline exception for 2.5.8 when evaluating them against one another.
However, that sentence is positioned close enough (margin 0) to the select menu that the first link butts up against the select menu. The size (18px tall) and position (abutting) mean it cannot satisfy the Spacing exception.
The select menu is not in the sentence, but the Inline exception allows for when the target's "size is otherwise constrained by the line-height of non-target text," seemingly not carving out when the thing it intersects is outside the sentence. In this case, the target is the first link.
my gut feeling (though I can't guarantee that this actually comes out from the normative wording) would be that this scenario FAILs. while the inline exception exempts links "from each other" to an extent (at least that was the high-level rationale at the time, because it was difficult/impossible to make sure there's sufficient spacing etc unless you forced sites to use exceedingly large line spacing/leading), I'd argue it still in practice doesn't exempt them from butting up against things too closely outside of the inline container they're in...
Just to be sure, you are talking about the unexpanded select abutting the text, correct?
No, I am asking if the first link (the target) abutting the select fails under 2.5.8.
The select already passes. The options are under the User Agent Control exemption (assuming that was your ask) and are out of scope for my question anyway.
That’s a very good edge case. On one hand, being stricter when a link is on the first line might not make much sense, since it presents the exact same issue as on any other line. On the other hand, fixing a top margin on the paragraph is much easier and less intrusive than enforcing an unnaturally large line-height.
A strict interpretation of "in a sentence" could have been that the target must be physically surrounded by the sentence itself on all sides. But then, that would exclude inline short text links on a first line of a paragraph like "pet", where the width itself isn't sufficient to meet the target size anyway.
I don't have a definitive view on actual non-conformance, but there is certainly a need for clarification to outline best practices.
Activity
patrickhlauke commentedon Sep 29, 2026
my gut feeling (though I can't guarantee that this actually comes out from the normative wording) would be that this scenario FAILs. while the inline exception exempts links "from each other" to an extent (at least that was the high-level rationale at the time, because it was difficult/impossible to make sure there's sufficient spacing etc unless you forced sites to use exceedingly large line spacing/leading), I'd argue it still in practice doesn't exempt them from butting up against things too closely outside of the inline container they're in...
patrickhlauke commentedon Sep 29, 2026
this may result in a clarification to understanding (assuming others agree with this interpretation of the edge case)
detlevhfischer commentedon Sep 29, 2026
Agree with Patrick here. Just to be sure, you are talking about the unexpanded select abutting the text, correct?
aardrian commentedon Sep 29, 2026
No, I am asking if the first link (the target) abutting the select fails under 2.5.8.
The select already passes. The options are under the User Agent Control exemption (assuming that was your ask) and are out of scope for my question anyway.
innoticFR commentedon Oct 8, 2026
That’s a very good edge case. On one hand, being stricter when a link is on the first line might not make much sense, since it presents the exact same issue as on any other line. On the other hand, fixing a top margin on the paragraph is much easier and less intrusive than enforcing an unnaturally large line-height.
A strict interpretation of "in a sentence" could have been that the target must be physically surrounded by the sentence itself on all sides. But then, that would exclude inline short text links on a first line of a paragraph like "pet", where the width itself isn't sufficient to meet the target size anyway.
I don't have a definitive view on actual non-conformance, but there is certainly a need for clarification to outline best practices.