3 ms·
You're describing a weird place where you want to display a semantic document (the html) using some non-semantic style rules (css, specifically :before and :aft
by JoelSutherland 15y ago
You're describing a weird place where you want to display a semantic document (the html) using some non-semantic style rules (css, specifically :before and :after) and not others (@font-face) and then interpret the result as a whole semantically.
If you want to browser-set font colors, you're going to have a hard time when they match CSS set background colors.
- Leynos 15y agoI don't force the font colour in my browser, but I do force the font face, as I have trouble reading sans serif type. (Although I could see why someone might want to force the colours in their global stylesheet for accessibility reasons.) Personally, I'm not particularly fond of the use of :before, etc. either (they should be used for purely decorative purposes - the examples in the article seem to be using them to convey meaning), so what I'm suggesting doesn't really make much sense. :P
- alwillis 15y agoSometimes we take the whole semantics thing to a point where it's counterproductive. Not every single selector has to be semantic. That's how get into situations like the ones that lead to Nicole Sullivan writing "Our best practices are killing us":http://www.stubbornella.org/content/2011/04/28/our-best-practices-are-killing-us/ http://www.stubbornella.org/content/2011/04/28/our-best-prac...