W3C home > Mailing lists > Public > www-style@w3.org > April 2013

Proposal: iframe/object and :empty pseudo-class

From: Benjamin Blum <benjamin.blum.98@gmail.com>
Date: Tue, 19 Mar 2013 17:45:08 +0000
Message-ID: <CAN-uwpLRDp2K5s59DPQT_VO2oLnhC26rq51FCE4SdKzY3EoVvA@mail.gmail.com>
To: www-style@w3.org
I have to work with an iframe that can be void (the server send an empty
string as content).
Currently, the :empty pseudo-class is useless with iframe, an iframe is
always empty. I must use javascript to display it properly, consisting as
setting class attribute to empty...

The :empty pseudo-class can be set when the request result in a
content-length of 0. Same when the src attribute is empty.
Javascript became useless and a simple styling for iframe and iframe:empty
could do well.
Received on Thursday, 4 April 2013 10:01:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:10 UTC