W3C home > Mailing lists > Public > www-style@w3.org > September 2015

Re: Finding elements that are hidden due to overflow: hidden

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 2 Sep 2015 15:41:51 -0700
Message-ID: <CAAWBYDBcOc2SdO6BWfAhLWfTa8adeutz_VYA_=LqpRAd+5MtKg@mail.gmail.com>
To: Behrang Saeedzadeh <behrangsa@gmail.com>
Cc: W3C CSS Mailing List <www-style@w3.org>, EcmaScript Discuss Mailing List <es-discuss@mozilla.org>
On Tue, Aug 25, 2015 at 6:39 PM, Behrang Saeedzadeh <behrangsa@gmail.com> wrote:
> Looks like at the moment DOM does not expose any properties that signify
> whether an element has become hidden due to an overflow: hidden on their
> parent element.
> Any chance of adding this feature to DOM?

That's a result of CSS layout/rendering; it doesn't seem
super-appropriate to add to the DOM.  It's also a bit troublesome; an
element can be partially hidden, so when does this flag flip to true?
It's also very specific; there are a ton of ways that an element can
get hidden besides being clipped by an overflow:hidden ancestor.
What's the actual use-case you're trying to address here?

Received on Wednesday, 2 September 2015 22:42:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:56 UTC