Lurker News

Comments (94) 31 threads

Show all comments

Showing thread 11 of 31

vectorEQ2 replies#
even though the source is visible, the tags are unselectable. adding that would make it perfect imho. just heard about quines the other day so pretty cool to see one :D good effort!
uryga2 replies#
i'm on my phone, but wouldn't something like this work?

  *::before, *::after {
    user-select: text; // or `all`?
  }
LeonB1 reply#
I had a look into it; user-select doesn't apply to before/after content.

This process has taught some interesting things about browsers. For example: `
` and `` elements are "replaced" and can't really be shown in the way all other elements are. (I conveniently avoided using them).
And, as described above, ::before/::after content cannot be selected, and generally behave... strangely.

Continue this thread — 1 reply

coreymatyas1 reply#
CSS spec says no, unfortunately. Pseudo-elements aren't part of the DOM and thus can't be selected by any means.

Continue this thread — 1 reply

collinmanderson#
I also noticed that ctrl+f doesn't find search that text either.