Objects in Mirror Are Closer Than They Appear
summary
Built a custom WYSIWYG and hit three concrete limits: the Popover API only attaches to buttons so it won’t follow arbitrary text selections; the Selection API returns getRangeAt and getBoundingClientRect for regular elements but not for textarea content; the workaround is the mirrored div overlays the textarea and copies computed styles, which lets selection-based popovers work but often misaligns on multiline wraps and different font rendering. Live demos show what breaks and how each API behaves.
AI-written summary · about
chapters (11)
- 0:00Introduction and personal story
- 3:10Discovering AI agent on maternity leave
- 7:06Exploring Popover and Selection APIs
- 11:29Using AI agent for help
- 15:31Lessons learned from challenges
- 16:15Resources and closing remarks
- 17:02Q&A on talk tips
- 23:54Electron for open source contributions
- 27:12Discussion on AI agents
- 33:03AI agent capabilities and experiments
- 36:40Q&A wrap-up and closing
