New CSS features you can use today! RACHEL ANDREW, GOOGLE
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 CSS features are exciting! But they often aren’t useful to us if they don’t work in all major browsers.
Slide 5
Interoperable Features CSS THAT WORKS IN ALL MAJOR BROWSER ENGINES.
Slide 6
Slide 7
111
108
15.4
CSS trigonometric functions More mathematical functions in CSS with the sin(), cos(), tan(), asin(), acos(), atan(), and atan2() functions.
104
102
16.4
Media queries range syntax Streamline your media queries.
Slide 26
@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 27
@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 28
@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 29
@media (400px <= width <= 600px ) { /* Styles for viewports between 400px and 600px. */ }
Learn more at: https://developer.chrome.com/blog/media-query-range-syntax/
Slide 30
111
113
16.2
New color spaces and functions The color(), lab(), lch(), oklab(), oklch(), and color-mix() CSS functions.
<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/