From: "Paul W. Rankin" Subject: Re: httpd: improve directory index CSS To: Omar Polo Cc: tech@openbsd.org Date: Fri, 31 May 2024 21:05:49 +1000 > On 31 May 2024, at 19:53, Omar Polo wrote: > > On 2024/05/31 15:23:25 +1000, "Paul W. Rankin" wrote: >> It looks like the original email was blackholed. Here it is again... >> >> This patch adds the CSS property font-variant-emoji: text to the >> directory index. When supported this property prevents the unicode "up >> and down" arrow being displayed as an emoji. Currently this property >> needs to be explicitly enabled by users in Firefox and Safari, but will >> hopefully be default soon. >> >> More info: >> https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-emoji > > so this should prevent future browsers from rendering the "up and down" > character in colours. the mdn page is a bit vague in terms of what will > be the default value, saying that it's os-dependant. > > however, i'm for a more sober design, and the cost of keeping one css > property is negligible. Kind of. Currently browsers can choose to render some unicode characters as emojis instead of text. For reference, this is what the auto index page looks like in iOS Safari: https://0x0.st/XN6y.png This CSS property will, at a point in the future, ensure the unicode text is displayed as the original text instead of replaced with emojis. Browser support for this property currently requires the user explicitly enable it in Firefox and Safari. >> This patch also removes the italic styling on directories. I think this >> is preferable because the directories are already bold and the italics >> make the bottom of the characters squash up against each other. > > fwiw I agree, i think it's more readable without italic. > > by the way, the diff was mangled by your MUA, but can't help with > setting up apple mail (deduced from the headers) so that i doesn't > mangle whitespaces. i'm reattaching your diff. > > (to test you can try sending a diff to yourself and apply it) Sorry about this. I struggled a bit with git-send-email on my OpenBSD machine. I know it's against netiquette but I’ve attached the patch instead. I’m this is okay.