On Mon, Sep 16, 2013 at 1:07 PM, Mike de Boer <mdeb...@mozilla.com> wrote: > * Is a node visible, with all CSS styling taken into account that might cause > an element to not be visible, including parent nodes that might obscure it? > > In other words, when a node is painted on the canvas by the gfx layer, > partially or not, I'd expect the method to return `true`. If elements are not > painted in background tabs or if its below an overlapping window, then that's > OK if it simplifies the method implementation; the consumer(s) of this method > will just have to take that into account.
What are the answers to roc's questions? There are a ton of ways that something can be effectively invisible using CSS, which really are not practical to exhaustively check for. If you're okay with some false positives (something reported as visible when it actually can't be seen), then the problem is tractable, and the more work you put in the fewer false positives you'll get. The real question is: what's the use-case you're trying to solve? If it's some sort of optimization, false positives should be okay. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform