Skip to content

link-in-text-block does not consider an inline-block as a text block #3841

@dballesteros7

Description

@dballesteros7

Product

axe-core

Product Version

4.5.2

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

I would expect the check to fail with this HTML:

<p>
 Text
 <a style="display: inline-block;">link</a>
</p>

This fails if the inline-block is removed, and visually they are both identical.

Actual

Passes

How to Reproduce

https://codepen.io/dballesteros7/pen/mdjreWM

Additional context

This allows to easily/unintentionally skip the check for inline blocks of text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions