Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test whether links are underlined. #43

Open
StevenDufresne opened this issue Jun 8, 2021 · 2 comments
Open

Test whether links are underlined. #43

StevenDufresne opened this issue Jun 8, 2021 · 2 comments
Assignees
Labels
new test Identifies the need for a new test.

Comments

@StevenDufresne
Copy link
Contributor

Links within the content must be underlined and clearly distinguishable
Heading Links
Paragraph Links
List Style Links
List Style Links
Link in Comments
Text Widget Links

@StevenDufresne StevenDufresne added the new test Identifies the need for a new test. label Jun 8, 2021
@carolinan
Copy link
Contributor

This is only required for links inside large blocks of text, like post and page content, comment content, and large content in text widgets.
The purpose is only make sure that links are distinctively different from surrounding text.

So it is not just "any" heading that is linked. And not things like lists of links inside the latest posts widget in a widget area

-Because the classes for wrappers around the_content etc can be changed by the theme, I don't think this check can be made foolproof?

@dd32
Copy link
Member

dd32 commented Oct 12, 2021

It might be possible to select all <p> elements and only check for underlines on links within if the <p> contains more than x words, or takes up more than x% of the page or something.

@StevenDufresne StevenDufresne self-assigned this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new test Identifies the need for a new test.
Projects
None yet
Development

No branches or pull requests

3 participants