In a recent question - In a recent questionDoes sneak attack work against an invisible enemy?, - it was pointed out that you couldn't sneak attackSneak Attack an invisible opponent because the rules specifically state that you cannot use Sneak Attack if you have disadvantage foron the attack roll. However, it would not be impossible for the rogue to also have advantage on the attack, by virtue of being hidden or invisible himself.
In this context, where a character has both advantage and disadvantage on a single attack/check, the rules mention that the roll is resolved normally: you roll a single d20 and that's it. Does that mean that you are no longer considered advantaged/disadvantaged?
If so, and assuming the presence of an ally within 5ft5 feet of the invisible enemy, it could mean that an invisible rogue could sneak attack an invisible opponent while a visible rogue couldn't. Is that correct? Or are you, in fact, still considered both advantaged and disadvantaged, and thus can't perform a sneak attackSneak Attack?
Precision: Sneak attackAttack is the use case that triggered the question. That being said, there are probably other things that require advantage/disadvantage to be activated, so answers should focus on the relationship between advantage and disadvantage, and not on sneak attackSneak Attack necessarily.