[{"data":1,"prerenderedAt":1755},["ShallowReactive",2],{"page-\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs":3,"content-all-pages":1197},{"id":4,"title":5,"body":6,"description":1179,"extension":1180,"meta":1181,"navigation":659,"path":1193,"seo":1194,"stem":1195,"__hash__":1196},"content\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs\u002Findex.md","Container Query Polyfills: What They Cost and When to Skip Them",{"type":7,"value":8,"toc":1169},"minimark",[9,13,33,38,45,165,168,196,200,203,291,298,301,305,308,849,855,858,862,865,966,978,982,989,1064,1071,1075,1093,1097,1103,1115,1121,1133,1137,1166],[10,11,5],"h1",{"id":12},"container-query-polyfills-what-they-cost-and-when-to-skip-them",[14,15,16,17,21,22,27,28,32],"p",{},"When container queries first shipped, polyfills filled the gap for browsers that had not caught up, and some teams still load one by habit. Every modern engine now supports container size queries natively, so the question has flipped: is the remaining audience of older browsers worth the cost a polyfill imposes on ",[18,19,20],"em",{},"them"," — and, if loaded carelessly, on everyone else? The narrow problem this page addresses is making that decision on evidence: what a polyfill actually does at runtime, what each part costs, how to load it only where needed, and why an intrinsic CSS fallback is usually the better answer. It is part of ",[23,24,26],"a",{"href":25},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002F","Container Query Fallbacks"," in the ",[23,29,31],{"href":30},"\u002Fmastering-container-queries-responsive-layouts\u002F","Mastering Container Queries & Responsive Layouts"," guide.",[34,35,37],"h2",{"id":36},"why-polyfilling-layout-is-expensive","Why polyfilling layout is expensive",[14,39,40,41,44],{},"Most polyfills add a function or a method — work that runs only when called. A container query polyfill emulates part of the ",[18,42,43],{},"layout engine",", which runs continuously. It must discover every container, measure it whenever it might change size, evaluate every condition, and toggle styles before the user notices the wrong layout. None of that is free, and all of it happens on the main thread in the browsers least equipped to absorb extra work.",[46,47,53,54,53,58,53,62,53,70,53,80,53,86,53,91,53,94,53,98,53,101,53,104,53,108,53,111,53,114,53,118,53,121,53,124,53,128,53,131,53,139,53,144,53,148,53,151,53,154,53,157,53,161],"svg",{"viewBox":48,"role":49,"ariaLabel":50,"xmlns":51,"style":52},"0 0 720 320","img","Runtime pipeline of a container query polyfill: fetch and parse CSS, rewrite rules, observe containers with ResizeObserver, evaluate conditions, set attributes, with costs marked at each stage","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","width:100%;height:auto;max-width:720px;margin:2rem 0","\n  ",[55,56,57],"title",{},"What a container query polyfill does at runtime",[59,60,61],"desc",{},"Five stages: download and parse stylesheets, rewrite container rules into attribute selectors, attach ResizeObserver to each container, evaluate conditions on each resize, and set attributes that trigger ordinary CSS. Costs noted beneath: bytes, a flash of wrong layout before the first evaluation, and repeated layout work on every resize.",[63,64,69],"text",{"textAnchor":65,"x":66,"y":67,"style":68},"middle","360","26","text-anchor:middle;fill:currentColor;font:700 17px sans-serif","Emulating layout in script, step by step",[71,72],"rect",{"x":73,"y":74,"width":75,"height":76,"rx":77,"fill":78,"opacity":79},"10","56","130","80","8","#7aa2ff","0.22",[63,81,85],{"textAnchor":65,"x":82,"y":83,"style":84},"75","90","text-anchor:middle;fill:currentColor;font:600 12px sans-serif","parse CSS",[63,87,90],{"textAnchor":65,"x":82,"y":88,"style":89},"110","text-anchor:middle;fill:currentColor;font:11px sans-serif","find @container",[71,92],{"x":93,"y":74,"width":75,"height":76,"rx":77,"fill":78,"opacity":79},"152",[63,95,97],{"textAnchor":65,"x":96,"y":83,"style":84},"217","rewrite rules",[63,99,100],{"textAnchor":65,"x":96,"y":88,"style":89},"to attributes",[71,102],{"x":103,"y":74,"width":75,"height":76,"rx":77,"fill":78,"opacity":79},"294",[63,105,107],{"textAnchor":65,"x":106,"y":83,"style":84},"359","observe",[63,109,110],{"textAnchor":65,"x":106,"y":88,"style":89},"ResizeObserver",[71,112],{"x":113,"y":74,"width":75,"height":76,"rx":77,"fill":78,"opacity":79},"436",[63,115,117],{"textAnchor":65,"x":116,"y":83,"style":84},"501","evaluate",[63,119,120],{"textAnchor":65,"x":116,"y":88,"style":89},"each condition",[71,122],{"x":123,"y":74,"width":75,"height":76,"rx":77,"fill":78,"opacity":79},"578",[63,125,127],{"textAnchor":65,"x":126,"y":83,"style":84},"643","set attrs",[63,129,130],{"textAnchor":65,"x":126,"y":88,"style":89},"CSS re-applies",[71,132],{"x":73,"y":133,"width":134,"height":74,"rx":77,"fill":135,"stroke":136,"strokeWidth":137,"opacity":138},"170","272","none","currentColor","1.5","0.6",[63,140,143],{"textAnchor":65,"x":141,"y":142,"style":84},"146","196","cost: bytes + parse time",[63,145,147],{"textAnchor":65,"x":141,"y":146,"style":89},"214","before anything renders correctly",[71,149],{"x":103,"y":133,"width":150,"height":74,"rx":77,"fill":135,"stroke":136,"strokeWidth":137,"opacity":138},"414",[63,152,153],{"textAnchor":65,"x":116,"y":142,"style":84},"cost: layout work on every resize",[63,155,156],{"textAnchor":65,"x":116,"y":146,"style":89},"plus a flash of the unqueried layout on first paint",[63,158,160],{"textAnchor":65,"x":66,"y":134,"style":159},"text-anchor:middle;fill:currentColor;font:12px sans-serif","Native container queries do all five inside the layout engine,",[63,162,164],{"textAnchor":65,"x":66,"y":163,"style":159},"292","in the same pass that lays the page out.",[14,166,167],{},"Three costs follow from that pipeline:",[169,170,171,184,190],"ol",{},[172,173,174,178,179,183],"li",{},[175,176,177],"strong",{},"Bytes and parse time."," The polyfill must be downloaded and executed, and it must fetch or read every stylesheet to find ",[180,181,182],"code",{},"@container"," rules. On slow devices and connections — typical of the older browsers that need it — this delays interactivity.",[172,185,186,189],{},[175,187,188],{},"A flash of the wrong layout."," The browser paints the page before the polyfill has measured containers, so components first appear in their default, unqueried layout and then jump. That jump is a layout shift users see and metrics record.",[172,191,192,195],{},[175,193,194],{},"Continuous layout work."," Every container resize fires an observer callback, which evaluates conditions and toggles attributes, which triggers a style recalculation and another layout. Native container queries fold this into a single layout pass; the polyfill does it in rounds.",[34,197,199],{"id":198},"what-the-user-sees-on-a-slow-device","What the user sees on a slow device",[14,201,202],{},"The flash of unqueried layout is easy to dismiss in a fast development machine, where the polyfill runs within a frame or two. On the older, slower devices that are the polyfill's only audience, the gap between first paint and the polyfill's first evaluation can be hundreds of milliseconds, and the page visibly rearranges.",[46,204,53,207,53,210,53,213,53,216,53,223,53,230,53,237,53,242,53,248,53,252,53,257,53,261,53,266,53,270,53,274,53,277,53,282,53,287],{"viewBox":205,"role":49,"ariaLabel":206,"xmlns":51,"style":52},"0 0 720 280","Timeline of page load with a polyfill: first paint in the default layout, script download and evaluation, then a jump to the queried layout; compared with an intrinsic fallback that paints correctly once",[55,208,209],{},"First paint with a polyfill versus an intrinsic fallback",[59,211,212],{},"Top timeline: the page paints with cards stacked, the polyfill downloads and runs, then cards jump into a two-column layout, producing a layout shift. Bottom timeline: an intrinsic layout paints once in its final arrangement and never moves.",[63,214,215],{"textAnchor":65,"x":66,"y":67,"style":68},"Load timeline on an older, slower device",[63,217,222],{"textAnchor":218,"x":219,"y":220,"style":221},"start","30","72","text-anchor:start;fill:currentColor;font:600 12px sans-serif","polyfill",[224,225],"line",{"x1":226,"y1":76,"x2":227,"y2":76,"stroke":136,"strokeWidth":228,"opacity":229},"120","690","1","0.4",[71,231],{"x":226,"y":232,"width":233,"height":234,"rx":235,"fill":136,"opacity":236},"58","150","22","4","0.2",[63,238,241],{"textAnchor":65,"x":239,"y":240,"style":89},"195","74","default layout",[71,243],{"x":244,"y":232,"width":245,"height":234,"rx":235,"fill":135,"stroke":136,"strokeDashArray":246,"opacity":138},"270","220",[235,247],"3",[63,249,251],{"textAnchor":65,"x":250,"y":240,"style":89},"380","download + evaluate",[71,253],{"x":254,"y":232,"width":255,"height":234,"rx":235,"fill":78,"opacity":256},"490","200","0.45",[63,258,260],{"textAnchor":65,"x":259,"y":240,"style":89},"590","queried layout",[224,262],{"x1":254,"y1":263,"x2":254,"y2":264,"stroke":136,"strokeWidth":265},"50","104","2",[63,267,269],{"textAnchor":65,"x":254,"y":226,"style":268},"text-anchor:middle;fill:currentColor;font:600 11px sans-serif","layout shift",[63,271,273],{"textAnchor":218,"x":219,"y":272,"style":221},"182","intrinsic",[224,275],{"x1":226,"y1":276,"x2":227,"y2":276,"stroke":136,"strokeWidth":228,"opacity":229},"190",[71,278],{"x":226,"y":279,"width":280,"height":234,"rx":235,"fill":78,"opacity":281},"168","570","0.3",[63,283,286],{"textAnchor":65,"x":284,"y":285,"style":89},"405","184","final layout from the first frame, adapting as space changes",[63,288,290],{"textAnchor":65,"x":66,"y":289,"style":159},"244","The intrinsic version may be less refined, but it never moves under the reader.",[14,292,293,294,297],{},"That jump is not only unpleasant; it can cause mis-clicks when a button the user was about to tap moves, and it registers in Cumulative Layout Shift, a Core Web Vitals metric. The ",[180,295,296],{},"cq-pending"," hiding technique below trades the jump for a brief blank, which avoids mis-clicks but delays reading. Neither is as good as a layout that is right on the first frame, which is the strongest argument for intrinsic fallbacks.",[14,299,300],{},"It is also worth being honest about coverage. Polyfills implement the common subset of container queries well, but newer capabilities — style queries, container query units in every context, containers inside shadow roots — may be partial or missing. A design that depends on those features gets an incomplete emulation in exactly the browsers least able to cope, so the fallback path needs designing anyway. Once that design exists, it is often good enough to ship on its own.",[34,302,304],{"id":303},"the-complete-implementation-load-it-only-where-needed","The complete implementation: load it only where needed",[14,306,307],{},"If the analytics show a meaningful audience on browsers without container queries and the design genuinely depends on them, the polyfill should be loaded conditionally so supporting browsers pay nothing. A small inline script tests support and injects the polyfill only when the test fails.",[309,310,315],"pre",{"className":311,"code":312,"language":313,"meta":314,"style":314},"language-html shiki shiki-themes github-light-high-contrast github-dark-high-contrast","\u003C!doctype html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n\u003Cmeta charset=\"utf-8\">\n\u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\u003Ctitle>Conditional container query polyfill\u003C\u002Ftitle>\n\u003Cscript>\n  \u002F\u002F Supporting browsers (the vast majority) skip this entirely.\n  if (!window.CSS || !CSS.supports('container-type: inline-size')) {\n    const s = document.createElement('script');\n    s.src = '\u002Fvendor\u002Fcontainer-query-polyfill.js';   \u002F\u002F self-hosted copy\n    s.async = true;\n    document.head.appendChild(s);\n    \u002F\u002F Mark the page so CSS can hide queried components until evaluated,\n    \u002F\u002F trading a brief blank for a visible jump in layout.\n    document.documentElement.classList.add('cq-pending');\n  }\n\u003C\u002Fscript>\n\u003Cstyle>\n  .card-slot { container-type: inline-size; }\n  .card { display: grid; gap: 1rem; }\n\n  @container (width > 30rem) {\n    .card { grid-template-columns: 10rem 1fr; }\n  }\n\n  \u002F* While the polyfill is working, hold queried components invisible to\n     avoid the flash of the unqueried layout. Keep this short: the class\n     should be removed once the polyfill reports it has run. *\u002F\n  .cq-pending .card { visibility: hidden; }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cdiv class=\"card-slot\">\u003Carticle class=\"card\">\u003Cdiv>Media\u003C\u002Fdiv>\u003Cdiv>Text\u003C\u002Fdiv>\u003C\u002Farticle>\u003C\u002Fdiv>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","html","",[180,316,317,336,356,366,384,409,423,433,440,483,509,526,540,552,558,564,580,586,596,606,621,654,661,670,695,700,705,711,717,723,744,753,762,772,831,840],{"__ignoreMap":314},[318,319,321,325,329,333],"span",{"class":224,"line":320},1,[318,322,324],{"class":323},"suds8","\u003C!",[318,326,328],{"class":327},"sne4z","doctype",[318,330,332],{"class":331},"s-5SL"," html",[318,334,335],{"class":323},">\n",[318,337,339,342,344,347,350,354],{"class":224,"line":338},2,[318,340,341],{"class":323},"\u003C",[318,343,313],{"class":327},[318,345,346],{"class":331}," lang",[318,348,349],{"class":323},"=",[318,351,353],{"class":352},"sT6z2","\"en\"",[318,355,335],{"class":323},[318,357,359,361,364],{"class":224,"line":358},3,[318,360,341],{"class":323},[318,362,363],{"class":327},"head",[318,365,335],{"class":323},[318,367,369,371,374,377,379,382],{"class":224,"line":368},4,[318,370,341],{"class":323},[318,372,373],{"class":327},"meta",[318,375,376],{"class":331}," charset",[318,378,349],{"class":323},[318,380,381],{"class":352},"\"utf-8\"",[318,383,335],{"class":323},[318,385,387,389,391,394,396,399,402,404,407],{"class":224,"line":386},5,[318,388,341],{"class":323},[318,390,373],{"class":327},[318,392,393],{"class":331}," name",[318,395,349],{"class":323},[318,397,398],{"class":352},"\"viewport\"",[318,400,401],{"class":331}," content",[318,403,349],{"class":323},[318,405,406],{"class":352},"\"width=device-width, initial-scale=1\"",[318,408,335],{"class":323},[318,410,412,414,416,419,421],{"class":224,"line":411},6,[318,413,341],{"class":323},[318,415,55],{"class":327},[318,417,418],{"class":323},">Conditional container query polyfill\u003C\u002F",[318,420,55],{"class":327},[318,422,335],{"class":323},[318,424,426,428,431],{"class":224,"line":425},7,[318,427,341],{"class":323},[318,429,430],{"class":327},"script",[318,432,335],{"class":323},[318,434,436],{"class":224,"line":435},8,[318,437,439],{"class":438},"sLBg1","  \u002F\u002F Supporting browsers (the vast majority) skip this entirely.\n",[318,441,443,447,450,453,456,459,462,465,467,470,474,477,480],{"class":224,"line":442},9,[318,444,446],{"class":445},"sHUrx","  if",[318,448,449],{"class":323}," (",[318,451,452],{"class":445},"!",[318,454,455],{"class":323},"window.",[318,457,458],{"class":331},"CSS",[318,460,461],{"class":445}," ||",[318,463,464],{"class":445}," !",[318,466,458],{"class":331},[318,468,469],{"class":323},".",[318,471,473],{"class":472},"sKwhi","supports",[318,475,476],{"class":323},"(",[318,478,479],{"class":352},"'container-type: inline-size'",[318,481,482],{"class":323},")) {\n",[318,484,486,489,492,495,498,501,503,506],{"class":224,"line":485},10,[318,487,488],{"class":445},"    const",[318,490,491],{"class":331}," s",[318,493,494],{"class":445}," =",[318,496,497],{"class":323}," document.",[318,499,500],{"class":472},"createElement",[318,502,476],{"class":323},[318,504,505],{"class":352},"'script'",[318,507,508],{"class":323},");\n",[318,510,512,515,517,520,523],{"class":224,"line":511},11,[318,513,514],{"class":323},"    s.src ",[318,516,349],{"class":445},[318,518,519],{"class":352}," '\u002Fvendor\u002Fcontainer-query-polyfill.js'",[318,521,522],{"class":323},";   ",[318,524,525],{"class":438},"\u002F\u002F self-hosted copy\n",[318,527,529,532,534,537],{"class":224,"line":528},12,[318,530,531],{"class":323},"    s.async ",[318,533,349],{"class":445},[318,535,536],{"class":331}," true",[318,538,539],{"class":323},";\n",[318,541,543,546,549],{"class":224,"line":542},13,[318,544,545],{"class":323},"    document.head.",[318,547,548],{"class":472},"appendChild",[318,550,551],{"class":323},"(s);\n",[318,553,555],{"class":224,"line":554},14,[318,556,557],{"class":438},"    \u002F\u002F Mark the page so CSS can hide queried components until evaluated,\n",[318,559,561],{"class":224,"line":560},15,[318,562,563],{"class":438},"    \u002F\u002F trading a brief blank for a visible jump in layout.\n",[318,565,567,570,573,575,578],{"class":224,"line":566},16,[318,568,569],{"class":323},"    document.documentElement.classList.",[318,571,572],{"class":472},"add",[318,574,476],{"class":323},[318,576,577],{"class":352},"'cq-pending'",[318,579,508],{"class":323},[318,581,583],{"class":224,"line":582},17,[318,584,585],{"class":323},"  }\n",[318,587,589,592,594],{"class":224,"line":588},18,[318,590,591],{"class":323},"\u003C\u002F",[318,593,430],{"class":327},[318,595,335],{"class":323},[318,597,599,601,604],{"class":224,"line":598},19,[318,600,341],{"class":323},[318,602,603],{"class":327},"style",[318,605,335],{"class":323},[318,607,609,612,615,618],{"class":224,"line":608},20,[318,610,611],{"class":331},"  .card-slot",[318,613,614],{"class":323}," { ",[318,616,617],{"class":331},"container-type",[318,619,620],{"class":323},": inline-size; }\n",[318,622,624,627,629,632,635,638,641,644,646,648,651],{"class":224,"line":623},21,[318,625,626],{"class":331},"  .card",[318,628,614],{"class":323},[318,630,631],{"class":331},"display",[318,633,634],{"class":323},": ",[318,636,637],{"class":331},"grid",[318,639,640],{"class":323},"; ",[318,642,643],{"class":331},"gap",[318,645,634],{"class":323},[318,647,228],{"class":331},[318,649,650],{"class":445},"rem",[318,652,653],{"class":323},"; }\n",[318,655,657],{"class":224,"line":656},22,[318,658,660],{"emptyLinePlaceholder":659},true,"\n",[318,662,664,667],{"class":224,"line":663},23,[318,665,666],{"class":445},"  @container",[318,668,669],{"class":323}," (width > 30rem) {\n",[318,671,673,676,678,681,683,685,687,690,693],{"class":224,"line":672},24,[318,674,675],{"class":331},"    .card",[318,677,614],{"class":323},[318,679,680],{"class":331},"grid-template-columns",[318,682,634],{"class":323},[318,684,73],{"class":331},[318,686,650],{"class":445},[318,688,689],{"class":331}," 1",[318,691,692],{"class":445},"fr",[318,694,653],{"class":323},[318,696,698],{"class":224,"line":697},25,[318,699,585],{"class":323},[318,701,703],{"class":224,"line":702},26,[318,704,660],{"emptyLinePlaceholder":659},[318,706,708],{"class":224,"line":707},27,[318,709,710],{"class":438},"  \u002F* While the polyfill is working, hold queried components invisible to\n",[318,712,714],{"class":224,"line":713},28,[318,715,716],{"class":438},"     avoid the flash of the unqueried layout. Keep this short: the class\n",[318,718,720],{"class":224,"line":719},29,[318,721,722],{"class":438},"     should be removed once the polyfill reports it has run. *\u002F\n",[318,724,726,729,732,734,737,739,742],{"class":224,"line":725},30,[318,727,728],{"class":331},"  .cq-pending",[318,730,731],{"class":331}," .card",[318,733,614],{"class":323},[318,735,736],{"class":331},"visibility",[318,738,634],{"class":323},[318,740,741],{"class":331},"hidden",[318,743,653],{"class":323},[318,745,747,749,751],{"class":224,"line":746},31,[318,748,591],{"class":323},[318,750,603],{"class":327},[318,752,335],{"class":323},[318,754,756,758,760],{"class":224,"line":755},32,[318,757,591],{"class":323},[318,759,363],{"class":327},[318,761,335],{"class":323},[318,763,765,767,770],{"class":224,"line":764},33,[318,766,341],{"class":323},[318,768,769],{"class":327},"body",[318,771,335],{"class":323},[318,773,775,778,781,784,786,789,792,795,797,799,802,804,806,809,811,813,815,818,820,823,825,827,829],{"class":224,"line":774},34,[318,776,777],{"class":323},"  \u003C",[318,779,780],{"class":327},"div",[318,782,783],{"class":331}," class",[318,785,349],{"class":323},[318,787,788],{"class":352},"\"card-slot\"",[318,790,791],{"class":323},">\u003C",[318,793,794],{"class":327},"article",[318,796,783],{"class":331},[318,798,349],{"class":323},[318,800,801],{"class":352},"\"card\"",[318,803,791],{"class":323},[318,805,780],{"class":327},[318,807,808],{"class":323},">Media\u003C\u002F",[318,810,780],{"class":327},[318,812,791],{"class":323},[318,814,780],{"class":327},[318,816,817],{"class":323},">Text\u003C\u002F",[318,819,780],{"class":327},[318,821,822],{"class":323},">\u003C\u002F",[318,824,794],{"class":327},[318,826,822],{"class":323},[318,828,780],{"class":327},[318,830,335],{"class":323},[318,832,834,836,838],{"class":224,"line":833},35,[318,835,591],{"class":323},[318,837,769],{"class":327},[318,839,335],{"class":323},[318,841,843,845,847],{"class":224,"line":842},36,[318,844,591],{"class":323},[318,846,313],{"class":327},[318,848,335],{"class":323},[14,850,851,852,854],{},"The ",[180,853,296],{}," class is a judgement call. Hiding components until the polyfill evaluates them avoids a visible jump, but it also means content is invisible for as long as the script takes, which on a slow device may be long. If the unqueried default layout is acceptable, skip the hiding and let the layout adjust. Either way, removing the class must happen in a callback the polyfill provides, and there must be a timeout that removes it regardless, so a failed script can never leave content hidden.",[14,856,857],{},"Self-host the polyfill rather than loading it from a third-party CDN. The script runs in exactly the browsers where failures are hardest to debug, and a CDN outage or blocked domain would then leave those users with hidden or broken components. Self-hosting also lets the file share the site's caching and security headers, and it removes a cross-origin dependency from the critical rendering path.",[34,859,861],{"id":860},"the-key-technique-an-intrinsic-fallback-instead","The key technique: an intrinsic fallback instead",[14,863,864],{},"The alternative is to accept that older browsers get a different, simpler layout — one built from intrinsic techniques that need no queries at all — and let container queries enhance it where supported. For most components this produces a better experience in the old browsers than a polyfill does, because it is instant and stable.",[46,866,53,869,53,872,53,875,53,878,53,883,53,888,53,893,53,897,53,903,53,908,53,914,53,918,53,921,53,923,53,926,53,931,53,935,53,939,53,942,53,944,53,948,53,951,53,954,53,958,53,961],{"viewBox":867,"role":49,"ariaLabel":868,"xmlns":51,"style":52},"0 0 720 300","Decision tree choosing between an intrinsic fallback, a viewport media query fallback, and a conditionally loaded polyfill",[55,870,871],{},"Polyfill or fallback?",[59,873,874],{},"If an intrinsic layout such as flex-wrap or auto-fit grid is acceptable in old browsers, use it. If not, and the component sits in a predictable width, use a viewport media query fallback. Only if neither works and old-browser traffic is significant, load a polyfill conditionally.",[63,876,877],{"textAnchor":65,"x":66,"y":67,"style":68},"Reach for the polyfill last",[71,879],{"x":255,"y":880,"width":881,"height":882,"rx":77,"fill":135,"stroke":136,"strokeWidth":137,"opacity":138},"44","320","42",[63,884,887],{"textAnchor":65,"x":66,"y":885,"style":886},"70","text-anchor:middle;fill:currentColor;font:13px sans-serif","Is an intrinsic layout acceptable?",[224,889],{"x1":890,"y1":891,"x2":892,"y2":226,"stroke":136,"strokeWidth":137,"opacity":138},"280","86","160",[224,894],{"x1":895,"y1":891,"x2":896,"y2":226,"stroke":136,"strokeWidth":137,"opacity":138},"440","540",[63,898,902],{"textAnchor":899,"x":146,"y":900,"style":901},"end","102","text-anchor:end;fill:currentColor;font:12px sans-serif","yes",[63,904,907],{"textAnchor":218,"x":905,"y":900,"style":906},"498","text-anchor:start;fill:currentColor;font:12px sans-serif","no",[71,909],{"x":910,"y":226,"width":911,"height":912,"rx":77,"fill":78,"opacity":913},"40","240","52","0.34",[63,915,917],{"textAnchor":65,"x":892,"y":916,"style":84},"142","Intrinsic fallback",[63,919,920],{"textAnchor":65,"x":892,"y":892,"style":89},"flex-wrap, auto-fit, clamp()",[71,922],{"x":250,"y":226,"width":881,"height":882,"rx":77,"fill":135,"stroke":136,"strokeWidth":137,"opacity":138},[63,924,925],{"textAnchor":65,"x":896,"y":141,"style":886},"Predictable width per page?",[224,927],{"x1":928,"y1":929,"x2":930,"y2":255,"stroke":136,"strokeWidth":137,"opacity":138},"480","162","420",[224,932],{"x1":933,"y1":929,"x2":934,"y2":255,"stroke":136,"strokeWidth":137,"opacity":138},"600","620",[63,936,902],{"textAnchor":899,"x":937,"y":938,"style":901},"438","186",[63,940,907],{"textAnchor":218,"x":941,"y":938,"style":906},"616",[71,943],{"x":881,"y":255,"width":255,"height":912,"rx":77,"fill":78,"opacity":79},[63,945,947],{"textAnchor":65,"x":930,"y":946,"style":84},"222","Viewport fallback",[63,949,950],{"textAnchor":65,"x":930,"y":911,"style":89},"@media in @supports not",[71,952],{"x":896,"y":255,"width":133,"height":912,"rx":77,"fill":78,"opacity":953},"0.12",[63,955,957],{"textAnchor":65,"x":956,"y":946,"style":84},"625","Polyfill",[63,959,960],{"textAnchor":65,"x":956,"y":911,"style":89},"loaded conditionally",[63,962,965],{"textAnchor":65,"x":66,"y":963,"style":964},"284","text-anchor:middle;fill:currentColor;font:12px sans-serif;opacity:0.8","Most components stop at the first box.",[14,967,968,969,973,974,469],{},"Intrinsic layouts such as ",[23,970,972],{"href":971},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-wrap-intrinsic-responsive-rows\u002F","breakpoint-free rows with flex-wrap"," and auto-fit grids already respond to available space without any query; the container query then only refines typography or spacing on top. The full set of intrinsic baselines is laid out in ",[23,975,977],{"href":976},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fintrinsic-layout-fallbacks-without-queries\u002F","Intrinsic Layout Fallbacks Without Queries",[34,979,981],{"id":980},"variation-measuring-whether-the-decision-was-right","Variation: measuring whether the decision was right",[14,983,984,985,988],{},"A polyfill decision should be revisited as the audience changes, and the data to do so is easy to collect. Record, for a sample of sessions, whether ",[180,986,987],{},"CSS.supports('container-type: inline-size')"," is true, alongside a metric such as Cumulative Layout Shift. Two numbers answer the question: the share of sessions without support, and the layout shift those sessions experience with the current approach.",[309,990,994],{"className":991,"code":992,"language":993,"meta":314,"style":314},"language-js shiki shiki-themes github-light-high-contrast github-dark-high-contrast","\u002F\u002F Minimal, privacy-friendly telemetry: one boolean per session.\nconst supportsCQ = !!(window.CSS && CSS.supports('container-type: inline-size'));\nnavigator.sendBeacon?.('\u002Fmetrics', JSON.stringify({ supportsCQ }));\n","js",[180,995,996,1001,1036],{"__ignoreMap":314},[318,997,998],{"class":224,"line":320},[318,999,1000],{"class":438},"\u002F\u002F Minimal, privacy-friendly telemetry: one boolean per session.\n",[318,1002,1003,1006,1009,1011,1014,1017,1019,1022,1025,1027,1029,1031,1033],{"class":224,"line":338},[318,1004,1005],{"class":445},"const",[318,1007,1008],{"class":331}," supportsCQ",[318,1010,494],{"class":445},[318,1012,1013],{"class":445}," !!",[318,1015,1016],{"class":323},"(window.",[318,1018,458],{"class":331},[318,1020,1021],{"class":445}," &&",[318,1023,1024],{"class":331}," CSS",[318,1026,469],{"class":323},[318,1028,473],{"class":472},[318,1030,476],{"class":323},[318,1032,479],{"class":352},[318,1034,1035],{"class":323},"));\n",[318,1037,1038,1041,1044,1047,1050,1053,1056,1058,1061],{"class":224,"line":358},[318,1039,1040],{"class":323},"navigator.",[318,1042,1043],{"class":472},"sendBeacon",[318,1045,1046],{"class":323},"?.(",[318,1048,1049],{"class":352},"'\u002Fmetrics'",[318,1051,1052],{"class":323},", ",[318,1054,1055],{"class":331},"JSON",[318,1057,469],{"class":323},[318,1059,1060],{"class":472},"stringify",[318,1062,1063],{"class":323},"({ supportsCQ }));\n",[14,1065,1066,1067,469],{},"When the unsupported share falls below the threshold your team treats as negligible, remove the polyfill and its loader — dead fallback code is still code that must be maintained, reviewed and tested on every release. The testing side of that maintenance is covered in ",[23,1068,1070],{"href":1069},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ftesting-fallbacks-without-old-browsers\u002F","Testing Fallbacks Without Old Browsers",[34,1072,1074],{"id":1073},"browser-support","Browser support",[14,1076,1077,1078,1081,1082,1085,1086,1089,1090,1092],{},"Native container size queries are supported in Chrome and Edge 105+, Firefox 110+ and Safari 16+, and container query units in the same versions. ",[180,1079,1080],{},"CSS.supports()"," and ",[180,1083,1084],{},"@supports"," are supported in every browser that could plausibly load a polyfill; ",[180,1087,1088],{},"@supports selector()"," is supported in Chrome and Edge 83+, Firefox 69+ and Safari 14.1+. ",[180,1091,110],{},", which polyfills depend on, is supported in all current engines and in most of the older versions a polyfill would target.",[34,1094,1096],{"id":1095},"faq","FAQ",[14,1098,1099,1102],{},[175,1100,1101],{},"Do I still need a container query polyfill?","\nRarely. Container size queries have been supported in Chrome and Edge since 105, Firefox since 110 and Safari since 16, so the browsers that need a polyfill are several years old. Most sites serve those browsers a simpler intrinsic or viewport-based layout instead.",[14,1104,1105,1108,1109,1111,1112,1114],{},[175,1106,1107],{},"How does a container query polyfill work?","\nIt parses stylesheets for ",[180,1110,182],{}," rules, rewrites them into selectors that depend on attributes or classes, observes the size of each container with ",[180,1113,110],{},", and sets those attributes when a condition matches. The browser then applies ordinary CSS rules.",[14,1116,1117,1120],{},[175,1118,1119],{},"What are the costs of a polyfill?","\nExtra JavaScript to download and run, a flash of the unqueried layout before the script evaluates sizes, layout work on every resize as observers fire, and limited support for newer features such as style queries and container query units in all contexts.",[14,1122,1123,1126,1127,1129,1130,1132],{},[175,1124,1125],{},"Can a polyfill be loaded only for browsers that need it?","\nYes. Test support with ",[180,1128,987],{}," or the ",[180,1131,1084],{}," equivalent, and inject the polyfill script only when the test fails. Supporting browsers then pay no download or runtime cost.",[34,1134,1136],{"id":1135},"related","Related",[1138,1139,1140,1145,1152,1159],"ul",{},[172,1141,1142,1144],{},[23,1143,26],{"href":25}," — the parent guide to supporting older engines.",[172,1146,1147,1151],{},[23,1148,1150],{"href":1149},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ffeature-detection-with-supports\u002F","Feature Detection With @supports"," — the CSS side of the support test.",[172,1153,1154,1158],{},[23,1155,1157],{"href":1156},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fhandling-container-query-fallbacks-for-older-browsers\u002F","Handling Container Query Fallbacks for Older Browsers"," — viewport baselines in detail.",[172,1160,1161,1165],{},[23,1162,1164],{"href":1163},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwhen-to-use-javascript-animation\u002F","When to Use JavaScript Animation"," — the same cost-benefit thinking applied to motion.",[603,1167,1168],{},"html pre.shiki code .suds8, html code.shiki .suds8{--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html pre.shiki code .sne4z, html code.shiki .sne4z{--shiki-default:#024C1A;--shiki-dark:#72F088}html pre.shiki code .s-5SL, html code.shiki .s-5SL{--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .sT6z2, html code.shiki .sT6z2{--shiki-default:#032563;--shiki-dark:#ADDCFF}html pre.shiki code .sLBg1, html code.shiki .sLBg1{--shiki-default:#66707B;--shiki-dark:#BDC4CC}html pre.shiki code .sHUrx, html code.shiki .sHUrx{--shiki-default:#A0111F;--shiki-dark:#FF9492}html pre.shiki code .sKwhi, html code.shiki .sKwhi{--shiki-default:#622CBC;--shiki-dark:#DBB7FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":314,"searchDepth":338,"depth":338,"links":1170},[1171,1172,1173,1174,1175,1176,1177,1178],{"id":36,"depth":338,"text":37},{"id":198,"depth":338,"text":199},{"id":303,"depth":338,"text":304},{"id":860,"depth":338,"text":861},{"id":980,"depth":338,"text":981},{"id":1073,"depth":338,"text":1074},{"id":1095,"depth":338,"text":1096},{"id":1135,"depth":338,"text":1136},"What a container query polyfill does, what it costs in bytes, layout work and flashes of wrong layout, and when an intrinsic CSS fallback is the better choice.","md",{"pageTitle":1182,"datePublished":1183,"dateModified":1183,"faq":1184},"Container Query Polyfill: Is It Worth It?","2026-09-18",[1185,1187,1189,1191],{"q":1101,"a":1186},"Rarely. Container size queries have been supported in Chrome and Edge since 105, Firefox since 110 and Safari since 16, so the browsers that need a polyfill are several years old. Most sites serve those browsers a simpler intrinsic or viewport-based layout instead.",{"q":1107,"a":1188},"It parses stylesheets for @container rules, rewrites them into selectors that depend on attributes or classes, observes the size of each container with ResizeObserver, and sets those attributes when a condition matches. The browser then applies ordinary CSS rules.",{"q":1119,"a":1190},"Extra JavaScript to download and run, a flash of the unqueried layout before the script evaluates sizes, layout work on every resize as observers fire, and limited support for newer features such as style queries and container query units in all contexts.",{"q":1125,"a":1192},"Yes. Test support with CSS.supports('container-type: inline-size') or the @supports equivalent, and inject the polyfill script only when the test fails. Supporting browsers then pay no download or runtime cost.","\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs",{"title":5,"description":1179},"mastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs\u002Findex","sOf2WOAn3aXtxbIA_p_RNQ_9h7XS9yTZevkaaPNAuq0",[1198,1201,1204,1207,1210,1213,1216,1219,1222,1225,1228,1231,1234,1237,1240,1243,1246,1249,1252,1255,1258,1261,1264,1267,1270,1273,1276,1279,1282,1285,1288,1291,1294,1297,1300,1303,1306,1309,1312,1315,1318,1321,1324,1327,1330,1333,1336,1339,1342,1345,1348,1351,1354,1357,1360,1363,1366,1369,1372,1375,1378,1381,1384,1387,1390,1393,1396,1399,1402,1405,1408,1411,1414,1417,1420,1423,1426,1429,1432,1435,1438,1441,1444,1447,1450,1453,1456,1459,1462,1465,1468,1471,1474,1477,1480,1483,1486,1489,1492,1495,1498,1501,1502,1505,1507,1510,1513,1516,1519,1522,1525,1528,1531,1534,1537,1540,1543,1546,1549,1552,1555,1558,1561,1564,1567,1570,1573,1576,1579,1582,1585,1588,1591,1594,1597,1600,1603,1606,1609,1612,1615,1617,1620,1623,1626,1629,1632,1635,1638,1641,1644,1647,1650,1653,1656,1659,1662,1665,1668,1671,1674,1677,1680,1683,1686,1689,1692,1695,1698,1701,1704,1707,1710,1713,1716,1719,1722,1725,1728,1731,1734,1737,1740,1743,1746,1749,1752],{"path":1199,"title":1200},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fcreating-accessible-focus-indicators","Creating Accessible Focus Indicators: Building a Ring That Survives Any Background",{"path":1202,"title":1203},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fflashing-content-and-seizure-thresholds","Flashing Content and Seizure Thresholds",{"path":1205,"title":1206},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fforced-colors-mode-and-animations","Forced Colors Mode and Animations",{"path":1208,"title":1209},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations","Accessibility in CSS Animations: Patterns, Specs & Best Practices",{"path":1211,"title":1212},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fpause-controls-for-looping-animations","Pause Controls for Looping CSS Animations: Meeting WCAG 2.2.2",{"path":1214,"title":1215},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fprefers-reduced-motion-recipes","prefers-reduced-motion Recipes: A Reduction for Every Common Effect",{"path":1217,"title":1218},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Freducing-motion-preferences-in-css","Reducing Motion Preferences in CSS: How the Setting Becomes a Media Feature",{"path":1220,"title":1221},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Ftarget-size-and-pointer-accessibility","Target Size and Pointer Accessibility: Meeting 2.5.8 Without Redesigning",{"path":1223,"title":1224},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fvestibular-safe-animation-patterns","Vestibular-Safe Animation Patterns: Why Some Motion Makes People Sick",{"path":1226,"title":1227},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fwcag-motion-success-criteria","WCAG Motion Success Criteria: What Each One Actually Requires",{"path":1229,"title":1230},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations\u002Fanimated-gradient-borders-with-property","Animated Gradient Borders With @property: A Spinning Highlight Without Extra Elements",{"path":1232,"title":1233},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations\u002Fclip-path-reveal-animations","Clip-Path Reveal Animations: Wipes, Irises and Corners Without Extra Markup",{"path":1235,"title":1236},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations","Clip-Path & Mask Animations: Animating Visibility Instead of Position",{"path":1238,"title":1239},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations\u002Fmask-image-fade-edges","Fading Edges With mask-image: Soft Boundaries That Work on Any Background",{"path":1241,"title":1242},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations\u002Fmorphing-shapes-with-clip-path-polygon","Morphing Shapes With clip-path: polygon(): Point-Matched Transitions",{"path":1244,"title":1245},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fanimating-gradients","Animating CSS Gradients: Smooth Colour Motion Without Jumps",{"path":1247,"title":1248},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fcolor-mix-hover-states","Hover and Active States With color-mix(): One Token, Every Shade",{"path":1250,"title":1251},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions","Color & Theme Transitions: Colour as Part of the Motion System",{"path":1253,"title":1254},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Flight-dark-function-for-themes","Light and Dark Themes With light-dark(): One Declaration per Colour",{"path":1256,"title":1257},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fsmooth-theme-switching-transitions","Smooth Theme Switching: Crossfades, Circular Reveals and No Flash",{"path":1259,"title":1260},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fcontainer-query-hover-affordances","Container Query Hover Affordances: When Narrow Means Persistent, Not Hidden",{"path":1262,"title":1263},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion","Container-Aware Motion: Animation Sized by the Space a Component Actually Has",{"path":1265,"title":1266},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints","Animating Changes at Container Breakpoints",{"path":1268,"title":1269},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fmotion-driven-by-container-style-queries","Motion Driven by Container Style Queries",{"path":1271,"title":1272},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fmotion-that-scales-with-container-size","Motion That Scales with Container Size: cqi, cqb, and Derived Durations",{"path":1274,"title":1275},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fsuppressing-motion-in-small-containers","Suppressing Motion in Small Containers: Deliberately Animating Nothing",{"path":1277,"title":1278},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fcontrolling-css-animations-from-javascript","Controlling CSS Animations From JavaScript",{"path":1280,"title":1281},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api","CSS Animation vs the Web Animations API: A Decision Guide",{"path":1283,"title":1284},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwaapi-vs-css-for-interruptible-ui","Interruptible UI: CSS Transitions vs WAAPI",{"path":1286,"title":1287},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwhen-to-use-javascript-animation","When to Use JavaScript Instead of CSS for Animation",{"path":1289,"title":1290},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fanimating-custom-properties-with-at-property","Animating Custom Properties with @property: Typed Variables That Interpolate",{"path":1292,"title":1293},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fcustom-property-fallbacks-and-invalid-values","Custom Property Fallbacks and Invalid Values",{"path":1295,"title":1296},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Ffluid-spacing-tokens-driving-transition-durations","Fluid Spacing Tokens That Drive Transition Durations",{"path":1298,"title":1299},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture","CSS Custom Properties Architecture: Scalable Design Systems & Dynamic UI",{"path":1301,"title":1302},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fregistered-properties-and-type-safety","Registered Properties and Type Safety: @property as a Contract for Design Tokens",{"path":1304,"title":1305},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fscoping-custom-properties-to-components","Scoping Custom Properties to Components",{"path":1307,"title":1308},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fcss-transition-timing-functions","CSS Transition Timing Functions: ease, cubic-bezier(), steps() and linear()",{"path":1310,"title":1311},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals","CSS Transition Fundamentals: Architecture, Performance & Patterns",{"path":1313,"title":1314},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Finterrupted-and-reversing-transitions","Interrupted and Reversing Transitions: What Happens Mid-Flight",{"path":1316,"title":1317},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fstarting-style-entry-animations","@starting-style: Animating an Element's Very First Style Change",{"path":1319,"title":1320},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-delay-choreography","Choreographing Motion With transition-delay",{"path":1322,"title":1323},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties","The transition Shorthand and Multiple Properties",{"path":1325,"title":1326},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransitioning-display-with-allow-discrete","Transitioning display with transition-behavior: allow-discrete and @starting-style",{"path":1328,"title":1329},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fanimating-dialog-open-and-close","Animating \u003Cdialog> Open and Close: Both Directions, No Library",{"path":1331,"title":1332},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fbackdrop-animations","Animating ::backdrop: Fades and Blurs Behind Dialogs and Popovers",{"path":1334,"title":1335},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations","Dialog & Popover Animations: Motion for the Top Layer",{"path":1337,"title":1338},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Finterpolate-size-for-height-auto-animation","Animating to height: auto With interpolate-size and calc-size()",{"path":1340,"title":1341},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fpopover-entry-and-exit-transitions","Popover Menus That Animate From Their Anchor",{"path":1343,"title":1344},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fchoosing-animation-durations","Choosing Animation Durations: How Long Motion Should Last",{"path":1346,"title":1347},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fcubic-bezier-overshoot-and-anticipation","Overshoot and Anticipation With cubic-bezier(): Motion With Character",{"path":1349,"title":1350},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fentry-vs-exit-easing","Entry vs Exit Easing: Different Curves for Arriving and Leaving",{"path":1352,"title":1353},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design","Easing & Motion Design: Making CSS Motion Feel Intentional",{"path":1355,"title":1356},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Flinear-easing-function-for-springs","Spring and Bounce Easing With linear(): Physical Motion Without JavaScript",{"path":1358,"title":1359},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fsteps-easing-for-sprite-animations","steps() Easing: Sprite Sheets, Typewriters and Other Frame-by-Frame Effects",{"path":1361,"title":1362},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Faccessible-css-only-tooltips","Accessible CSS-Only Tooltips and Hover Cards With  and ",{"path":1364,"title":1365},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fbutton-press-and-active-states","Button Press and  States",{"path":1367,"title":1368},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Ffocus-visible-vs-focus-polyfill-alternatives"," vs :focus: Why It Replaced the Focus-Ring Polyfill",{"path":1370,"title":1371},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Ffocus-within-form-patterns"," Form Patterns: Styling a Group From the Field Inside It",{"path":1373,"title":1374},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fhover-intent-delays-with-transition-delay","Hover Intent Delays With transition-delay: Menus That Don't Flicker",{"path":1376,"title":1377},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design","Hover & Focus State Design: Spec-Compliant Patterns for Modern UIs",{"path":1379,"title":1380},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fpointer-and-hover-media-queries","Pointer and Hover Media Queries: Gating Affordances by Input Capability",{"path":1382,"title":1383},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fsmooth-hover-effects-without-javascript","Smooth Hover Effects Without JavaScript: CSS-Only Patterns for Modern UI",{"path":1385,"title":1386},"\u002Fcss-only-micro-interactions-animations","CSS-Only Micro-Interactions & Animations: Architecture, Performance & Implementation",{"path":1388,"title":1389},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fanimation-composition-and-stacking","Stacking Animations With animation-composition",{"path":1391,"title":1392},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fanimation-fill-mode-explained","animation-fill-mode: What an Animation Applies Before and After It Runs",{"path":1394,"title":1395},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcontainer-query-triggered-keyframe-animations","Container-Query-Triggered Keyframe Animations: Animate Differently per Available Space",{"path":1397,"title":1398},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-accordions-and-disclosure","CSS-Only Accordions and Disclosure Widgets with details and summary",{"path":1400,"title":1401},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-loading-spinners-and-skeletons","CSS-Only Loading Spinners and Skeleton Shimmer Screens with @keyframes",{"path":1403,"title":1404},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-toggle-switches-and-checkboxes","CSS-Only Toggle Switches and Checkboxes That Keep the Native Input",{"path":1406,"title":1407},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns","Keyframe Animation Patterns: Spec-Compliant Architectures for Modern UIs",{"path":1409,"title":1410},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fmulti-step-keyframes-and-per-keyframe-easing","Multi-Step Keyframes and Per-Keyframe Easing",{"path":1412,"title":1413},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fstaggered-list-animations-with-custom-properties","Staggered List Animations Using --i Index Custom Properties",{"path":1415,"title":1416},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fanimating-box-shadow-and-filters-cheaply","Animating box-shadow and Filters Cheaply",{"path":1418,"title":1419},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcontain-property-for-animation-performance","The contain Property for Animation Performance",{"path":1421,"title":1422},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcss-triggers-layout-paint-composite","Layout, Paint and Composite: What Triggers What",{"path":1424,"title":1425},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration","Performance & GPU Acceleration in CSS: A Developer’s Blueprint",{"path":1427,"title":1428},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Foptimizing-css-animations-for-60fps","Optimizing CSS Animations for 60fps: Budgeting the Frame",{"path":1430,"title":1431},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fprofiling-animations-in-devtools","Profiling CSS Animations in DevTools: Finding the Frame That Costs Too Much",{"path":1433,"title":1434},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fwill-change-and-the-compositor-thread","will-change and the Compositor Thread: Layer Promotion Without the Footguns",{"path":1436,"title":1437},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations","Scroll-Driven Animations: Binding Motion to Scroll Position in Pure CSS",{"path":1439,"title":1440},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-animation-fallbacks","Shipping Scroll-Driven Animations Without Breaking Anything",{"path":1442,"title":1443},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-parallax-effects","Scroll-Driven Parallax Effects in CSS",{"path":1445,"title":1446},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-progress-bar-without-javascript","A Reading Progress Bar Driven by scroll(root)",{"path":1448,"title":1449},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-triggered-reveal-animations","Reveal-on-Scroll with view() and animation-range",{"path":1451,"title":1452},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Ftimeline-scope-for-cross-element-animations","timeline-scope for Cross-Element Animations",{"path":1454,"title":1455},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fview-timeline-and-animation-range","View Timelines and animation-range",{"path":1457,"title":1458},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fcross-document-view-transitions","Cross-Document View Transitions",{"path":1460,"title":1461},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers","View Transitions for CSS Developers: the Pseudo-Element Tree, Snapshots, and Named Elements",{"path":1463,"title":1464},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fsame-document-view-transitions","Writing a Same-Document View Transition: the CSS You Actually Author",{"path":1466,"title":1467},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-names-shared-elements","view-transition-name and Shared Elements: Morphing a Thumbnail into a Hero",{"path":1469,"title":1470},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-types-and-classes","View Transition Types and Classes",{"path":1472,"title":1473},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering","View Transitions for List Reordering",{"path":1475,"title":1476},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-with-reduced-motion","Honouring prefers-reduced-motion in View Transitions",{"path":1478,"title":1479},"\u002F","Modern CSS Layouts & Micro-Interactions",{"path":1481,"title":1482},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioned-tooltips","Anchor-Positioned Tooltips: Tethering, Flipping, and Getting the Semantics Right",{"path":1484,"title":1485},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioning-fallbacks","Anchor Positioning Fallbacks: A Graceful Floor for Older Browser Versions",{"path":1487,"title":1488},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-size-for-matching-widths","anchor-size(): Overlays That Match Their Trigger's Size",{"path":1490,"title":1491},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays","CSS Anchor Positioning and Overlays: Tethering Elements Without JavaScript",{"path":1493,"title":1494},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-attribute-and-css-styling","The popover Attribute: Top-Layer Overlays With No JavaScript",{"path":1496,"title":1497},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-light-dismiss-and-stacking","Popover Light Dismiss, Nesting and Stacking",{"path":1499,"title":1500},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fposition-area-grid-explained","position-area: The Anchor Placement Grid",{"path":1193,"title":5},{"path":1503,"title":1504},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ffeature-detection-with-supports","Feature Detection with @supports: Syntax, Semantics, and the Traps",{"path":1506,"title":1157},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fhandling-container-query-fallbacks-for-older-browsers",{"path":1508,"title":1509},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks","Container Query Fallbacks: Spec-Compliant CSS Strategies for Legacy Browsers",{"path":1511,"title":1512},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fintrinsic-layout-fallbacks-without-queries","Intrinsic Layout Fallbacks: Baselines That Adapt Without Any Query",{"path":1514,"title":1515},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ftesting-fallbacks-without-old-browsers","Testing CSS Fallbacks Without an Old Browser",{"path":1517,"title":1518},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-queries-inside-css-nesting","Container Queries Inside CSS Nesting: Keeping Responses Next to the Styles They Change",{"path":1520,"title":1521},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-range-and-logic-operators","Container Query Range Syntax and Logic Operators",{"path":1523,"title":1524},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-units-cqi-cqb-explained","Container Query Units Explained: cqi, cqb, cqw, cqh, cqmin and cqmax",{"path":1526,"title":1527},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-type-size-vs-inline-size","Choosing container-type: inline-size, size, or normal",{"path":1529,"title":1530},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-vs-media-queries-comparison","Container vs Media Queries: Choosing the Right Reference Box",{"path":1532,"title":1533},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fdebugging-container-queries-in-devtools","Debugging Container Queries in DevTools: Why a Rule Doesn't Match",{"path":1535,"title":1536},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fhow-to-use-container-queries-in-production","How to Use Container Queries in Production Without a Rewrite",{"path":1538,"title":1539},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics","Container Query Syntax Basics",{"path":1541,"title":1542},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fnesting-and-naming-container-queries","Nesting and Naming Container Queries: Targeting the Right Ancestor",{"path":1544,"title":1545},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fauto-fit-minmax-responsive-grids","Responsive Grids with repeat(auto-fit, minmax())",{"path":1547,"title":1548},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fbuilding-a-dashboard-with-subgrid","Building a Responsive Dashboard Where Cards Align with Subgrid",{"path":1550,"title":1551},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fgrid-auto-flow-dense-packing","grid-auto-flow: dense for Packed Layouts",{"path":1553,"title":1554},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fgrid-template-areas-responsive-layouts","Responsive Layouts With grid-template-areas: Rearranging Regions by Name",{"path":1556,"title":1557},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fholy-grail-layout-with-grid","The Holy-Grail Layout with CSS Grid and Container Queries",{"path":1559,"title":1560},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts","CSS Grid and Subgrid Layouts for Responsive Interfaces",{"path":1562,"title":1563},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fmasonry-style-layouts-with-grid","Masonry-Style Layouts With the CSS That Ships Today",{"path":1565,"title":1566},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Foverlapping-elements-with-grid-stacking","Overlapping Elements With Grid Stacking: Layers Without position: absolute",{"path":1568,"title":1569},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fsubgrid-vs-nested-grid","Subgrid vs an Independently Nested Grid",{"path":1571,"title":1572},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fcentering-in-css-every-method","Centering in CSS: Every Modern Method and When Each One Breaks",{"path":1574,"title":1575},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-basis-vs-width","flex-basis vs width: Which Size a Flex Item Actually Starts From",{"path":1577,"title":1578},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-grow-and-flex-shrink-explained","flex-grow and flex-shrink Explained",{"path":1580,"title":1581},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-wrap-intrinsic-responsive-rows","Breakpoint-Free Responsive Rows With flex-wrap and flex-basis",{"path":1583,"title":1584},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflexbox-gap-and-spacing","Flexbox gap vs Margins: Spacing Items Without Edge Hacks",{"path":1586,"title":1587},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns","Flexbox Layout Patterns: One-Dimensional Layout for Real Components",{"path":1589,"title":1590},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fsticky-footer-with-flexbox-and-grid","Sticky Footer With Flexbox or Grid: Pinning the Footer on Short Pages",{"path":1592,"title":1593},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Fclamp-vs-media-query-typography","clamp() Fluid Type vs Media-Query Step Typography: Tradeoffs and Anatomy",{"path":1595,"title":1596},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Fdebugging-clamp-values","Debugging clamp(): Values That Are Ignored, Stuck or Never Fluid",{"path":1598,"title":1599},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-line-height-and-measure","Fluid Line Height and Measure: Keeping Text Readable as It Scales",{"path":1601,"title":1602},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-space-scale-with-clamp","Building a Fluid Spacing Scale with clamp() and Container Units",{"path":1604,"title":1605},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-type-accessibility-and-zoom","Fluid Type, Accessibility and Zoom: The vw-Only Trap",{"path":1607,"title":1608},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-typography-without-javascript","Fluid Typography Without JavaScript: A Precision CSS Reference",{"path":1610,"title":1611},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp","Fluid Typography with clamp(): A Practical Guide for Modern CSS",{"path":1613,"title":1614},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ftext-wrap-balance-and-pretty","text-wrap: balance and pretty: Better Line Breaks Without Manual Breaks",{"path":1616,"title":31},"\u002Fmastering-container-queries-responsive-layouts",{"path":1618,"title":1619},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Faspect-ratio-for-responsive-media","Using aspect-ratio for Responsive Media and Preventing Layout Shift",{"path":1621,"title":1622},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fcontent-visibility-and-contain-intrinsic-size","content-visibility and contain-intrinsic-size: Rendering Only What Is Near the Screen",{"path":1624,"title":1625},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques","Intrinsic Sizing Techniques: Modern CSS Layouts for Responsive UI",{"path":1627,"title":1628},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Flayout-widths-with-min-max-clamp","Layout Widths With min(), max() and clamp(): Sizing Without Breakpoints",{"path":1630,"title":1631},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fmin-max-fit-content-explained","min-content, max-content, and fit-content() Explained",{"path":1633,"title":1634},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fobject-fit-and-object-position","object-fit and object-position: Images That Fit Any Box",{"path":1636,"title":1637},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fpreventing-flex-and-grid-overflow","The min-width: auto Trap in Flex and Grid Layouts",{"path":1639,"title":1640},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-for-reset-and-tokens","Cascade Layers for Reset and Design Tokens",{"path":1642,"title":1643},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-vs-specificity-hacks","Cascade Layers vs Specificity Hacks: Ordering Instead of Escalating",{"path":1645,"title":1646},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcss-scope-for-component-styles","@scope for Component Styles: Short Selectors That Cannot Leak",{"path":1648,"title":1649},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies","Modern CSS Reset Strategies: A Spec-Compliant Foundation",{"path":1651,"title":1652},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Frevert-layer-and-revert-keywords","initial, inherit, unset, revert and revert-layer: Undoing Styles Correctly",{"path":1654,"title":1655},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fwriting-a-minimal-modern-reset","Writing a Minimal Modern CSS Reset: Every Line Justified",{"path":1657,"title":1658},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fcontent-aware-card-layouts-with-has","Content-Aware Card Layouts With :has(): One Component, Many Shapes",{"path":1660,"title":1661},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fempty-and-loading-states-with-has","Empty and Loading States With ()",{"path":1663,"title":1664},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fform-validation-layouts-with-has","Form Validation Layouts With :has(): Styling Groups From Field State",{"path":1666,"title":1667},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fhas-selector-performance",":has() Selector Performance: What Is Cheap, What Is Not, and How to Measure",{"path":1669,"title":1670},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fhas-vs-container-style-queries",":has() vs Container Style Queries: Discovered State and Published State",{"path":1672,"title":1673},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has","Parent-Aware Layouts With :has(): Letting Containers React to Their Contents",{"path":1675,"title":1676},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fquantity-queries-with-has","Quantity Queries With :has(): Layouts That Respond to How Many Items There Are",{"path":1678,"title":1679},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fbuilding-responsive-cards-with-container-queries","Building Responsive Cards with Container Queries: A Production-Ready Guide",{"path":1681,"title":1682},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-data-tables","Container Query Data Tables: Reflowing Tables to Cards",{"path":1684,"title":1685},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-sidebar-layouts","Container Query Sidebar Layouts That Travel Between Contexts",{"path":1687,"title":1688},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns","Responsive Component Patterns: Architecture & Implementation",{"path":1690,"title":1691},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-forms-with-container-queries","Responsive Forms with Container Queries: Reflow Without Losing the Wiring",{"path":1693,"title":1694},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-hero-sections-with-container-queries","Responsive Hero Sections With Container Queries",{"path":1696,"title":1697},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-navigation-without-media-queries","Responsive Navigation Without Media Queries Using Container Queries",{"path":1699,"title":1700},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-pricing-tables","Responsive Pricing Tables: Aligned Features, a Clear Recommendation, Any Width",{"path":1702,"title":1703},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Ftabs-that-become-accordions","Tabs That Become an Accordion: One Component, Two Layouts",{"path":1705,"title":1706},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fcss-only-carousel-with-scroll-snap","A CSS-Only Carousel With Scroll Snap",{"path":1708,"title":1709},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fhorizontal-scrolling-card-rows","Horizontal Scrolling Card Rows: Swipeable Lists That Stay in Their Lane",{"path":1711,"title":1712},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts","Scroll Snap & Overflow Layouts: Designing Components That Scroll on Purpose",{"path":1714,"title":1715},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Foverscroll-behavior-for-nested-scrolling","overscroll-behavior: Taming Nested Scrolling, Pull-to-Refresh and Back-Swipe",{"path":1717,"title":1718},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fscroll-margin-and-scroll-padding-for-sticky-headers","scroll-margin and scroll-padding: Keeping Targets Clear of Sticky Headers",{"path":1720,"title":1721},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fcombining-size-and-style-queries","Combining Size and Style Container Queries",{"path":1723,"title":1724},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fcontainer-style-query-theming","Container Style Query Theming: One Token Instead of a Variant Class Matrix",{"path":1726,"title":1727},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state","Style Queries and Container State: Token-Driven Component Variants",{"path":1729,"title":1730},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-queries-with-custom-properties","Style Queries With Custom Properties: Declaring, Inheriting, and Matching Tokens",{"path":1732,"title":1733},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-query-component-variants","Component Variants With Style Queries: One Token, Many Looks",{"path":1735,"title":1736},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-query-fallbacks-and-support","Style Query Fallbacks and Support: Designing for Older Browser Versions",{"path":1738,"title":1739},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fdvh-svh-lvh-mobile-viewport-units","dvh, svh and lvh: Choosing the Right Mobile Viewport Unit",{"path":1741,"title":1742},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Ffull-bleed-sections-in-constrained-layouts","Full-Bleed Sections in a Constrained Layout: Breaking Out Without Breaking the Page",{"path":1744,"title":1745},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout","Viewport Units & Mobile Layout: Designing for the Screen You Actually Get",{"path":1747,"title":1748},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fsafe-area-insets-for-notched-screens","Safe Area Insets: Designing Around Notches, Corners and Home Indicators",{"path":1750,"title":1751},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fviewport-units-vs-container-units","Viewport Units vs Container Units: Choosing the Right Reference Box",{"path":1753,"title":1754},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fvirtual-keyboard-and-interactive-widget","Layouts That Survive the Virtual Keyboard",1789717748163]