Chris Coyier on Nostr: *"Regardless of where it is in the DOM."* Isn't it cool how many HTML and CSS ...
*"Regardless of where it is in the DOM."*
Isn't it cool how many HTML and CSS features free us from awkwardly constrained DOM order and position?
• `:has()` — Select any element based on any other element in CSS up and down the DOM.
• Anchor Positioning — Position any element based on any other element, up and down the DOM.
• Popover/Dialog — Put these wherever, it doesn't matter, they will rise to the top and be visible no matter where they are in the DOM.
Will it make us sloppy? Nah.
Isn't it cool how many HTML and CSS features free us from awkwardly constrained DOM order and position?
• `:has()` — Select any element based on any other element in CSS up and down the DOM.
• Anchor Positioning — Position any element based on any other element, up and down the DOM.
• Popover/Dialog — Put these wherever, it doesn't matter, they will rise to the top and be visible no matter where they are in the DOM.
Will it make us sloppy? Nah.