New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ToC position bug when js is disabled #91
Conversation
I'm a bit confused. If JS is disabled, .toc-sidebar will never be applied. Therefore the rule you're deleting will never be applied. So why is there a problem? Is JavaScript turned off after the page load? |
Some documents such as webmention have the class |
@deniak, I don't think it's ReSpec adding it... at least, I can't find that when I |
Looking at the editor's draft, it seems that the author of that document included it explicitly (class="h-entry toc-sidebar"). |
Ah good to know. Thanks @marcoscaceres. |
@fantasai what do you think about that PR? |
The PR is wrong. It'll break forced sidebar ToCs on narrow screens, which is why that code exists in the first place. If the editor of that document is manually adding .toc-sidebar, then that editor needs to stop doing stupid things. PR rejected. |
Thanks for the review. I'll ask the editors to remove the class. |
After a closer look, it was indeed a bug in respec (w3c/respec#644) that was fixed a month ago |
@bert-github noticed a small bug with the ToC position when javascript is disabled and
body
doesn't have the classtoc-sidebar
(eg. https://www.w3.org/TR/2016/WD-webmention-20160329/).On small screens, the ToC overlaps the content instead of switching to the inline mode.
That MR should fix that bug.