On May, 25th this year RWD turned 3 years old. Is it a long time? Do you think this is a long time? Yes, I do. Considering what the web is and what has been achieved it is a long time but we still have serious problems with the basics.
by Peter Kröner
See the Pen Single Element Pure CSS MacBook Pro by Joshua Hibbert (@joshnh) on CodePen
See the Pen Navigation Bar by Jan Kaděra by Katy DeCorah (@katydecorah) on CodePen
See the Pen CSS Fine Art by Josh Rutherford (@the_ruther4d) on CodePen
We don't have our basics yet.
img, video {
max-width: 100%;
height: auto;
}
img, video {
object-fit: contain;
object-fit: cover;
object-fit: fill;
object-fit: scale-down;
}
Boo, that isn't funny since both event types are used right now:
Thank god someone has written an abstraction.
But there is way to go for Blink & WebKit and Firefox. At least, implementation has been started recently.
Luckily enough there weren't such when I wrote my first touch web-application. Hours of horror. Honestly. Blink and Firefox recently started work on Pointer Events implementation but this will take a long time and WebKit will follow after that at earliest.This Blink-task needs to be finished soon!
<img src="normal-image.jpg" srcset="highres-image.jpg 2x">
Supported in WebKit Nightly already; Blink to follow soon.
Even RICG is now partly on that train of srcN, but yet no browser vendor took any step into one direction.
How can we avoid?
<link rel="stylesheet" type="text/css" src="Styles.css"> <link rel="stylesheet" type="text/css" src="Animations.css" lazyload=""> <img id="Logo" src=".../images/Logo.png"> <img id="Header" src=".../images/Header.png"> <img id="AdditionalImages1" src=".../images/AdditionalImages1.png" lazyload=""> <img id="AdditionalImages2" src=".../images/AdditionalImages2.png" lazyload=""> <video id="MainContent"><source src=".../videos/MainContent.mp4"></video> <script src="Visuals.js"></script> <script src="Analytics.js" lazyload=""></script>
<template id="commentTemplate">
<div>
<img src="">
<div class="comment-text"></div>
</div>
</template>
I want all this stuff now!