Inline Tufte CSS sidenotes break text selection and reader modes
The author of this blog post argues that Tufte CSS sidenotes may be a bad idea. Tufte CSS puts each note inline in the HTML, wraps it in a span, and uses a checkbox trick to collapse it on narrow screens, so the browser's layout engine moves it to the side.
The main problem, according to the author, is that HTML does not expect a floating, collapsible block inside a paragraph. The DOM[1] keeps the note in the middle of the sentence, so selecting text from "serif fonts" to "Tufte CSS" also selects the note's text. Reader modes[2] and the EWW text browser show the note in the same place, and TalkBack, a screen reader[3] on Android, reads the note as stray words.
The author's own blog writes its footnotes in Org-mode, places each one below its paragraph, and moves them to the side with CSS on wide screens. On mobile they stay as footnote blocks. Other posts on the blog use only footnote blocks, because the author does not think the sidenotes can be aligned with their references in CSS.
Repository Tufte CSS github.com
CSS stylesheet that formats web pages like Edward Tufte's handouts, with margin notes and sidenotes.
Read the original kyo.iroiro.partyDiscussion
Sources
-
Kyou
Would you reconsider your Tufte CSS sidenotes?



