←back to thread

125 points robin_reala | 5 comments | | HN request time: 0.241s | source
1. i-con ◴[] No.46203268[source]
No CSS is better than bad CSS

In my browser that "Page Contents" box is hovering above the end of the line, so I can't read the full text. Kind of ironic, that this is on w3.org

replies(2): >>46203528 #>>46203819 #
2. the_other ◴[] No.46203528[source]
> No CSS is better than bad CSS

That's only true if the markup and JS are also good. If, for sake of argument, the HTML had been badly authored such that the links in that menu were DIVs with click event handlers, rather than real links, then removing CSS would likely make the experience worse rather than better.

I guess that a key point underpinning your comment is that progressive enhancement is still better than assuming all potential users are on the bleeding edge, despite the evergreen update pattern for the most popular 3 or 4 browsers.

3. account42 ◴[] No.46203819[source]
What browser is that?
replies(1): >>46203963 #
4. i-con ◴[] No.46203963[source]
Tested with WebKit and Gecko. Apparently the position gets fixed up at runtime if JavaScript is enabled. But why have dynamic elements with CSS if you need JavaScript to fix it?
replies(1): >>46205009 #
5. account42 ◴[] No.46205009{3}[source]
Ok yeah that's really weird. It uses javascript to unconditionally add the has-sidebar class to <body>. Maybe a limitation of their templating system but that's not really an excuse.