-
Notifications
You must be signed in to change notification settings - Fork 779
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
Proposal: Need for loading external assets in axe-core #906
Comments
For clarification, there are several rules that we need this for, not just WCAG 2.1 rules. An important feature request was to have Axe test the hover / focus state of rules. We can only do that with access to the CSSOM. This is expected to cut manual audit time quite substantially. |
@WilcoFiers - updated proposal based on your comments. |
Just so everyone is on the same page, can you please elaborate on "why" here? It seems like |
|
PR - #958 |
PR was merged. Hence closing the issue. |
Load external assets in axe-core:
Requirement:
In order to support both existing rules and upcoming new WCAG2.1 rules (Eg: issue #851), there is a need to load external assets, in this case external stylesheets.
Having tried a few options as detailed in the issue to get hold of the assets, believe the best way to go ahead would be to introduce ability to load external assets in axe-core,.
Note: The assets can be loaded in parallel when axe is run against rules that are not dependent on external assets.
Considerations:
At this juncture although the need is only for the construction of CSSOM, there may be a need to support pre-fetching of external assets as support for newer rules are incorporated (Eg: AOM).
Suggestions:
preload: ['CSSOM']
, which defines dependencies of external assets.age.run
, like so:This will provide end-users of the library to easily control loading external assets.
Known Catches:
Some Preliminary Work:
Next steps:
The text was updated successfully, but these errors were encountered: