Get the latest tech news

Take a New Look at CSS Shapes (2018)


This week, CSS Shapes ships in a production version of Firefox with the release of Firefox 62 — along with a very nice addition to the Firefox DevTools to help us work with Shapes. In this article, Rachel Andrew will take a closer look at CSS Shapes and how to create non-rectangular shapes using images, gradients, and basic shapes. We also discover how the new tools in Firefox make editing shapes easier.

I’m using generated content again, and I have given the box a background color, and also added a margin, border, and padding to help highlight some of the concepts of using CSS Shapes. Where you should take care would be in any situation where not having shapes could mean that content overlaid an area which made it difficult to read. In that case, you should first make sure that your content is usable for the non-Shapes people, then use Feature Queries to check for support of shape-outside and overwrite that CSS and apply the shape.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of new look

new look

Photo of css shapes

css shapes

Related news:

News photo

Google gives Family Link a new look and plans new supervision tools

News photo

Donkey Kong's new look in Switch 2 Mario Kart approved by former Rare artist

News photo

Apple Watch SE 3 With 'New Look' Expected to Launch This Year