currentColor won't work here, as it usually computes to black because of the SVG exemptions to forced colours.We can get around it by having several extra copies of each SVG, using system colour keywords for their fill. We already do use SVG for the icons, as CSS background images, embedded as data urlsThe snag is that such icons can't have their CSS colour overridden in the page stylesheet, because they are a separate rendering root (or something? I don't grok it all). If the font loading is hanging (slow connection or JS error), users would just see the random irrelevant character you are using to represent the icon. The symbols will either disappear or be replaced by generic "tofu" placeholdersWhat do you mean by the "regular font"? The one specified in our stylesheet? That won't count for toffee when the user overrides it. The symbols will be replaced with whatever the user's chosen font says is at that codepoint. Icon font in general is just a bad idea, why not svg? That's something users are supposed to be able to do, and browsers provide a UI for it, and I don't want to thwart that.īut if the icon font is using a unicode range that the regular font doesn’t support (which they won’t) it shouldn’t break (edited) Such icons would all break as soon as a user picks their own font. I wonder if it’d make sense to create a small administrative icon font? So many Windows high contrast / forced colors issues in Olivero and Claro. If I haven't reported back in a week or two, feel free to un-assign me and proceed with the approach in the current patch. I have some ideas to tinker with the original SVG, so assigning to myself for that. Please hold off from committing this in a hurry. I'm concerned they could be fragile, but haven't demonstrated any outright disasters yet. Some speculation and experiments about the robustness of CSS shapes in the face of user stylesheets.Too fragile, particular with regards to users who override the author-specified fonts, which is a completely reasonable user preference. suggested using an icon font, then and I did our best to disavow him of this idea.On Slack today there was a wide-ranging conversation about icons in forced-colours mode, between and myself. ![]() Tag1 supports Drupal development! Comments IE11_-_Win7_before_upgrading_ie_Running_-5.png
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |