Nebula icon indicating copy to clipboard operation
Nebula copied to clipboard

Watch for upcoming native CSS features

Open chrisblakley opened this issue 5 years ago • 4 comments

A few features to watch for that will occur natively in CSS rather than needing a preprocessor like Sass:

Custom Selectors:

https://cssdb.org/#custom-selectors

@custom-selector :--heading h1, h2, h3, h4, h5, h6;
article :--heading + p {}

Nesting:

https://cssdb.org/#nesting-rules

article {
  & p {
    color: #333;
  }
}

system-ui Font Family:

https://caniuse.com/font-family-system-ui https://cssdb.org/#system-ui-font-family

body {
  font-family: system-ui;
}

I really like this site to track the stages of upcoming CSS features: https://cssdb.org/

chrisblakley avatar Mar 11 '19 00:03 chrisblakley

The system-ui font family can start to be considered at this point: https://caniuse.com/font-family-system-ui

chrisblakley avatar May 12 '21 23:05 chrisblakley

In the future, I may split this into individual issues.

chrisblakley avatar May 12 '21 23:05 chrisblakley

Nesting on caniuse.com: https://caniuse.com/css-nesting

chrisblakley avatar Mar 02 '22 18:03 chrisblakley

Scroll timeline: https://caniuse.com/css-scroll-timeline

chrisblakley avatar Mar 02 '22 18:03 chrisblakley

Closing this as I've split it into individual issues.

chrisblakley avatar Jul 25 '23 12:07 chrisblakley