-
Notifications
You must be signed in to change notification settings - Fork 25
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
Support shadowDom in displayed #23
Conversation
Thanks for the submission! One area this regresses on is CSS with |
What about one-size fits all: always use window.getComputedStyle? Sent from my LGE Nexus 5 using FastHub |
BTW I'm using this on elements that have |
The 3rd case is users testing a Dom node not attached to the body with an inline display style. |
Can we check for that case specifically?
? |
See also this incredible library https://github.com/UseAllFive/true-visibility |
Take a look at this gist. I wasn't able to get it to work in all cases. https://gist.github.com/bennypowers/80cfb099afc578d6e601dbde1ac9a180 test('edit controls should display', (done) => {
flush(() => {
edit.$.frameNext.should.be.visible;
done();
});
}); |
NOTE: I was unable to test this code due to nathanboktae/mocha-phantomjs#217 so please test before merging
That's what the current code does...
Meh, "true visibility" is a bag of hurt and can go on forever if you want. For example some things not covered in that snippet
Really I'd rather have something like that separate from this library. There are no tests for all those cases too. Not to mention calling |
closes #22