How to correctly position context menus using pure CSS
Introduction I was recently challenged with a pretty common, and a simple problem of positioning a custom context menu. When you DuckDuckGo how to position a context menu phrase you will be greeted with solutions that either: don’t consider boundary conditions or use JavaScript to check the conditions and position the menu accordingly. The issue with the first solution is that it’s not great in terms of User Experience....