I'm not native English speaker and I want to be sure I know what "fallback" means. I've checked that it can refer to a "Plan 'B'". More specifically, I've read this sentence from a file "For using REM and a fallback".
// Mixin: Font Size
//
// For using REM and a fallback
//
// usage:
// @include font-size(1.2);
//
@mixin font-size($sizeValue: 1.6) {
font-size: ($sizeValue * 10) + px;
font-size: $sizeValue + rem;
}
I also want to know what "fallback" means in this context. "Fallback" is it one of the two options? Are they using Fallback Pattern?
Definition of fallback (Entry 1 of 2) 1 : something on which one can fall back : reserve —often used attributively a fallback careera fallback position. 2 : a falling back : retreat. 3 : something that falls back the fallback from an explosion.
In this page you can discover 10 synonyms, antonyms, idiomatic expressions, and related words for fallback, like: forward, pullback, pullout, retirement, retreat, withdrawal, disengagement, fall back, default and SO_LINGER.
noun. An alternative course of action that may be taken if the original plan fails. 'it's important to have a fallback position' 'In case neither of us was successful, I had already arranged a fallback position. '
Fallback Date means the date that was 12 months prior to the date of expiration of the Toolbox Subscription.
Lets say you want to work with mediaqueries but not every browser can handle it.
<link rel="stylesheet" media="all" href="fallback.css" />
<link rel="stylesheet" media="screen and (min-width: 900px)" href="advanced.css" />
So in this case every browser that cannot handle media queries falls back to "fallback.css" at least. Those that support media queries will load fallback.css AND advanced.css if the media query matches the specification of the device (keyword: progressive enhancement)!
The same applies to the actual question where font-size: ($sizeValue * 10) + px;
is the fallback for those browsers that don't support font-size: $sizeValue + rem;
. Or in short: browsers that don't support the rem
-unit on CSS values fallback to the CSS value with the px
-unit.
From this context the fallback should deliver a minimum state - so to say...
body{ font-family: super-fancy-font, Arial, sans-serif }
then those that don't have the font "super-fancy-font" installed will fall back to "Arial" but again only if Arial is installed and otherwise you tell the browser to take the standard font without serifes.<noscript>
-tag this normally is a fallback for
browsers that don't support javascript. In this example browsers that
support javascript will not load the content wrapped by <noscript>
.Let's assume you want to make a barbecue and you love to see the whole audience beeing happy! You remember those nice spare ribs from last barbecue that you really liked and put them on your list.
But wait; you remember that some of your wives good friends (from the yoga course) are vegeterians and jepp that's a no brainer you must not dissappoint your wives buddies so let's have a fallback for those that don't like meat and put mozarella sticks on your list.
Suddenly you remember those buddhist monks you invited last sunday when you asked them to come expecting them to say "NO" but nonetheless they agreed. So let's have another fallback for those that eat vegan and put a lot of nice vegetables and fruits on your list.
By now you have an ideal barbecue setup:
So every group has its appropriate fallback and will have the best possible experience!
wikipedia.org
Fallback is a contingency option to be taken if the preferred choice is unavailable. [...]
wiktionary.org
[...] an alternative which can be used if something goes wrong with the main plan [...]
REM is CSS unit for font-sizes (I guess by your source) and fallback (in Sass or LESS) gets rem working in all browsers...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With