3 ms·
This was absolutely not possible 20 years ago. The only pseudoclasses available at that point were the anchor pseudoclasses and :first-line/:first-letter.[1] W
by wyattpeak 5y ago
This was absolutely not possible 20 years ago. The only pseudoclasses available at that point were the anchor pseudoclasses and :first-line/:first-letter.[1]
What's being shown off here is not having a single page of a website in just HTML/CSS, but having all pages.
[1] https://www.w3.org/TR/REC-CSS1/#pseudo-classes-and-pseudo-elements https://www.w3.org/TR/REC-CSS1/#pseudo-classes-and-pseudo-el...
- pjmlp 5y agoHaving an entire Website in a single HTML page was definitely possible.
- wyattpeak 5y agoNot if you wanted multiple pages without Javascript it wasn't. Which is what's interesting about the site being described, although the article does a weak job explaining it.
- pjmlp 5y agoThat is moving the goalposts, with DHTML or not, it can be a single HTML page.
- wyattpeak 5y agoI'm not moving the goalposts, my goalposts are exactly where they were in my first comment: The concept demonstrated in the article was not possible twenty years ago. In fact I was very specific about what concepts were not possible twenty years ago: "What's being shown off here is not having a single page of a website in just HTML/CSS, but having all pages." You're the one who proceeded to ignore that and make an unrelated claim about something different that was possible twenty years ago.
- pjmlp 5y agoYou can have all the pages with DHTML and using style ID/classes to select what is visible, nothing new about it, other than the artificial limitation of not using DHTML.
- wyattpeak 5y agoOf course it's an artificial limitation, the whole thing is an exercise in artificial limitation. Putting all pages in the same document is an artificial limitation. They're artificial limitations exercised in pursuit of demonstrating that, with new CSS tools, something surprising can be done. Something which, as I stated in my original comment, could not be done twenty years ago: putting multiple pages in the same HTML file without Javascript.