Skip to content

Demo of using experimental tech container-queries to build an article feed layout

Notifications You must be signed in to change notification settings

st1906/container-queries-article-card-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Container Queries Article Card Demo

Demo of using experimental tech container-queries to build an article feed layout.

NOTE: This demo uses the syntax and features supported by Chrome Canary on 26th June 2021. Container-queries are still under development and subject to change, thus this code might/will get outdated. For example, to define a container this demo uses contain: layout style inline-width. The proposal changed the keyword to container: size | inline-size | block-size | etc..., but that change isn’t implemented in Chrome Cannery at the time of writing of this doc.

Demo

You can check the deployed version of the demo on Github Pages

Starting

Clone this repositiory on your local machine. Then run:

yarn
yarn start

Other

Container query is used for the custom-article.js component, in the corresponding stylesheet custom-article-style.css.

Best place for following Container Query standard development is ccswg project board on Github. Work in progess draft standard can be accessed at css-contain-3.

About

Demo of using experimental tech container-queries to build an article feed layout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published