Re: [selectors4] no way to select visible children

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Aaron,

On 07/10/2015 11:24 AM, Aaron Reisman wrote:
> I feel like most people would agree.
> 
> when I say :first-child, or :last-child
> 
> what I'm really saying is I want the ":first-visible-child" or the 
> ":last-visible-child"
> 
> I don't care about elements that are "display: none" when writing
> CSS.
> 
> I'm not sure if we want to introduce these new pseudo selectors or
> update the idea of what :first-child or :last-child means.
> 
> but these definitely need to be a feature in CSS.
> 

In the spirit of <http://w3cmemes.tumblr.com/image/121697381917>, can
you tell me what happens if I write

:first-visible-child {
  display: none;
}

or

:first-child:not(:first-visible-child) {
  display: block;
}

?

Thanks
Ms2ger
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJVrR5AAAoJEOXgvIL+s8n2VREIAIDK12CUgV1CCeghiB/uSzQO
BfFii2ELYA+rth70sjxRI7deDpA+eUdsbh+340Dnt1YPbIA+lKykSl/ceT/7D69H
F/Hmc3E7RoF4HBAUxKKYWYdiGcF9ZUYnj/7zA7RkGuTbHjE2DwQIQf8UNLvq4Iet
giTW393zeDba0wXVeV/qalTO1kFbljnCgAB0lLo+zo0j7OQFQco88qXee957Uchj
dak2cat/uq18j6A00C0yG4Es3+Hrl5bSKKHiH+Vqvt0+1xFzY1oGWdplEDGRFU4m
IdwYYWrTwB01tARFiurrpYvrbqHruhRc0cYVL43xj6XwC5Yz+e2fTdyW0hcRAdk=
=X3vm
-----END PGP SIGNATURE-----

Received on Monday, 20 July 2015 16:14:48 UTC