My first attempt was to anchor an element to another one that occurred later in the document order, and it didn’t work. The anchor must be placed before any of its dependents. It kind of makes sense, but doesn’t jump out as intuitive.
The `margin:0` issue was particularly frustrating & imo should have been covered in the article, as it's a real gotcha when trying to use popover & anchor positioning in combination.
Totally honestly, it was a lot of work, I got bored, and it was diminishing returns for the later parts.
Links to: https://www.w3.org/QA/Tips/noClickHere
> contributed Sep 2001 by Aaron Swartz
RIP you're still remembered
- Dorian's expandable parentheticals (click on the gray phrases): https://doriantaylor.com/person/dorian-taylor#me
- Gwern's list of sidenote implementations: https://gwern.net/sidenote
- The ellipsis -> bottom modal pattern, found on buttondown articles like this one: https://buttondown.com/hillelwayne/archive/you-can-cheat-a-t...
These days, I try to remove tangents from my writing, publishing any good tangents as microblog content instead.
I'm also considering unhyperlinked footnotes, and letting the reader scroll to the bottom if they want, the low-tech way. It's less distracting that way, and there's no accessibility issues either.
Here's an example with a fair number of sidenotes:
That particular example on mobile falls back to a revealing pattern, which is pretty good.
It still has the problem where it's just a test of your curiosity. You don't really know what the supplementary content covers until you expand it. The link text is just a superscript number which is kinda useless.
This is why I prefer the solutions in the article where the supplementary content has a heading that hints at the content.
> If the footnote markers are links, then the user can use the back button/gesture to return to the main content. But, even though this restores the previous scroll position, the user is still left with the challenge of finding their previous place in a wall of text^6.
and didn't read footnote 6, which mentions the technique I'm describing. But I still don't seem to see the UX issues, other than the mention of a teeny-weeny hit target, which I admit is perfectly legitimate. But I am an academic, so it is probably no surprise that imitating academia appeals to me.