# Modern CSS (:has, nesting, layers)

> What are the newest CSS features? Explain :has(), native nesting, and @layer.

Canonical: https://www.internhack.in/learn/interview/html-css-interview/css-modern
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What are the newest CSS features? Explain :has(), native nesting, and @layer.

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

:has(), CSS Nesting, @layer, Cascade Layers, Modern CSS Features

Previous: [CSS Container Queries](https://www.internhack.in/learn/interview/html-css-interview/css-container-queries) · Next: [Print Styles & Dark Mode](https://www.internhack.in/learn/interview/html-css-interview/css-print-dark) · [All of HTML & CSS Interview](https://www.internhack.in/learn/interview/html-css-interview)

## More HTML & CSS Interview questions

- [Semantic HTML & Accessibility](https://www.internhack.in/learn/interview/html-css-interview/html-semantic)
- [CSS Box Model & Layout](https://www.internhack.in/learn/interview/html-css-interview/css-box-model)
- [Responsive Design & Mobile First](https://www.internhack.in/learn/interview/html-css-interview/css-responsive)
- [HTML Document Structure](https://www.internhack.in/learn/interview/html-css-interview/html-document-structure)
- [HTML Forms & Input Types](https://www.internhack.in/learn/interview/html-css-interview/html-forms)
- [HTML Tables & Lists](https://www.internhack.in/learn/interview/html-css-interview/html-tables-lists)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [HTML & CSS Interview](https://www.internhack.in/learn/interview/html-css-interview)
