Lurker News

Comments (94) 31 threads

Earlier comments
JasonFruit#
This is the first time I've seen something that calls itself a "brutalist" web page actually expose its structure, the way I understand brutalism. It also reminded me of reading a literate program. Great work!
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.
phelm3 replies#
adding contenteditable to the tag allows for editing in the browser too
contravariant1 reply#
Rather surprisingly this allows you to modify the style as well. Not sure anyone's ever used that before.
comboy#
Only those inside , still very cool. I had no idea about contenteditable
neogodless#
That's really neat - as you can edit the page you're on, which changes the visibility or styling of the source code of the page. Until you can no longer see the source code depending on which styles you change...
LeonB1 reply#
that's a truly wicked idea... okay i've snuck a contenteditable in to the file. Editing styles live inline is wild.
LeonB#
Rats, i had to remove the contenteditable=true... it stopped links from working... still the idea of a visible `contenteditable` style block is a great one. Have to use that some time!

Load more comments