-
Notifications
You must be signed in to change notification settings - Fork 783
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
Passing context changes base font-size on Internet Explorer #1585
Comments
To the best of my knowledge, axe-core never sets any CSS properties. We'll have to investigate. Do you have a way for us to reproduce the issue? That would help narrow it down. |
Confirmed that when passing a context into The issue seems to be that in IE11, the final computed font-size of the element is |
Found the bug. In IE11, It gets the |
Awesome @straker! I see now I misread @WilcoFiers I'm sorry I didn't produce a reduce test case in time to speed up this process |
Verified the fix availability, Done unit testing. Results are good , no failures. |
Description
If a context is passed to
axe.run()
, the accessibility check alters the root font size.I inject axe into an Internet Explorer 11 driver instance (selenium grid 2.53.0). My component has a font-size set to 1.714rem and the base font size is 14px. This translates to a font size of 24px. But, accessibility returns an error stating that the font size is 17.9px, which then fails color contrast ratios for non large fonts. If I do not pass in a context and default to
document
, there are no errors.Chrome and Firefox do not cause issues. I have updated
axe-core
to the latest release, but the issue still persists.Expectation:
axe.run
to not alter base font-size based on context for supported browsers.Actual:
axe.run
alters base font-size based on context on internet explorerThe text was updated successfully, but these errors were encountered: