-
Notifications
You must be signed in to change notification settings - Fork 781
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
feat(frame-focusable-content): new rule to test iframes with tabindex=-1 do not have focusable content #2785
Conversation
…=-1 do not have focusable content
For whatever reason the thing that cases frame-test rule to fail is adding a nested iframe to this rules integration test. It doesn't matter if the |
let width = parseInt(frame.node.getAttribute('width'), 10); | ||
let height = parseInt(frame.node.getAttribute('height'), 10); | ||
width = isNaN(width) ? rect.width : width; | ||
height = isNaN(height) ? rect.height : height; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prevents margin/border/padding CSS from affecting the width/height (otherwise in Chrome a width and height of 1 would result in a rect size of 5x5).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change request
Pulling out more of #2762 to see if it fixes the ie11 problem that only happens in circle.
Note: The
after
method is incomplete on purpose. This is just the minimalistic amount of code necessary in order to get the rule to run.