WHAT’S NEW ON THE WEB PL ATFORM? R A C H E L A N D R E W, G O O G L E
Slide 2
Rachel Andrew Content lead for Chrome Web Developer Relations at Google, CSS Working Group member. rachelandrew@google.com | @rachelandrew on social media.
Slide 3
Slide 4
New web platform features are exciting! But they also give us more to learn. And, how do we work out if they are available crossbrowser and ready to use in production?
Slide 5
Slide 6
Learn more at: https://web.dev/baseline/
Slide 7
WHAT’S NEW? • Web platform features that are part of Baseline. • Web platform features that are newly interoperable. • Web platform features we can expect to have broadly available soon.
Slide 8
BASELINE FEATURES S U P P O RT E D I N T H E C U R R E N T A N D L A S T V E R S I O N O F M A J O R B R OW S E R E N G I N E S .
Slide 9
The <dialog> element A new HTML element for modal and non-modal dialog pop-ups.
Slide 10
<dialog id=”myDialog”> <form method=”dialog”> <p>This is a dialog.</p> <button>Close</button> </form> </dialog>
Learn more at: https://web.dev/learn/html/dialog/
Slide 11
myButton.addEventListener(‘click’, () => { myDialog.showModal(); });
Learn more at: https://web.dev/learn/html/dialog/
104
102
16.4
Media queries range syntax Streamline your media queries.
Slide 34
@media (min-width: 400px) { /* Styles for viewports with a width of 400 pixels or greater. */ }
Learn more at: https://developer.chrome.com/blog/media-query-range-syntax/
Slide 35
@media (width >= 400px) { /* Styles for viewports with a width of 400 pixels or greater. */ }
Learn more at: https://developer.chrome.com/blog/media-query-range-syntax/
Slide 36
@media (min-width: 400px) and (max-width: 600px) { /* Styles for viewports between 400px and 600px. */ }
Learn more at: https://developer.chrome.com/blog/media-query-range-syntax/
Slide 37
@media (400px <= width <= 600px ) { /* Styles for viewports between 400px and 600px. */ }
Learn more at: https://developer.chrome.com/blog/media-query-range-syntax/
Slide 38
111
113
16.2
New color spaces and functions The color(), lab(), lch(), oklab(), oklch(), and color-mix() CSS functions.
const decompressedStream = compressedStream.pipeThrough( new DecompressionStream(‘gzip’) );
Learn about streams at: https://web.dev/streams/
Slide 46
COMING SOON I N T E R O P 2 0 2 3 F E AT U R E S .
Slide 47
Slide 48
Slide 49
105
Soon!
:has() A parent selector.
15.4
Slide 50
<ul> <li>I do not contain any headings</li> <li><p>I contain a paragraph.</p></li> <li><h2>I’m a level 2 heading!</h2></li> <li><h2>I’m a level 2 heading!</h2> <p>Followed by a paragraph.</p> </li> </ul>
Learn more at: https://developer.chrome.com/blog/has-m105/