On 17/09/13 11:18 , Neil wrote:
Gavin Sharp wrote:

On Mon, Sep 16, 2013 at 5:12 AM, Aryeh Gregor <a...@aryeh.name> wrote:


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.

The find bar wants to avoid finding "hidden" text, AIUI (see bug
257061). Some false positives would certainly be OK. The findbar C++
code already does something not-quite-perfect and we've lived with
that for a while, so from my perspective it would be fine to make a
JS-exposed helper that does the equivalent and just use that.


Probably the conceptually simplest solution is to get the bounding
client rect of the found range.


Won't that be non-zero for visibility:hidden content?

~ Gijs
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to