{"id":6437,"date":"2025-07-02T12:32:14","date_gmt":"2025-07-02T17:32:14","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=6437"},"modified":"2025-07-02T12:32:15","modified_gmt":"2025-07-02T17:32:15","slug":"css-gap-decorations","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/css-gap-decorations\/","title":{"rendered":"CSS Gap Decorations"},"content":{"rendered":"\n<p>Microsoft is <a href=\"https:\/\/drafts.csswg.org\/css-gaps-1\/\">working on<\/a> &#8220;<code>gap<\/code> decorations&#8221; and have put together <a href=\"https:\/\/microsoftedge.github.io\/Demos\/css-gap-decorations\/playground.html\">a nice playground<\/a> to explore them, and I <a href=\"https:\/\/www.youtube.com\/watch?v=L1-7dFQFb1c\">had a play<\/a>. The idea is drawing lines where gaps would be, rather than empty space. It&#8217;s really quite well done with lots of control (do they hit the edges or stop short? do they overlap or not? which direction is on top? etc). <\/p>\n\n\n\n<p>To see them as of right now, you need to open Chrome Canary with a flag. Not one of the <code>about:\/\/flags<\/code> flags, but a command-line flag. I had never done that before, but it basically means drilling into the <code>.app<\/code> to launch from inside it with the flag.<\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Command (on my Mac)<\/summary>\n<pre class=\"wp-block-preformatted\">\/Applications\/Google\\ Chrome\\ Canary.app\/Contents\/MacOS\/Google\\ Chrome\\ Canary --enable-features=CSSGapDecoration<br><\/pre>\n<\/details>\n\n\n\n<p>It all really makes me want to be able to style grid areas without needing to place an HTML element there to do it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft is working on &#8220;gap decorations&#8221; and have put together a nice playground to explore them, and I had a play. The idea is drawing lines where gaps would be, rather than empty space. It&#8217;s really quite well done with lots of control (do they hit the edges or stop short? do they overlap or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6441,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[7,153,362,123],"class_list":["post-6437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-css","tag-gap","tag-gap-decorations","tag-grid"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2025\/07\/gap-decoration-scaled.png?fit=2560%2C1616&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=6437"}],"version-history":[{"count":2,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6437\/revisions"}],"predecessor-version":[{"id":6442,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6437\/revisions\/6442"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/6441"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=6437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=6437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=6437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}