Get your 90s vibe on, as Pete LePage has took the version number 90 to the next level there … BRILLIANT! 🤩
Chrome 90 is rolling out now! There’s a new value for the CSS overflow property. The Feature Policy API has been renamed to Permission Policy. And there’s a new way to implement and use Shadow DOM directly in HTML. Plus there’s plenty more.
~
The Declarative Shadow DOM seems like a very nice addition, but will to have to wrap my head around not using for it though — it’s <shadow-root />
<template shadowroot="open" />
we need to use. You can read the reasoning behind this decision in the explainer.
~
I’ve tweeted about overflow: clip;
before. It can be compared to overflow: hidden;
, except for the fact that it will never ever create a scrollcontainer (not even one that can be moved programmatically, through JavaScript).
💁♂️ `overflow: clip` doesn't differ that much from `overflow: hidden`, except for the fact that `overflow: clip` does not create a scroll container.
— Bramus! (@bramus) December 3, 2020
Using `overflow-clip-margin` you can define how far outside its bounds the element is allowed to paint before being clipped. https://t.co/PSi4s4ygij pic.twitter.com/AXV1A909di
~