This is a selection of news items that have been published on https://webplatform.news between February 6 and February 11.
Nicolas Hoizey: The
100vhWebKit bug has been reopened. The CSS
100vhvalue is larger than the viewport height in mobile browsers.
DuckDuckGo: Most major tech companies, including Google, Facebook, and Twitter, do not respect the Do Not Track setting (
DNT: 1request header), which is used by around 24% of people. Apple will remove this setting in the next version of Safari (12.1).
Nick Colley: You can prevent the “sticky hover” effect on touch devices by defining your
@media (hover)rules. [demo]
Jen Simmons: The CSS Working Group is currently discussing whether virtual keyboards on touch devices should affect the viewport height (incl. vertical media queries and the
Note: On iOS, the virtual keyboard has no effect on the viewport height (
vhunit, but on Android it does (those values become smaller). Demo: https://jsbin.com/mocepom/quiet.
HTML Standard: Links with
Note: This change has already been implemented in Firefox Nightly and Safari Technology Preview. If you set
target="_blank"on links to external pages, make sure to also set
rel="noopener"to prevent the target page from accessing your page (via
Patrick Hulce: The average execution times of popular third-party scripts on the web (based on HTTP Archive crawl data and Lighthouse test results).
Jen Simmons: CSS
vertical-align: baselineis not a good default for
<img>elements because it causes a small gap below the images (the space between the line box’s baseline and descender).
Visit https://webplatform.news for the latest web development news.