Skip to content
This repository was archived by the owner on Sep 19, 2020. It is now read-only.

Commit cdcd47a

Browse files
author
Martin Schwenzer
authored
Update README.md
1 parent 70732cf commit cdcd47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Both issues are now becomming solved by native browser support ... at least part
2020
2. native image placeholder
2121

2222
Img with and height attributes still work perfectly to paint a placeholder into which the image will be loaded.
23-
But whenever we added responsive css to our images, like by adding `style="width: 100%; height: auto;`, the browser where unable to paint the placeholder.
23+
But whenever we added responsive css to our images, like by adding `style="width: 100%; height: auto;"`, the browser where unable to paint the placeholder.
2424

2525
But in the meantime, beginning with Firefox, the broswers now utilize the with and height img attributes to calculate an aspect ratio. With this aspect ratio modern browsers can now paint a placeholder.
2626
(actually this is the same, what this plugin does and the <a href="https://alistapart.com/article/creating-intrinsic-ratios-for-video/" target="_blank">intrinsic ratio </a> trick did back in 2009.)

0 commit comments

Comments
 (0)