We're giving away a free ticket to the CSS Layout Workshop. To be entered in the drawing, comment below with… - A question you have about CSS layout - Or a fun demo, trick, or snippet of CSS The winner will be announced on Friday, April 18! #css www.oddbird.net/workshops/ca...
Post
oddbird.netCascading LayoutsA workshop on resilient CSS layouts
A question I had yesterday was: What is the “flat tree”? I also wrote a blog post on how you could use Container Style Queries to expose internal states frehner.me/blog/contain...
frehner.meContainer Style Queries for Sharing Internal StateAn explanation of how you could use Container Style Queries to expose internal state (for example, in a Custom Element) to children elements in CSS.
The DOM is a tree of nested elements. But shadow-DOM creates alternate universe trees. Consider details/summary: - in the light tree, details element contains a summary & anything else we put in there - in the shadow tree, it contains a summary & a (hidden to us) content block with a slot inside
0 reposts1 like