Help needed!
Does anyone know why :before and :after pseudo-elements are not showing when I toggle the .active class?
=> More informations about this toot | More toots from cita@mastodon.social
Codepen: https://codepen.io/CiTA/pen/bGXyGLb?editors=1111
=> More informations about this toot | More toots from cita@mastodon.social
I wouldn't have noticed this behavior without the checkbox animation, which restarts every time.
=> More informations about this toot | More toots from cita@mastodon.social
@cita I think it's has to do with the use of display: none. The browser no more generate boxes for pseudo element so they disappear from the DOM tree
=> More informations about this toot | More toots from css@front-end.social
@css Yeah, it works as expected when I use other techniques to hide the section. Do you have any documentation on this behavior?
=> More informations about this toot | More toots from cita@mastodon.social
@cita not sure if there is any explicit explanation relative to pseudo element but the definition of "display: none" says "The element and its descendants generate no boxes or text sequences." so I assume the browser will hide them because they generate no boxes.
=> More informations about this toot | More toots from css@front-end.social
@css Yes, that's the answer I got on BlueSky, too.
That's so weird.
I don't remember seeing this issue before. o_O
=> More informations about this toot | More toots from cita@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini