Follow

Some more fun frontend stuff I learned:

Firefox will make a div focusable by keyboard if the content overflows:
bugzilla.mozilla.org/show_bug.
This is an acessability feature to allow scrolling via keyboard. Make sure you have proper acessible names for these divs.

display: block and display: inline-block
lead to differences in how scrollWidth is calculated when borders/paddings/margins are used.
scrollWidth can "lie" to you about the real width because in some circumstances it does not include the borders/paddings/margins of an block element. Switching that element to inline-block includes these values in the scrollWidth
w3.org/TR/CSS2/visudet.html#bl and stackoverflow.com/questions/10

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.