←back to thread

125 points robin_reala | 1 comments | | HN request time: 0s | source
Show context
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 #
account42 ◴[] No.46203819[source]
What browser is that?
replies(1): >>46203963 #
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 #
1. account42 ◴[] No.46205009[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.