225 private links
To simulate unsupported CSS rules: delete them.
Providing fallback is as easy as providing multiple values for the same property: the first the most supported, then going to the last value.
In other situations, we might want to apply an alternative set of styles when a feature is unsupported. We can use the @supports at-rule for this.
The goal isn’t to produce exactly the same UI for all users. The goal is to provide a reasonable fallback experience.
- browser breakdown
The statistics come from caniuse, that uses the web analystics statcounter. For each website, the audience will be different. Joshwcomeau notes that there are 4.1% more Firefox users visiting his website.
It leads to the potential harm: Is it OK to break the user experience for 1% of users? What is the potential harm caused by a broken experience?
To answer this question in business, this is a cost question: is it worth it? On the contrary, essential services such as a booking vaccine service needs to be as widely supported as possible.
Pro tip for media queries: using min-width container queries only will display at worse the mobile view.
This is a playground for learning and testing CSS selectors in a visual way. Start by selecting a playground or let's start with a random selector.
A progressive enhancement with view-transition
Are CSS reset needed? The author generates diff-images with and without.
Using margin-inline
und max()
Are CSS reset always needed?
CSS resets are based on three premises:
- There are differences in how user agents present web pages, that is, their default styles vary.
- These differences have an effect on the given website.
- The differences are important to be handled.
But there are developers that does not use these resets
- That there are sites and apps out there that do not use and that work fine without a CSS reset is pretty much never being talked about in the context of CSS resets.
- When we take the extreme positions of always and never needing a CSS reset, positions we observe in practice, then we end up with a contradiction. P & ¬P
It reflects ARIA presses state with CSS. Isn't it already built-in ?
I am using it for aria-current.
Should it become a standard layout?
I also started when Flexbox was becoming at thing around 2014-2015.
[I] ... always hope that they learn from our past mistakes and become masters at the basics.
Replace <br>
with text-indent: 2em each-line;
.
The support for "each-line" is limited though: https://caniuse.com/?search=text-indent+each-line
TL;DR use fluid typography and now uses fluid sizes :)
The idea is to set sensible typographic defaults for use on prose (a column of text), making particular use of the font features provided by OpenType.
Different definition of a UI component, from the minimalistic css one to the SSR full page.