What's New in CSS? Variables, Scoping, New Selectors and Color Functions
source link: https://syntax.fm/show/021/what-s-new-in-css-variables-scoping-new-selectors-and-color-functions
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Nov 29th, 2017
What's New in CSS? Variables, Scoping, New Selectors and Color Functions
👇 Download Show✏️ Edit Show NotesWes and Scott talk about the future of CSS - what is new and what should we expect to be coming in the near future?
Bug Replay — Sponsor
You need to try out Bug Replay for recording and re-playing browser based bugs. It's a bug reporting tool that can be used at all stages of development and by anyone in your organization. Provide your dev team with detailed reports so they can fix bugs faster.
Freshbooks — Sponsor
If you are a small business or freelancer check out Freshbooks.com Cloud Accounting and get 30 days free. Make sure to enter SYNTAX into the "How did you hear about us" section.
The Show Notes!
03:30
- IT'S NOT CALLED CSS4
- You can find the different levels over at CSS Working Group Drafts
06:24
- CSS Custom Properties (CSS Variables)
- Bite and chew over the syntax - it's backwards compatible
- What's the difference between this and Sass/Less/Stylus?
- JavaScript30.com Day 3 uses JavaScript + CSS Variables
- CSS Tricks: The CSS attr() function got nothin’ on custom properties
- Independent Transforms -
transform: rotateX(var(--x)) translateY(var(--y));
19:20
28:20
31:00
36:00
- CSS Level 4 Selectors
- ITS NOT CSS4!!!!!!
- css4.rocks
40:00
- nth-of-selectoed
:nth-child(3n of img.dog)
div:has(img)
44:00
- Some not-so-new-but-still-cool units
- Viewport Units
- min-height: 100vh
- ch units
- ex units
- CSS Angles - deg(), grad(), rad(), turn()
Sick Picks
Tweet us your tasty treats!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK