Next-generation web styling (Chrome Dev Summit 2019)

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 196

  • @DavidPerez-vb7uz
    @DavidPerez-vb7uz 5 років тому +494

    0:00 Intro
    0:48 1. scroll-snap - native scroll inertia and decelerations
    2:36 2. focus-within - solving focus accessibility within elements
    4:13 3. @media (prefers-*) - considerately adjust your UI/UX to a user's device preferences via Media Query hooks provided by browser
    6:50 4. logical properties - dynamic directionality
    10:00 5. sticky situations - keeping UI within the viewport
    11:44 6. backdrop-filter - style adjustments behind an element
    13:14 7. :is() - formerly :any() && :matches()
    @ 8. Grid-gap
    14:53 9. CSS Houdini - a low-level API for CSS
    19:20 10. typed OM - CSS values as JavaScript objects rather than strings
    20:58 11. Paint API - create your own paint functions using a canvas-like syntax
    27:12 12. animation worklet - off the main thread animation
    30:25 Speed Round - size, aspect-ratio, min(), max(), clamp(), list style type, display: outer inner, CSS regions, CSS modules

    • @LuisSierra42
      @LuisSierra42 5 років тому +16

      Doing god's work sir

    • @AlohaBrent
      @AlohaBrent 5 років тому +2

      legend

    • @dw7647
      @dw7647 5 років тому +9

      People like you restore my faith in the internet

    • @CoryTheSimmons
      @CoryTheSimmons 5 років тому +6

      Thanks for jumping on that grenade for us.

    • @ashnur
      @ashnur 5 років тому +1

      thank you

  • @karthickvignesh1404
    @karthickvignesh1404 5 років тому +252

    A moment of silence for all the people like me who are still developing for IE support

    • @_nom_
      @_nom_ 5 років тому +40

      Just don't. Put a message up saying you need to use an actual web browser.

    • @NSEYA01
      @NSEYA01 5 років тому +16

      I don’t feel sorry for you, you made the choice

    • @marwinlebensky4555
      @marwinlebensky4555 5 років тому +9

      @@_nom_ actually, even apple does it. never underestimate the power of users who are forced to use internet explorer and judge YOUR website!

    • @philgb1126
      @philgb1126 5 років тому +2

      Ahahahahahahahahahahahahahahaha even my computer laughed

    • @peristiloperis7789
      @peristiloperis7789 4 роки тому +1

      If you're doing that, you deserve the pain.

  • @serenity_zero
    @serenity_zero 5 років тому +56

    14:10 "awesome Firefox dev tools" =)

  • @phil-l
    @phil-l 5 років тому +83

    WOW how did I not know about scroll-snap!

    • @51w42
      @51w42 5 років тому

      *you english speak good*

    • @phil-l
      @phil-l 5 років тому

      ​@@51w42 fixed it for you bae

    • @phil-l
      @phil-l 5 років тому

      @C S lol

    • @51w42
      @51w42 5 років тому

      haha

    • @Jeppelelle
      @Jeppelelle 4 роки тому

      No-one should know about them, websites that hijack the scrolling is the devils work

  • @theklr
    @theklr 5 років тому +18

    This had to be late in the day, very high energy, but super excited about prepping for these

  • @DEVDerr
    @DEVDerr 5 років тому +9

    OH MY GOD, finally backdrop-filter is ofiicially supported. I always really wanted to easly make blurred components like in iOS / macOS. Thanks Google, that's a definitely good news!

    • @Andrey-il8rh
      @Andrey-il8rh 5 років тому

      I was waiting for it to get out of the flag for about 2 years

    • @SirusStarTV
      @SirusStarTV 5 років тому

      apple.com uses it to blur what's behind the header.

    • @DEVDerr
      @DEVDerr 5 років тому

      @@SirusStarTV I know. And this effect is incredible so thats why i wanted to use it in other projects, but unfortunetly it was possible to make only with tricky hacks like I did in kamyil.github.io (Experiment failed ofc). Now its finally supported

  • @logusgraphics
    @logusgraphics 5 років тому +3

    Wow, these improvements are insanely good. The presentation even better, great work guys!

  • @raularenas795
    @raularenas795 5 років тому +10

    This is an amazing glimpse at the future of css! Thank you

  • @Admin-cx9vv
    @Admin-cx9vv 5 років тому +129

    This kind of cringe helps me calm down after a hard day of work. Thank you google...

    • @sahilkakkar2156
      @sahilkakkar2156 5 років тому

      Lol

    • @mfpears
      @mfpears 5 років тому +18

      I thought it was cringe in a sort of self-aware way, which I didn't mind at all

  • @ecereto
    @ecereto 5 років тому +1

    What a content packed talk. I suggest watching at 0.75x speed to get everything.
    Thanks.

  • @samirgeorgecom
    @samirgeorgecom 5 років тому +15

    I think like your audience didn't understand the importance of features you are showing them like they are not devs if I was there I would yell for each feature!
    thanks for your efforts and excitement for delivering this to us

  • @RickBeacham
    @RickBeacham 5 років тому +1

    Thank you for letting us know which browser supports these new properties and worklets.

  • @RomboutVersluijs
    @RomboutVersluijs 3 роки тому

    Just saw your video on Colo scheme on Chrome Dev channel, super cool man. Immediately subbed to your channel. Really dig the enthusiasm

  • @nindzafa
    @nindzafa 2 роки тому +1

    When is subgrid coming to Chrome?

  • @justafreak15able
    @justafreak15able 5 років тому +8

    Aspect ratio is all I asked for.

  • @chanlito_
    @chanlito_ 5 років тому +4

    Can't wait for gap to reach all major browsers.

  • @Red-fg9qr
    @Red-fg9qr 5 років тому +2

    sticky looks amazing!! also backdrop-filter thank God it's finally here, I remember I had to use SVG and a bunch of clipping and stuff to do just that.
    Also properties without using anything else is great! No more "look back to copy the color numer from the top of the file" * -*

  • @sethlei
    @sethlei 5 років тому +8

    Focus within is really big. I spent wayyy too long working on getting this behavior to work without focus within. Question: which screenreaders were tested with this? Do the major ones work? (jaws, nvda, voiceover for mac)

  • @LucaBarone
    @LucaBarone 5 років тому +43

    Why the hell we still don't have flexbox gap in 2019 T_T

    • @MrEnsiferum77
      @MrEnsiferum77 5 років тому +3

      Tired of hype which no one will use in 6 months, and the most are important things still are not done. not talking about css, but as development in overall.

    • @yourmamaisphat
      @yourmamaisphat 5 років тому +6

      You don’t need it. Use justify-content:space-between and reduce the widths of the children elements.

    • @CRBarchager
      @CRBarchager 5 років тому

      13:40 Isn't this what you're looking for?

    • @LucaBarone
      @LucaBarone 5 років тому +4

      @@CRBarchager Yes, and it is still not supported by the majority of the browsers

    • @arielgorlik2664
      @arielgorlik2664 5 років тому

      Bums me out...

  • @yessiralikhan
    @yessiralikhan 5 років тому +1

    Scope of web development is bright. If we update ourselves with latest libraries and frameworks

  • @tycorrell5390
    @tycorrell5390 5 років тому +4

    Scroll snapping needs a sensitivity property. Or disabling acceleration property. I find it too sensitive for some users.

    • @slavenbozic1237
      @slavenbozic1237 5 років тому

      Facing this issue with client all the time... having to make swiping sections with tons of JS.
      Don't understand why they don't implement trigger delay and forced destination. This is basically what transition does, just its too rigid, have to count sections, know which section we are currently on to initiate next swipe/slide/scroll.
      Also, having to calculate destinations y and x to make sure translation doesn't trigger when swiping on Y... its just tons and tons of unreliable code.
      There are many things we need scroll snapping to do which would allow us to make amazing work flows within apps.
      Such as force destination on motion, sensitivity, transition style start, transition style stop, count nested children, avoid action on focus of children's children... etc...
      Hopefully we will get all of this one day, cross browser.

  • @yasinyaqoobi
    @yasinyaqoobi 5 років тому +1

    Wish u guys shared the demo links for these presentations, in the description.

  • @DaveStewartLondon
    @DaveStewartLondon 4 роки тому

    At 20:09 quicker to type CMD+K rather than `clear()`

  • @Khaltazar
    @Khaltazar 5 років тому +10

    I can't wait until the company I work at approves us to use this stuff in like 10 years (not kidding).

    • @Unforgiveness
      @Unforgiveness 5 років тому +3

      or better yet, let us out of our work box and actually attend these conferences.

  • @mopto7833
    @mopto7833 5 років тому +2

    what is the second browser on 5:42?
    Never seen this before

    • @cklamNL
      @cklamNL 5 років тому +1

      Edge on Chromium from Microsoft

    • @mopto7833
      @mopto7833 5 років тому +1

      @@cklamNL thanks man)

  • @TonyGustafsson
    @TonyGustafsson 5 років тому +1

    Such awesome features! Didn't really get houdini so I need to look into that.

  • @jonathanfeldman7309
    @jonathanfeldman7309 5 років тому

    Just to make sure, in those slides at 18:00 --color is put in the var css function, but it should be --gradientStart, right? Or is defined a unique way?
    Also, I tried to find more information on CSS Regions, but I couldn't find many examples and caniuse said chrome isn't pursuing. Is this out of date www.chromestatus.com/feature/5655612935372800, or referring to an old spec?
    And worklets look amazing! Can't wait to try them.

  • @elkazaei
    @elkazaei 5 років тому +1

    Awesome presentation!
    Does anyone know the URL of the example shown at 30:07?

  • @1DaytoDay-089
    @1DaytoDay-089 4 роки тому

    This makes me re consider if using wordpress was a good idea

  • @Albi91vl
    @Albi91vl 3 роки тому

    will chrome bring back tabs with cut-corners now that they have this ?

  • @microcontrolledbot
    @microcontrolledbot 5 років тому +2

    11:28 That is freakin COOL! That is some functionality you would expect to have to get from a JS plugin.

    • @daheck81
      @daheck81 5 років тому

      It's been around for some time already tho

  • @dewisartikaanggraeni3953
    @dewisartikaanggraeni3953 4 роки тому

    Wow amaizing yeah pray you sccs always happyness healthy 😇🥰😍😀 always

  • @TheZippoMike
    @TheZippoMike 5 років тому +2

    Best thing, finally dark theme

  • @mujeexminiminer7653
    @mujeexminiminer7653 5 років тому +2

    This is awesome stuff!

  • @mateuszmajewski8012
    @mateuszmajewski8012 5 років тому +6

    Let's see *whispers: a demo*

  • @andreclark2087
    @andreclark2087 5 років тому

    {margin or padding}-{block or inline} ('margin-block: 1rem' for example) does not seem to currently work on chrome 78 or 80, and yet caniuse says both versions can use it. any idea why this is? help?

  • @Ana-mn5io
    @Ana-mn5io 4 роки тому

    I love your podcast !! "the css podcast"

  • @MandrasKK
    @MandrasKK 5 років тому +1

    Hey guys how to do vertical align with text ?

  • @TalhaZahid
    @TalhaZahid 5 років тому +1

    I am unable to see this video from IE.. no idea what this video is all about.

  • @biswarupbouri3494
    @biswarupbouri3494 5 років тому +4

    Can't wait to try them 🤓

  • @igeoerre
    @igeoerre 4 роки тому

    Houdini: "Prepare to be astounded" 🎩🪄🐇✨

  • @justpassingbylearning
    @justpassingbylearning 5 років тому +1

    Link for his shirt?

  • @itsblack2321
    @itsblack2321 5 років тому

    Did anybody else notice the typo at 17:18

  • @kirkanos771
    @kirkanos771 5 років тому +7

    sticky is unusable is several situation if the parent has overflow (set to hidden) on it. That's a huuuuuge cave-at. It forces us into tricky ugly hacks.

    • @elysium2013
      @elysium2013 5 років тому

      Can you give an example?

    • @kirkanos771
      @kirkanos771 5 років тому +2

      @@elysium2013 Make a functional sticky with a top: 0 in a scrolling div. Now wrap the whole block of html code into a div that has "overflow: hidden". Your sticky wont work anymore. This prevent you to make excel like behaviors easy.
      Imagine this use case :
      you want to freeze the columns A,B,C and the line 1,
      A2 and below are vertically scrollable,
      D2 to Z99 are horizontally scrollable,
      A1 to Z1 are sticky (this is mandatory for the exercise, the behavior can be achieved without it).
      Tricky bonus part, you only want one auto y-scrollbar if the content is growing vertically and the space gets insuffisant.
      You only want an horizontal x-scrollbar starting at column D if the content grows to the right and overflow your right unfrozen pane.
      I made it for our intern project. It's neat but the sticky part from D1 to Z1. I used an ugly hack by mutating relative cells into fixed one.
      Basically this is what sticky is doing internally. But i had to do it myself and that's ugly.

    • @elysium2013
      @elysium2013 5 років тому

      @@kirkanos771 Thanks

  • @NishidShajib
    @NishidShajib 5 років тому

    *Thank you for your spotless design tips. Thanks, Frank. finally found refs*

  • @Manish-fm5iv
    @Manish-fm5iv 5 років тому +1

    Houdini and animation worklet sounds interesting

  • @brotherlove8241
    @brotherlove8241 5 років тому

    Would this work under different browsers like safari and Firefox?

  • @riyadhhussain5396
    @riyadhhussain5396 5 років тому +1

    They included TenHun! WOW!

  • @monumento.f.501
    @monumento.f.501 5 років тому

    the future is bright.

  • @JohnnyLongneck
    @JohnnyLongneck 5 років тому +1

    Oh my god this is so cool.

  • @hobbyturystaSEO
    @hobbyturystaSEO 4 роки тому

    Next generating Web styling 💯

  • @JackBond1234
    @JackBond1234 5 років тому

    A lot of this looks powerful, but also very low level. I wonder how many devs would be willing to put in all the work for a notched button that won't work on a lot of browsers. Plus, are any features lost when custom painting buttons?

    • @chaddaifouche536
      @chaddaifouche536 5 років тому

      Well, lots of their talk deal with high level properties. You're talking about the Houdini part I guess, the Paint and Animation API ? You're quite right on this point but I'm guessing that's the kind of thing where you'll mostly get some CDN loaded and just use the properties in your CSS as an enhancement, not an essential part of your site.

  • @deville295
    @deville295 5 років тому +4

    I like this guy's energy

    • @mahadevovnl
      @mahadevovnl 5 років тому +4

      I cringed the whole way through.

    • @mesteme
      @mesteme 5 років тому

      It was distracting and felt like a silly 90's teen in a sitcom

  • @xReTuneSx
    @xReTuneSx 3 роки тому

    After more than 1 year, Flexbox Gap is still not fully supported

  • @pertsevds
    @pertsevds 5 років тому

    Web future looks good.

  • @user-zp1dv4yh5e
    @user-zp1dv4yh5e 5 років тому +3

    From when i can use this things?

    • @pictureus
      @pictureus 5 років тому +1

      Now

    • @dante_ele
      @dante_ele 5 років тому

      From the time it was pushed, which was years ago!

  • @a-yon_n
    @a-yon_n 5 років тому +2

    What's the browser next to Edge?

    • @SimonBuchanNz
      @SimonBuchanNz 5 років тому +4

      IE, technically! The first icon is IE, the second is the new icon for Edge they revealed some time last week, I believe.

    • @a-yon_n
      @a-yon_n 5 років тому

      @@SimonBuchanNz Looks like MS intended to renew both the heart and the face of its browser.

    • @andylib
      @andylib 5 років тому +1

      It is the new cross platform microsoft edge browser built on chromium - they really specked it up, going to be interesting what they are doing with it - full release on january 15

    • @csongorzih5094
      @csongorzih5094 5 років тому +1

      Kids these days don't recognize Internet Explorer

  • @regardtnel3263
    @regardtnel3263 5 років тому +1

    Is scroll snap suppose to work on desktop?

    • @pictureus
      @pictureus 5 років тому

      It does; but it works if you're between the contents you want to scroll for and wait there; then it will scroll automatically for you. Demo from css-at-cds.netlify.com codepen.io/argyleink/pen/MWWpOmz

  • @rizkiadisaputra5971
    @rizkiadisaputra5971 5 років тому +1

    what is this? css 4?

  • @xxxq226
    @xxxq226 5 років тому +1

    Most of these features are not supported by all browsers :/

    • @Newbyte
      @Newbyte 5 років тому

      Thus "next-generation"?

  • @lightlysaltedcalmingvlogsa7286
    @lightlysaltedcalmingvlogsa7286 4 роки тому

    These people are great presenters

  • @glennmercier7553
    @glennmercier7553 5 років тому

    where can i find to use all of this?

  • @dergachev456
    @dergachev456 5 років тому

    When it starts to work?

  • @YinonOved
    @YinonOved 5 років тому

    is there a link for these demos? particularly Una's buttons

    • @YinonOved
      @YinonOved 5 років тому

      never mind it's there in the talk a.nerdy.dev/css-at-cds

  • @microcontrolledbot
    @microcontrolledbot 5 років тому +4

    9:12 OMG finally thank god!

  • @AlonSegal
    @AlonSegal 5 років тому +1

    the browser support colours are not colour-blind friendly :(

    • @UnaKravets
      @UnaKravets 5 років тому +2

      Oh gosh you're so right! Next time we will add a browser version for supported browsers! We're so sorry about this oversight!

    • @softwarelivre2389
      @softwarelivre2389 4 роки тому

      Yeah, the first resource seemed unavaliable for all browsers, and then only on the second resource, I saw that it was actually green and not red, because there was a stronger red coming from IE

  • @microcontrolledbot
    @microcontrolledbot 5 років тому

    13:38 Wow, so how long till we get full less support in CSS ? This is pretty awesome though

  • @dom8429
    @dom8429 5 років тому +1

    11:42 where ist that link?

  • @njabyss
    @njabyss 5 років тому +1

    I know next to nothing about coding, but I found this very interesting.

  • @Fadhilx
    @Fadhilx 5 років тому +8

    i love "vh", but not in mobile device

    • @JackBond1234
      @JackBond1234 5 років тому +1

      I'll take "vh" on a mobile device any day compared to tablet mode in Chrome OS.

  • @jonathanma4501
    @jonathanma4501 5 років тому

    lol, i got so excited when i saw aspect-ratio, then it showed 6 red bars for no support on any browser

  • @edkachalov
    @edkachalov 5 років тому +1

    All this is good, but can they make Chrome eat less RAM?

    • @llothar68
      @llothar68 5 років тому +1

      No, i guess there is a secret deal with hardware vendors to never optimize for RAM. Otherwise a computer could live as long as my fridge (20 years).

  • @RomboutVersluijs
    @RomboutVersluijs 3 роки тому

    Hahah ibneed a shirt saying "hmmm that just looks so good"

  • @alpeshvasani8626
    @alpeshvasani8626 5 років тому

    Super Cool !!!

  • @microcontrolledbot
    @microcontrolledbot 5 років тому +6

    Why is there no applause between each demo. I would of be the guy out there going "WHOOOO YEAH" *wild clapping* I had no idea about most of these.

  • @BjornMoren
    @BjornMoren 5 років тому +1

    I think it was a major mistake to cater CSS/HTML to graphical design people instead of programmers. They keep adding more and more capabilities to CSS, which makes it seem like more cool graphical designs are possible. Instead it just creates a spec that becomes more and more bloated, and it will still not do exactly what everyone needs. Imagine instead if they had exposed the browser's layout engine through an API, and let us define the CSS syntax ourselves through Javascript. We could extend CSS with whatever stuff we need for each project.

    • @AbdallaElmedny
      @AbdallaElmedny 5 років тому +1

      That's exactly what they are doing with Houdini.

    • @BjornMoren
      @BjornMoren 5 років тому +1

      @@AbdallaElmedny, that is awesome, thanks. I had a quick look and especially the Layout Worklet looks very interesting. Too early to see its capabilities, but I hope it will enable me to write my own layout engine and never ever rely on standard CSS again. Screen positioning of elements has always been way too difficult in standard CSS.

  • @BernhardHofmann
    @BernhardHofmann 5 років тому

    Samples are at css-at-cds.netlify.com/

  • @egonzalez4294
    @egonzalez4294 5 років тому +1

    :OOOOOOO
    I need this!...

    • @tahir4163
      @tahir4163 5 років тому

      are you the same girl in video? 😲

  • @MikeNugget
    @MikeNugget 5 років тому +4

    sneaky deaky sticky

  • @alessandrodemanzano3527
    @alessandrodemanzano3527 5 років тому +1

    24:27 Galactica-style corners, finally !

  • @JulienTeyteau
    @JulienTeyteau 5 років тому

    great talk !

  • @myfav3449
    @myfav3449 4 роки тому

    Damn, a dev for 5 years and I still suck at css, wooohooo!

  • @NishidShajib
    @NishidShajib 5 років тому

    *Excellent*

  • @Billy-pc4cs
    @Billy-pc4cs 5 років тому

    the IE keeps the red bar

  • @novagaming7928
    @novagaming7928 5 років тому

    Super cool

  • @AhmedMoussa147
    @AhmedMoussa147 5 років тому +1

    This is AWESOME :D

  • @seize2581
    @seize2581 5 років тому

    Nice !

  • @englishbest
    @englishbest 5 років тому +1

    When are Chrome developers going to start replacing JavaScript with TypeScript?

  • @mariuszdziem8203
    @mariuszdziem8203 5 років тому +6

    It was interesting, but mu Chrome eats my RAM like black hole ;) I am thinking about 64GB and 128GB of on my desktop, haha.

  • @JohnDoe-zc4mu
    @JohnDoe-zc4mu 5 років тому

    thanks god I'm a Scala developer

  • @TheBorninmotion
    @TheBorninmotion 5 років тому

    just WOW!

  • @rahulpadalkar6237
    @rahulpadalkar6237 5 років тому

    i want that css shirt

  • @tankjr1000
    @tankjr1000 5 років тому +5

    Even their own first scrolling demo is laggy

    • @patrickc.6183
      @patrickc.6183 5 років тому +2

      Agreed, the video may have been filmed at 30fps and not 60fps. They should change that for further vids :).

  • @sablesoul
    @sablesoul 5 років тому +1

    I haven't see that name, Cool Calm Pete, in years wow

  • @reloadscript2156
    @reloadscript2156 3 роки тому

    i love this ,i love web web design... : ) : {)

  • @Fatpumpumlovah2
    @Fatpumpumlovah2 5 років тому

    Gee will all webpages now be fashioned in rainbow colors?

  • @Panda-td8ij
    @Panda-td8ij 5 років тому +1

    Love the shirt

  • @Eltopshottah
    @Eltopshottah 2 роки тому

    I’m very sad I’m just now seeing this :(

  • @Munirs1998
    @Munirs1998 5 років тому

    thanks

  • @1Yooter
    @1Yooter 5 років тому

    Nice