629 karma · joined February 25, 2011
Besides that, what I was really trying to say was that a tool like Normalize.css or Bootstrap's Reboot may be more helpful than the classic CSS reset.
I agree my findings are far far away from a specialized audit, but nor did I intended to do one.
I just wanted to check out some of the best practices & stuff, based on my daily experience as a web user and developer.
.compose-form .compose-form__modifiers .compose-form__upload-description input::placeholder { opacity: 1; }
e.g. I do like how Sass makes it easier to write BEM-like code similar to the below:
// style.scss .btn { ... &--success { ... . } }
// style.css .btn {...} .btn-success {...}
But when abusing Sass nesting and choosing a weak naming convention, the resulted CSS selectors can go wild. Here's an example: https://github.com/tootsuite/mastodon/blob/995f8b389a66ab76e...
A while ago I made an HTML study on around 8 million web pages: https://www.advancedwebranking.com/html/
Also, I wrote about this journey on CSS-Tricks: 1. https://css-tricks.com/average-web-page-data-analyzing-8-mil... 2. https://css-tricks.com/random-interesting-facts-htmlsvg-usag...
On accessibility, I'd have loved to try out some screen readers but at the moment I write this article, I thought this accessibility analysis would deserve its own separate topic/article. A11Y is always hard.
https://catalin.red/thoughts-on-accessibility/
Sorry for all these plugs.
I'd love to contribute and try to improve things but this task might become gigantic on long-term, as the Mastodon project itself :)
The thing is there are so many good reasons to use an SVG icon font system nowadays: pure vector, control over the individual shape symbols, positioning is easier thanks to knowing its exact size etc.
Now, to "defend" myself...
I'm afraid that using a regular table wouldn't allowed me to create this pricing table as it looks now. Although this is called a "pricing table", I think using a table isn't recommended in this case as it is quite restrictive.
Also, I avoided using HTML5 elements like "header" because I didn't wanted to include an extra HTML5 shim (for older browsers) dependency.
Regarding using <b> versus <strong>, this could be a long discussion here :). I think <b> just fits in this case as I don't want to add any importance from a content or SEO perspective.
There's no problem with the CSS, I just forgot to decrease font size for the featuress list.
Note that Enterprise "100GB Monthly Bandwidth" is rendered on two rows...
I just updated the article and demo: -Added CSS3 animation support for Mozilla 5+ -Fixed flickering the proper CSS3 animation -CSS3 gradients syntax updated. Now, Safari also renders background stripes.
Once again thanks for your comments! Catalin