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

axe extension in chrome causing disruptive behavior for syntax highlighting with eleventy-plugin-syntaxhighlight #2711

Closed
tannerdolby opened this issue Dec 22, 2020 · 7 comments
Labels
extension Axe Firefox or Chrome extension issues

Comments

@tannerdolby
Copy link

tannerdolby commented Dec 22, 2020

Hello dequelabs team!

This issue is in reference to Major issue with syntax-highlight plugin for multi-line code blocks within eleventy-plugin-syntaxhighlight.

I wanted to inform you that when I have the chrome extension axe - Web Accessibility Testing enabled, it causes disruptive behavior to eleventy-plugin-syntaxhighlight for highlighting fenced code blocks with Prism.

It causes multi-line fenced code blocks to become single line and disregards the white-space: pre style in the Prism stylesheet. It looks like its causing white-space: pre to be white-space: nowrap where everything is in a single line. (Not sure if this is the exact cause but thats what it looks like)

Expectation: Expect the accessibility testing extension not to cause disruptive behavior to the syntax highlighting that is handled by Prism.js within eleventy-plugin-syntaxhighlight.

Actual: Having the axe - Web Accessibility Testing extension enabled with access to "all sites" causes multi-line code blocks that are highlighted with eleventy-plugin-syntaxhighlight to have their styling messed up causing everything to be in a single line ignoring the CSS that should create line breaks.

Screenshot of a multi-line code block that is forced to be single line when the accessibility extension is enabled with "site access: all sites"

Screen Shot 2020-12-21 at 4 15 03 PM

Screenshot of axe extension site access details

Screen Shot 2020-12-21 at 4 02 20 PM

Motivation: I want the behavior to be changed so I can continue to use the axe - Web Accessibility Testing extension alongside eleventy-plugin-syntaxhighlight without having to configure any non-default behavior.

Currently as a workaround, @5t3ph pointed out that having the extension enabled with site access: on click is one way to avoid the issue I've stated above.

Screen Shot 2020-12-21 at 4 09 18 PM


axe-core version: 4.6.2

Browser and Assistive Technology versions

For Tooling issues:
- Node version: v11.0.0
- Platform:  MacOS
@tannerdolby tannerdolby changed the title axe web accessibility testing plugin in chrome causing disruptive behavior for syntax highlighting with eleventy-plugin-syntaxhighlight axe plugin in chrome causing disruptive behavior for syntax highlighting with eleventy-plugin-syntaxhighlight Dec 22, 2020
@tannerdolby tannerdolby changed the title axe plugin in chrome causing disruptive behavior for syntax highlighting with eleventy-plugin-syntaxhighlight axe extension in chrome causing disruptive behavior for syntax highlighting with eleventy-plugin-syntaxhighlight Dec 22, 2020
@straker
Copy link
Contributor

straker commented Dec 22, 2020

Thanks for the issue. @scurker This seems to have popped back up again from #1868

@straker straker added the extension Axe Firefox or Chrome extension issues label Dec 22, 2020
@tannerdolby
Copy link
Author

Your welcome. I only encountered this issue while using Chrome, not sure if its reproduced in other browsers.

@mgostisha
Copy link

Your welcome. I only encountered this issue while using Chrome, not sure if its reproduced in other browsers.

I reproduced this in Microsoft Edge v87.0.664.55. Not really surprising, but another data point.

@garretthyder
Copy link

I'm also seeing similar on Chrome when browsing datatables.net, I'd originally logged a ticket there before finding the cause was axe.
https://datatables.net/forums/discussion/comment/184320

@dzwarg
Copy link

dzwarg commented Jan 7, 2021

This is also disrupting syntax highlighting by highlightjs. See the "HTML" pane at the bottom of page content here:

https://patterns.boston.gov/components/detail/brc.html

@darekkay
Copy link

darekkay commented Jan 9, 2021

Same issue as in #2686

@scurker
Copy link
Member

scurker commented Jan 15, 2021

Closing this issue in favor of #2686. Please continue discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension Axe Firefox or Chrome extension issues
Projects
None yet
Development

No branches or pull requests

7 participants