[{"data":1,"prerenderedAt":1767},["ShallowReactive",2],{"page-\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fcontent-visibility-and-contain-intrinsic-size\u002F":3,"content-all-pages":1209},{"id":4,"title":5,"body":6,"description":1187,"extension":1188,"meta":1189,"navigation":392,"path":1205,"seo":1206,"stem":1207,"__hash__":1208},"content\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fcontent-visibility-and-contain-intrinsic-size\u002Findex.md","content-visibility and contain-intrinsic-size: Rendering Only What Is Near the Screen",{"type":7,"value":8,"toc":1175},"minimark",[9,22,44,49,60,66,169,173,182,785,795,802,819,884,900,904,919,928,938,949,953,960,1026,1032,1036,1049,1058,1062,1076,1080,1089,1104,1118,1138,1142,1172],[10,11,13,17,18,21],"h1",{"id":12},"content-visibility-and-contain-intrinsic-size-rendering-only-what-is-near-the-screen",[14,15,16],"code",{},"content-visibility"," and ",[14,19,20],{},"contain-intrinsic-size",": Rendering Only What Is Near the Screen",[23,24,25,26,29,30,32,33,38,39,43],"p",{},"A long article, a documentation page or an infinite feed can contain hundreds of sections, and the browser lays out and paints all of them on load even though only the first screenful is visible. That work delays the first render and makes every later style change more expensive, because layout must be recomputed across the whole document. ",[14,27,28],{},"content-visibility: auto"," tells the browser it may skip rendering a section's contents until the section nears the viewport. ",[14,31,20],{}," gives skipped sections a placeholder size so the page does not collapse or jump. This page explains how the two work together, where the savings come from, and the side effects to handle. It belongs to ",[34,35,37],"a",{"href":36},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002F","Intrinsic Sizing Techniques"," in the ",[34,40,42],{"href":41},"\u002Fmastering-container-queries-responsive-layouts\u002F","Mastering Container Queries & Responsive Layouts"," guide.",[45,46,48],"h2",{"id":47},"why-skipping-rendering-is-safe-with-containment","Why skipping rendering is safe with containment",[23,50,51,52,54,55,59],{},"Browsers cannot normally skip laying out off-screen content, because that content might affect what is on screen: its size pushes later content down, its floats wrap earlier text, its styles could change anything. ",[14,53,28],{}," makes skipping safe by applying ",[56,57,58],"em",{},"containment",": layout, style and paint containment always, and size containment while the content is skipped. Containment promises the browser that the element's contents cannot affect anything outside it, so the browser can leave them unrendered without risk of getting the rest of the page wrong.",[23,61,62,63,65],{},"Size containment is the part that needs help. A size-contained element is laid out as if it had no contents — zero height for a block. Without a placeholder, every skipped section would collapse, the page would be far shorter than it really is, and the scrollbar would grow and jump as sections rendered one by one during scrolling. ",[14,64,20],{}," supplies the size to use in place of the contents.",[67,68,74,75,74,79,74,83,74,91,74,101,74,106,74,109,74,112,74,122,74,129,74,133,74,137,74,144,74,148,74,152,74,155,74,161,74,165],"svg",{"viewBox":69,"role":70,"ariaLabel":71,"xmlns":72,"style":73},"0 0 720 330","img","A long page with sections near the viewport rendered and distant sections skipped, each skipped section holding a placeholder height","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","width:100%;height:auto;max-width:720px;margin:2rem 0","\n  ",[76,77,78],"title",{},"Rendered near the viewport, skipped elsewhere",[80,81,82],"desc",{},"A tall page is divided into sections. The viewport and a margin around it contain sections that are fully rendered. Sections far below are skipped: their contents are not laid out or painted, and each keeps a placeholder height from contain-intrinsic-size so the scrollbar stays accurate.",[84,85,90],"text",{"textAnchor":86,"x":87,"y":88,"style":89},"middle","360","26","text-anchor:middle;fill:currentColor;font:700 17px sans-serif","Only the neighbourhood of the viewport is rendered",[92,93],"rect",{"x":94,"y":95,"width":96,"height":97,"rx":98,"fill":99,"opacity":100},"200","46","320","50","6","#7aa2ff","0.5",[84,102,105],{"textAnchor":86,"x":87,"y":103,"style":104},"76","text-anchor:middle;fill:currentColor;font:12px sans-serif","rendered",[92,107],{"x":94,"y":108,"width":96,"height":97,"rx":98,"fill":99,"opacity":100},"102",[84,110,105],{"textAnchor":86,"x":87,"y":111,"style":104},"132",[113,114],"path",{"d":115,"fill":116,"stroke":117,"strokeWidth":118,"strokeDashArray":119},"M180 40 H540 V160 H180 Z","none","currentColor","2.5",[120,121],"7","4",[84,123,128],{"textAnchor":124,"x":125,"y":126,"style":127},"start","560","104","text-anchor:start;fill:currentColor;font:600 12px sans-serif","viewport",[92,130],{"x":94,"y":131,"width":96,"height":97,"rx":98,"fill":99,"opacity":132},"166","0.3",[84,134,136],{"textAnchor":86,"x":87,"y":135,"style":104},"196","rendered (near edge)",[92,138],{"x":94,"y":139,"width":96,"height":140,"rx":98,"fill":116,"stroke":117,"strokeWidth":141,"strokeDashArray":142,"opacity":143},"222","44","1.5",[121,121],"0.6",[84,145,147],{"textAnchor":86,"x":87,"y":146,"style":104},"249","skipped · placeholder height",[92,149],{"x":94,"y":150,"width":96,"height":140,"rx":98,"fill":116,"stroke":117,"strokeWidth":141,"strokeDashArray":151,"opacity":143},"272",[121,121],[84,153,147],{"textAnchor":86,"x":87,"y":154,"style":104},"299",[84,156,160],{"textAnchor":86,"x":157,"y":158,"style":159},"110","270","text-anchor:middle;fill:currentColor;font:12px ui-monospace,monospace","content-",[84,162,164],{"textAnchor":86,"x":157,"y":163,"style":159},"288","visibility:",[84,166,168],{"textAnchor":86,"x":157,"y":167,"style":159},"306","auto",[45,170,172],{"id":171},"the-complete-implementation","The complete implementation",[23,174,175,176,178,179,181],{},"The article below applies ",[14,177,28],{}," to each top-level section and reserves an estimated height with the ",[14,180,168],{}," keyword, so sections that have been rendered once remember their real size.",[183,184,189],"pre",{"className":185,"code":186,"language":187,"meta":188,"style":188},"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>content-visibility for long pages\u003C\u002Ftitle>\n\u003Cstyle>\n  body { font: 17px\u002F1.65 Georgia, serif; margin: 0 auto; max-width: 65ch; padding: 1.5rem; }\n\n  \u002F* Every section except the first: the first is on screen at load, so\n     skipping it would only add work. *\u002F\n  .chapter + .chapter {\n    content-visibility: auto;\n    \u002F* Placeholder until first render, then the remembered real size.\n       'auto' is what keeps the scrollbar from jumping on the way back up.\n       Only the block size matters for a vertical article; the width comes\n       from normal layout. *\u002F\n    contain-intrinsic-size: auto 900px;\n  }\n\n  \u002F* Anchor targets inside skipped sections still work: navigating to one\n     renders its section first. scroll-margin keeps it clear of a header. *\u002F\n  .chapter h2 { scroll-margin-top: 4rem; }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Cnav aria-label=\"Chapters\">\n    \u003Ca href=\"#c1\">Chapter 1\u003C\u002Fa> · \u003Ca href=\"#c2\">Chapter 2\u003C\u002Fa> · \u003Ca href=\"#c3\">Chapter 3\u003C\u002Fa>\n  \u003C\u002Fnav>\n  \u003Csection class=\"chapter\" id=\"c1\">\u003Ch2>Chapter 1\u003C\u002Fh2>\u003Cp>Long content…\u003C\u002Fp>\u003C\u002Fsection>\n  \u003Csection class=\"chapter\" id=\"c2\">\u003Ch2>Chapter 2\u003C\u002Fh2>\u003Cp>Long content…\u003C\u002Fp>\u003C\u002Fsection>\n  \u003Csection class=\"chapter\" id=\"c3\">\u003Ch2>Chapter 3\u003C\u002Fh2>\u003Cp>Long content…\u003C\u002Fp>\u003C\u002Fsection>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","html","",[14,190,191,211,231,241,259,284,298,308,387,394,401,407,422,435,441,447,453,459,476,482,487,493,499,520,530,539,549,568,624,634,683,725,767,776],{"__ignoreMap":188},[192,193,196,200,204,208],"span",{"class":194,"line":195},"line",1,[192,197,199],{"class":198},"suds8","\u003C!",[192,201,203],{"class":202},"sne4z","doctype",[192,205,207],{"class":206},"s-5SL"," html",[192,209,210],{"class":198},">\n",[192,212,214,217,219,222,225,229],{"class":194,"line":213},2,[192,215,216],{"class":198},"\u003C",[192,218,187],{"class":202},[192,220,221],{"class":206}," lang",[192,223,224],{"class":198},"=",[192,226,228],{"class":227},"sT6z2","\"en\"",[192,230,210],{"class":198},[192,232,234,236,239],{"class":194,"line":233},3,[192,235,216],{"class":198},[192,237,238],{"class":202},"head",[192,240,210],{"class":198},[192,242,244,246,249,252,254,257],{"class":194,"line":243},4,[192,245,216],{"class":198},[192,247,248],{"class":202},"meta",[192,250,251],{"class":206}," charset",[192,253,224],{"class":198},[192,255,256],{"class":227},"\"utf-8\"",[192,258,210],{"class":198},[192,260,262,264,266,269,271,274,277,279,282],{"class":194,"line":261},5,[192,263,216],{"class":198},[192,265,248],{"class":202},[192,267,268],{"class":206}," name",[192,270,224],{"class":198},[192,272,273],{"class":227},"\"viewport\"",[192,275,276],{"class":206}," content",[192,278,224],{"class":198},[192,280,281],{"class":227},"\"width=device-width, initial-scale=1\"",[192,283,210],{"class":198},[192,285,287,289,291,294,296],{"class":194,"line":286},6,[192,288,216],{"class":198},[192,290,76],{"class":202},[192,292,293],{"class":198},">content-visibility for long pages\u003C\u002F",[192,295,76],{"class":202},[192,297,210],{"class":198},[192,299,301,303,306],{"class":194,"line":300},7,[192,302,216],{"class":198},[192,304,305],{"class":202},"style",[192,307,210],{"class":198},[192,309,311,314,317,320,323,326,330,333,336,339,342,345,348,351,353,356,359,361,364,366,369,372,374,377,379,381,384],{"class":194,"line":310},8,[192,312,313],{"class":202},"  body",[192,315,316],{"class":198}," { ",[192,318,319],{"class":206},"font",[192,321,322],{"class":198},": ",[192,324,325],{"class":206},"17",[192,327,329],{"class":328},"sHUrx","px",[192,331,332],{"class":198},"\u002F",[192,334,335],{"class":206},"1.65",[192,337,338],{"class":206}," Georgia",[192,340,341],{"class":198},", ",[192,343,344],{"class":206},"serif",[192,346,347],{"class":198},"; ",[192,349,350],{"class":206},"margin",[192,352,322],{"class":198},[192,354,355],{"class":206},"0",[192,357,358],{"class":206}," auto",[192,360,347],{"class":198},[192,362,363],{"class":206},"max-width",[192,365,322],{"class":198},[192,367,368],{"class":206},"65",[192,370,371],{"class":328},"ch",[192,373,347],{"class":198},[192,375,376],{"class":206},"padding",[192,378,322],{"class":198},[192,380,141],{"class":206},[192,382,383],{"class":328},"rem",[192,385,386],{"class":198},"; }\n",[192,388,390],{"class":194,"line":389},9,[192,391,393],{"emptyLinePlaceholder":392},true,"\n",[192,395,397],{"class":194,"line":396},10,[192,398,400],{"class":399},"sLBg1","  \u002F* Every section except the first: the first is on screen at load, so\n",[192,402,404],{"class":194,"line":403},11,[192,405,406],{"class":399},"     skipping it would only add work. *\u002F\n",[192,408,410,413,416,419],{"class":194,"line":409},12,[192,411,412],{"class":206},"  .chapter",[192,414,415],{"class":328}," +",[192,417,418],{"class":206}," .chapter",[192,420,421],{"class":198}," {\n",[192,423,425,428,430,432],{"class":194,"line":424},13,[192,426,427],{"class":206},"    content-visibility",[192,429,322],{"class":198},[192,431,168],{"class":206},[192,433,434],{"class":198},";\n",[192,436,438],{"class":194,"line":437},14,[192,439,440],{"class":399},"    \u002F* Placeholder until first render, then the remembered real size.\n",[192,442,444],{"class":194,"line":443},15,[192,445,446],{"class":399},"       'auto' is what keeps the scrollbar from jumping on the way back up.\n",[192,448,450],{"class":194,"line":449},16,[192,451,452],{"class":399},"       Only the block size matters for a vertical article; the width comes\n",[192,454,456],{"class":194,"line":455},17,[192,457,458],{"class":399},"       from normal layout. *\u002F\n",[192,460,462,465,467,469,472,474],{"class":194,"line":461},18,[192,463,464],{"class":206},"    contain-intrinsic-size",[192,466,322],{"class":198},[192,468,168],{"class":206},[192,470,471],{"class":206}," 900",[192,473,329],{"class":328},[192,475,434],{"class":198},[192,477,479],{"class":194,"line":478},19,[192,480,481],{"class":198},"  }\n",[192,483,485],{"class":194,"line":484},20,[192,486,393],{"emptyLinePlaceholder":392},[192,488,490],{"class":194,"line":489},21,[192,491,492],{"class":399},"  \u002F* Anchor targets inside skipped sections still work: navigating to one\n",[192,494,496],{"class":194,"line":495},22,[192,497,498],{"class":399},"     renders its section first. scroll-margin keeps it clear of a header. *\u002F\n",[192,500,502,504,507,509,512,514,516,518],{"class":194,"line":501},23,[192,503,412],{"class":206},[192,505,506],{"class":202}," h2",[192,508,316],{"class":198},[192,510,511],{"class":206},"scroll-margin-top",[192,513,322],{"class":198},[192,515,121],{"class":206},[192,517,383],{"class":328},[192,519,386],{"class":198},[192,521,523,526,528],{"class":194,"line":522},24,[192,524,525],{"class":198},"\u003C\u002F",[192,527,305],{"class":202},[192,529,210],{"class":198},[192,531,533,535,537],{"class":194,"line":532},25,[192,534,525],{"class":198},[192,536,238],{"class":202},[192,538,210],{"class":198},[192,540,542,544,547],{"class":194,"line":541},26,[192,543,216],{"class":198},[192,545,546],{"class":202},"body",[192,548,210],{"class":198},[192,550,552,555,558,561,563,566],{"class":194,"line":551},27,[192,553,554],{"class":198},"  \u003C",[192,556,557],{"class":202},"nav",[192,559,560],{"class":206}," aria-label",[192,562,224],{"class":198},[192,564,565],{"class":227},"\"Chapters\"",[192,567,210],{"class":198},[192,569,571,574,576,579,581,584,587,589,592,594,596,598,601,604,606,608,610,612,614,617,620,622],{"class":194,"line":570},28,[192,572,573],{"class":198},"    \u003C",[192,575,34],{"class":202},[192,577,578],{"class":206}," href",[192,580,224],{"class":198},[192,582,583],{"class":227},"\"#c1\"",[192,585,586],{"class":198},">Chapter 1\u003C\u002F",[192,588,34],{"class":202},[192,590,591],{"class":198},"> · \u003C",[192,593,34],{"class":202},[192,595,578],{"class":206},[192,597,224],{"class":198},[192,599,600],{"class":227},"\"#c2\"",[192,602,603],{"class":198},">Chapter 2\u003C\u002F",[192,605,34],{"class":202},[192,607,591],{"class":198},[192,609,34],{"class":202},[192,611,578],{"class":206},[192,613,224],{"class":198},[192,615,616],{"class":227},"\"#c3\"",[192,618,619],{"class":198},">Chapter 3\u003C\u002F",[192,621,34],{"class":202},[192,623,210],{"class":198},[192,625,627,630,632],{"class":194,"line":626},29,[192,628,629],{"class":198},"  \u003C\u002F",[192,631,557],{"class":202},[192,633,210],{"class":198},[192,635,637,639,642,645,647,650,653,655,658,661,663,665,667,669,671,674,676,679,681],{"class":194,"line":636},30,[192,638,554],{"class":198},[192,640,641],{"class":202},"section",[192,643,644],{"class":206}," class",[192,646,224],{"class":198},[192,648,649],{"class":227},"\"chapter\"",[192,651,652],{"class":206}," id",[192,654,224],{"class":198},[192,656,657],{"class":227},"\"c1\"",[192,659,660],{"class":198},">\u003C",[192,662,45],{"class":202},[192,664,586],{"class":198},[192,666,45],{"class":202},[192,668,660],{"class":198},[192,670,23],{"class":202},[192,672,673],{"class":198},">Long content…\u003C\u002F",[192,675,23],{"class":202},[192,677,678],{"class":198},">\u003C\u002F",[192,680,641],{"class":202},[192,682,210],{"class":198},[192,684,686,688,690,692,694,696,698,700,703,705,707,709,711,713,715,717,719,721,723],{"class":194,"line":685},31,[192,687,554],{"class":198},[192,689,641],{"class":202},[192,691,644],{"class":206},[192,693,224],{"class":198},[192,695,649],{"class":227},[192,697,652],{"class":206},[192,699,224],{"class":198},[192,701,702],{"class":227},"\"c2\"",[192,704,660],{"class":198},[192,706,45],{"class":202},[192,708,603],{"class":198},[192,710,45],{"class":202},[192,712,660],{"class":198},[192,714,23],{"class":202},[192,716,673],{"class":198},[192,718,23],{"class":202},[192,720,678],{"class":198},[192,722,641],{"class":202},[192,724,210],{"class":198},[192,726,728,730,732,734,736,738,740,742,745,747,749,751,753,755,757,759,761,763,765],{"class":194,"line":727},32,[192,729,554],{"class":198},[192,731,641],{"class":202},[192,733,644],{"class":206},[192,735,224],{"class":198},[192,737,649],{"class":227},[192,739,652],{"class":206},[192,741,224],{"class":198},[192,743,744],{"class":227},"\"c3\"",[192,746,660],{"class":198},[192,748,45],{"class":202},[192,750,619],{"class":198},[192,752,45],{"class":202},[192,754,660],{"class":198},[192,756,23],{"class":202},[192,758,673],{"class":198},[192,760,23],{"class":202},[192,762,678],{"class":198},[192,764,641],{"class":202},[192,766,210],{"class":198},[192,768,770,772,774],{"class":194,"line":769},33,[192,771,525],{"class":198},[192,773,546],{"class":202},[192,775,210],{"class":198},[192,777,779,781,783],{"class":194,"line":778},34,[192,780,525],{"class":198},[192,782,187],{"class":202},[192,784,210],{"class":198},[23,786,787,788,791,792,794],{},"The adjacent-sibling selector ",[14,789,790],{},".chapter + .chapter"," leaves the first chapter alone. Applying ",[14,793,28],{}," to content that is visible on load gains nothing and costs containment bookkeeping; it pays off only for content that starts off screen. The 900-pixel estimate should be close to a typical section's rendered height — the closer it is, the less the scrollbar moves as sections render for the first time.",[45,796,798,799,801],{"id":797},"the-key-technique-the-auto-keyword-remembers-real-sizes","The key technique: the ",[14,800,168],{}," keyword remembers real sizes",[23,803,804,805,807,808,811,812,814,815,818],{},"The subtle failure without ",[14,806,168],{}," shows up when scrolling ",[56,809,810],{},"back",". A section scrolls into view, renders at its real 1,400 pixels, scrolls out of view, becomes skipped again — and, without ",[14,813,168],{},", reverts to the 900-pixel placeholder. The page shrinks by 500 pixels above the viewport and everything jumps. With ",[14,816,817],{},"contain-intrinsic-size: auto 900px",", the browser records the last rendered size and uses it whenever the section is skipped again.",[67,820,74,823,74,826,74,829,74,832,74,838,74,845,74,849,74,854,74,858,74,860,74,863,74,867,74,873,74,876,74,880],{"viewBox":821,"role":70,"ariaLabel":822,"xmlns":72,"style":73},"0 0 720 280","Section height over time: placeholder before first render, real height while rendered, and after scrolling away either reverting to placeholder or keeping the remembered size with auto",[76,824,825],{},"What auto changes after the first render",[80,827,828],{},"Without auto, a section is 900 pixels before render, 1400 while rendered, and back to 900 after scrolling away, causing a jump. With auto, it is 900 before render, 1400 while rendered, and stays at 1400 after scrolling away.",[84,830,831],{"textAnchor":86,"x":87,"y":88,"style":89},"Height of one section across a scroll down and back",[84,833,837],{"textAnchor":124,"x":834,"y":835,"style":836},"40","84","text-anchor:start;fill:currentColor;font:600 12px ui-monospace,monospace","900px",[194,839],{"x1":840,"y1":841,"x2":842,"y2":841,"stroke":117,"strokeWidth":843,"opacity":844},"120","100","680","1","0.4",[113,846],{"d":847,"fill":116,"stroke":117,"strokeWidth":848,"opacity":143},"M120 90 H300 V60 H480 V90 H680","3",[84,850,853],{"textAnchor":86,"x":851,"y":852,"style":104},"590","80","reverts → jump",[84,855,857],{"textAnchor":124,"x":834,"y":856,"style":836},"184","auto 900px",[194,859],{"x1":840,"y1":94,"x2":842,"y2":94,"stroke":117,"strokeWidth":843,"opacity":844},[113,861],{"d":862,"fill":116,"stroke":99,"strokeWidth":121},"M120 190 H300 V160 H680",[84,864,866],{"textAnchor":86,"x":851,"y":865,"style":104},"150","remembered 1400px",[84,868,872],{"textAnchor":86,"x":869,"y":870,"style":871},"210","226","text-anchor:middle;fill:currentColor;font:11px sans-serif","before render",[84,874,105],{"textAnchor":86,"x":875,"y":870,"style":871},"390",[84,877,879],{"textAnchor":86,"x":878,"y":870,"style":871},"580","skipped again",[84,881,883],{"textAnchor":86,"x":87,"y":882,"style":104},"262","Always include auto unless every section has a fixed, known height.",[23,885,886,887,889,890,892,893,17,896,899],{},"The syntax takes one or two values per axis: ",[14,888,817],{}," applies to both axes with the ",[14,891,168],{}," behaviour, and the longhands ",[14,894,895],{},"contain-intrinsic-block-size",[14,897,898],{},"contain-intrinsic-inline-size"," let you set only the axis that matters. For vertical documents, the block size is what counts; the inline size is determined by normal layout because the section spans its container.",[45,901,903],{"id":902},"side-effects-to-know-about","Side effects to know about",[23,905,906,910,911,913,914,918],{},[907,908,909],"strong",{},"Find in page and anchors."," Skipped content remains searchable. Find-in-page matches text in skipped sections and renders them as it scrolls to the match. Fragment links to IDs inside skipped sections work the same way, which is why the example keeps ",[14,912,511],{}," on headings; see ",[34,915,917],{"href":916},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fscroll-margin-and-scroll-padding-for-sticky-headers\u002F","scroll-margin and scroll-padding for Sticky Headers",".",[23,920,921,924,925,927],{},[907,922,923],{},"Accessibility."," With ",[14,926,168],{},", skipped content stays in the accessibility tree, so screen readers can navigate headings and landmarks throughout the page. Some older implementations exposed skipped content inconsistently; test heading navigation in the screen readers you support.",[23,929,930,933,934,937],{},[907,931,932],{},"Layout-dependent script."," Code that measures elements with ",[14,935,936],{},"getBoundingClientRect()"," in skipped sections gets placeholder sizes, and code that expects off-screen images or components to have rendered may find they have not. Intersection-observer-based lazy loading works normally.",[23,939,940,943,944,948],{},[907,941,942],{},"Animations and transitions."," Animations inside skipped content do not run while it is skipped, which is a benefit for off-screen loops. Scroll-driven animations attached to elements in skipped sections resume when the sections render; see ",[34,945,947],{"href":946},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-triggered-reveal-animations\u002F","Scroll-Triggered Reveal Animations"," for reveal effects that coexist with deferred rendering.",[45,950,952],{"id":951},"where-the-savings-come-from","Where the savings come from",[23,954,955,956,959],{},"Rendering a page runs a pipeline for every element: style (computing each property), layout (sizes and positions), paint (drawing into layers) and composite (assembling layers into the frame). For a skipped section, the browser still computes enough style to know the section's own box, but it skips the ",[56,957,958],{},"contents"," entirely at the layout and paint stages.",[67,961,74,964,74,967,74,970,74,973,74,977,74,982,74,986,74,989,74,992,74,995,74,999,74,1002,74,1006,74,1010,74,1013,74,1016,74,1019,74,1022],{"viewBox":962,"role":70,"ariaLabel":963,"xmlns":72,"style":73},"16 0 585 260","Rendering pipeline for a skipped section: the section box goes through style and layout with a placeholder size, while its descendants skip layout and paint",[76,965,966],{},"Which rendering stages are skipped",[80,968,969],{},"Two rows. The section element itself passes through style and layout using its placeholder size. Its descendants skip layout and paint while the section is off screen. Composite work for the frame is unaffected.",[84,971,972],{"textAnchor":86,"x":87,"y":88,"style":89},"The box is laid out; its contents are not",[84,974,976],{"textAnchor":124,"x":975,"y":852,"style":127},"30","section box",[92,978],{"x":979,"y":980,"width":840,"height":981,"rx":98,"fill":99,"opacity":844},"160","60","36",[84,983,305],{"textAnchor":86,"x":984,"y":985,"style":104},"220","83",[92,987],{"x":988,"y":980,"width":840,"height":981,"rx":98,"fill":99,"opacity":844},"300",[84,990,991],{"textAnchor":86,"x":87,"y":985,"style":104},"layout",[92,993],{"x":994,"y":980,"width":840,"height":981,"rx":98,"fill":99,"opacity":844},"440",[84,996,998],{"textAnchor":86,"x":997,"y":985,"style":104},"500","placeholder",[84,1000,1001],{"textAnchor":124,"x":975,"y":865,"style":127},"descendants",[92,1003],{"x":979,"y":1004,"width":840,"height":981,"rx":98,"fill":99,"opacity":1005},"130","0.2",[84,1007,1009],{"textAnchor":86,"x":984,"y":1008,"style":104},"153","style (light)",[92,1011],{"x":988,"y":1004,"width":840,"height":981,"rx":98,"fill":116,"stroke":117,"strokeDashArray":1012,"opacity":143},[121,121],[84,1014,1015],{"textAnchor":86,"x":87,"y":1008,"style":104},"layout skipped",[92,1017],{"x":994,"y":1004,"width":840,"height":981,"rx":98,"fill":116,"stroke":117,"strokeDashArray":1018,"opacity":143},[121,121],[84,1020,1021],{"textAnchor":86,"x":997,"y":1008,"style":104},"paint skipped",[84,1023,1025],{"textAnchor":86,"x":87,"y":1024,"style":104},"216","Savings scale with how complex the skipped contents are, not how long the page is.",[23,1027,1028,1029,1031],{},"That is why the gain depends so strongly on content. A section of plain paragraphs has cheap layout, so skipping it saves little per section, though hundreds of sections add up. A section full of grids, tables, icons and nested components has expensive layout and paint, and skipping it saves a great deal. The same logic explains why ",[14,1030,16],{}," helps later interactions too: when a style change forces a relayout, skipped sections are excluded from the work, so the page responds faster to state changes long after load.",[45,1033,1035],{"id":1034},"measuring-the-benefit","Measuring the benefit",[23,1037,1038,1039,1041,1042,17,1045,1048],{},"The gain depends on how much off-screen content there is and how expensive it is. Record a Performance profile of the page load with and without ",[14,1040,16],{},", and compare the time spent in ",[56,1043,1044],{},"Layout",[56,1046,1047],{},"Paint"," before first contentful paint. Long pages of text often show modest savings; pages with many complex components — tables, charts, deeply nested cards — show large ones. If the numbers do not move, remove it: containment has a small cost, and there is no reason to pay it without a benefit.",[23,1050,1051,1052,1054,1055,1057],{},"Also measure interaction, not only load. Open the page, scroll to the middle, and record a profile while toggling something that forces layout — expanding a disclosure or switching the theme. The ",[56,1053,1044],{}," event's affected-node count should be far lower with ",[14,1056,16],{}," than without, because skipped sections above and below are excluded. That improvement is often more noticeable to users than the load-time saving.",[45,1059,1061],{"id":1060},"browser-support","Browser support",[23,1063,1064,1066,1067,1069,1070,1072,1073,1075],{},[14,1065,16],{}," is supported in Chrome and Edge 85+, Firefox 125+ and Safari 18+. ",[14,1068,20],{},", including the ",[14,1071,168],{}," keyword, is supported in Chrome and Edge 83+, Firefox 107+ and Safari 17+. In engines without ",[14,1074,16],{},", the declarations are ignored and every section renders normally, so the property is safe to ship as a progressive enhancement.",[45,1077,1079],{"id":1078},"faq","FAQ",[23,1081,1082,1088],{},[907,1083,1084,1085,1087],{},"What does ",[14,1086,28],{}," do?","\nIt lets the browser skip layout and paint for an element's contents while the element is far from the viewport. The element still exists in the DOM and accessibility tree; its rendering work is simply deferred until it approaches the screen.",[23,1090,1091,1100,1101,1103],{},[907,1092,1093,1094,1096,1097,1099],{},"Why do I need ",[14,1095,20],{}," with ",[14,1098,16],{},"?","\nA skipped element's contents are not laid out, so the element would have zero height, making the page shorter and the scrollbar jump as sections render. ",[14,1102,20],{}," gives the skipped element a placeholder size so the page height stays close to its real value.",[23,1105,1106,1114,1117],{},[907,1107,1108,1109,1111,1112,1087],{},"What does the ",[14,1110,168],{}," keyword in ",[14,1113,20],{},[14,1115,1116],{},"contain-intrinsic-size: auto 500px"," uses 500px until the element has been rendered once, then remembers its last real size and uses that while it is skipped again. This keeps the scrollbar stable after the user has scrolled past a section.",[23,1119,1120,1126,1127,1129,1130,1133,1134,1137],{},[907,1121,1122,1123,1125],{},"Does ",[14,1124,16],{}," hide content from screen readers or search?","\nNo for ",[14,1128,168],{},": skipped content remains in the accessibility tree and is searchable with find-in-page, which brings it into view. ",[14,1131,1132],{},"content-visibility: hidden"," is different; it behaves like ",[14,1135,1136],{},"display: none"," for rendering but preserves the element's rendering state for fast re-showing.",[45,1139,1141],{"id":1140},"related","Related",[1143,1144,1145,1151,1158,1165],"ul",{},[1146,1147,1148,1150],"li",{},[34,1149,37],{"href":36}," — the parent guide.",[1146,1152,1153,1157],{},[34,1154,1156],{"href":1155},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-type-size-vs-inline-size\u002F","container-type: size vs inline-size"," — the same size-containment trade-off in container queries.",[1146,1159,1160,1164],{},[34,1161,1163],{"href":1162},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fprofiling-animations-in-devtools\u002F","Profiling Animations in DevTools"," — the Performance panel used to measure savings.",[1146,1166,1167,1171],{},[34,1168,1170],{"href":1169},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fpreventing-flex-and-grid-overflow\u002F","Preventing Flex and Grid Overflow"," — another intrinsic-size behaviour worth understanding.",[305,1173,1174],{},"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 .sHUrx, html code.shiki .sHUrx{--shiki-default:#A0111F;--shiki-dark:#FF9492}html pre.shiki code .sLBg1, html code.shiki .sLBg1{--shiki-default:#66707B;--shiki-dark:#BDC4CC}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":188,"searchDepth":213,"depth":213,"links":1176},[1177,1178,1179,1181,1182,1183,1184,1185,1186],{"id":47,"depth":213,"text":48},{"id":171,"depth":213,"text":172},{"id":797,"depth":213,"text":1180},"The key technique: the auto keyword remembers real sizes",{"id":902,"depth":213,"text":903},{"id":951,"depth":213,"text":952},{"id":1034,"depth":213,"text":1035},{"id":1060,"depth":213,"text":1061},{"id":1078,"depth":213,"text":1079},{"id":1140,"depth":213,"text":1141},"Skip rendering work for off-screen sections with content-visibility: auto, reserve their size with contain-intrinsic-size, and keep the scrollbar steady.","md",{"pageTitle":1190,"datePublished":1191,"dateModified":1191,"faq":1192},"content-visibility and contain-intrinsic-size","2026-09-18",[1193,1196,1199,1202],{"q":1194,"a":1195},"What does content-visibility: auto do?","It lets the browser skip layout and paint for an element's contents while the element is far from the viewport. The element still exists in the DOM and accessibility tree; its rendering work is simply deferred until it approaches the screen.",{"q":1197,"a":1198},"Why do I need contain-intrinsic-size with content-visibility?","A skipped element's contents are not laid out, so the element would have zero height, making the page shorter and the scrollbar jump as sections render. contain-intrinsic-size gives the skipped element a placeholder size so the page height stays close to its real value.",{"q":1200,"a":1201},"What does the auto keyword in contain-intrinsic-size do?","contain-intrinsic-size: auto 500px uses 500px until the element has been rendered once, then remembers its last real size and uses that while it is skipped again. This keeps the scrollbar stable after the user has scrolled past a section.",{"q":1203,"a":1204},"Does content-visibility hide content from screen readers or search?","No for auto: skipped content remains in the accessibility tree and is searchable with find-in-page, which brings it into view. content-visibility: hidden is different; it behaves like display: none for rendering but preserves the element's rendering state for fast re-showing.","\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fcontent-visibility-and-contain-intrinsic-size",{"title":5,"description":1187},"mastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fcontent-visibility-and-contain-intrinsic-size\u002Findex","f8M7qTOA__w8iovjxSDf7fmrhOXFWEtagDuZabcQ7A8",[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,1491,1494,1497,1500,1503,1506,1509,1512,1515,1518,1521,1524,1527,1530,1533,1536,1539,1542,1545,1548,1551,1554,1557,1560,1563,1566,1569,1572,1575,1578,1581,1584,1587,1590,1593,1596,1599,1602,1605,1608,1611,1614,1617,1620,1623,1626,1629,1631,1634,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,1755,1758,1761,1764],{"path":1211,"title":1212},"\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":1214,"title":1215},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fflashing-content-and-seizure-thresholds","Flashing Content and Seizure Thresholds",{"path":1217,"title":1218},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fforced-colors-mode-and-animations","Forced Colors Mode and Animations",{"path":1220,"title":1221},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations","Accessibility in CSS Animations: Patterns, Specs & Best Practices",{"path":1223,"title":1224},"\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":1226,"title":1227},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fprefers-reduced-motion-recipes","prefers-reduced-motion Recipes: A Reduction for Every Common Effect",{"path":1229,"title":1230},"\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":1232,"title":1233},"\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":1235,"title":1236},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fvestibular-safe-animation-patterns","Vestibular-Safe Animation Patterns: Why Some Motion Makes People Sick",{"path":1238,"title":1239},"\u002Fcss-only-micro-interactions-animations\u002Faccessibility-in-css-animations\u002Fwcag-motion-success-criteria","WCAG Motion Success Criteria: What Each One Actually Requires",{"path":1241,"title":1242},"\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":1244,"title":1245},"\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":1247,"title":1248},"\u002Fcss-only-micro-interactions-animations\u002Fclip-path-and-mask-animations","Clip-Path & Mask Animations: Animating Visibility Instead of Position",{"path":1250,"title":1251},"\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":1253,"title":1254},"\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":1256,"title":1257},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fanimating-gradients","Animating CSS Gradients: Smooth Colour Motion Without Jumps",{"path":1259,"title":1260},"\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":1262,"title":1263},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions","Color & Theme Transitions: Colour as Part of the Motion System",{"path":1265,"title":1266},"\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":1268,"title":1269},"\u002Fcss-only-micro-interactions-animations\u002Fcolor-and-theme-transitions\u002Fsmooth-theme-switching-transitions","Smooth Theme Switching: Crossfades, Circular Reveals and No Flash",{"path":1271,"title":1272},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fcontainer-query-hover-affordances","Container Query Hover Affordances: When Narrow Means Persistent, Not Hidden",{"path":1274,"title":1275},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion","Container-Aware Motion: Animation Sized by the Space a Component Actually Has",{"path":1277,"title":1278},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Flayout-change-animations-at-container-breakpoints","Animating Changes at Container Breakpoints",{"path":1280,"title":1281},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fmotion-driven-by-container-style-queries","Motion Driven by Container Style Queries",{"path":1283,"title":1284},"\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":1286,"title":1287},"\u002Fcss-only-micro-interactions-animations\u002Fcontainer-aware-motion\u002Fsuppressing-motion-in-small-containers","Suppressing Motion in Small Containers: Deliberately Animating Nothing",{"path":1289,"title":1290},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fcontrolling-css-animations-from-javascript","Controlling CSS Animations From JavaScript",{"path":1292,"title":1293},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api","CSS Animation vs the Web Animations API: A Decision Guide",{"path":1295,"title":1296},"\u002Fcss-only-micro-interactions-animations\u002Fcss-animation-vs-web-animations-api\u002Fwaapi-vs-css-for-interruptible-ui","Interruptible UI: CSS Transitions vs WAAPI",{"path":1298,"title":1299},"\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":1301,"title":1302},"\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":1304,"title":1305},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fcustom-property-fallbacks-and-invalid-values","Custom Property Fallbacks and Invalid Values",{"path":1307,"title":1308},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Ffluid-spacing-tokens-driving-transition-durations","Fluid Spacing Tokens That Drive Transition Durations",{"path":1310,"title":1311},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture","CSS Custom Properties Architecture: Scalable Design Systems & Dynamic UI",{"path":1313,"title":1314},"\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":1316,"title":1317},"\u002Fcss-only-micro-interactions-animations\u002Fcss-custom-properties-architecture\u002Fscoping-custom-properties-to-components","Scoping Custom Properties to Components",{"path":1319,"title":1320},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fcss-transition-timing-functions","CSS Transition Timing Functions: ease, cubic-bezier(), steps() and linear()",{"path":1322,"title":1323},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals","CSS Transition Fundamentals: Architecture, Performance & Patterns",{"path":1325,"title":1326},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Finterrupted-and-reversing-transitions","Interrupted and Reversing Transitions: What Happens Mid-Flight",{"path":1328,"title":1329},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Fstarting-style-entry-animations","@starting-style: Animating an Element's Very First Style Change",{"path":1331,"title":1332},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-delay-choreography","Choreographing Motion With transition-delay",{"path":1334,"title":1335},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransition-shorthand-and-multiple-properties","The transition Shorthand and Multiple Properties",{"path":1337,"title":1338},"\u002Fcss-only-micro-interactions-animations\u002Fcss-transition-fundamentals\u002Ftransitioning-display-with-allow-discrete","Transitioning display with transition-behavior: allow-discrete and @starting-style",{"path":1340,"title":1341},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fanimating-dialog-open-and-close","Animating \u003Cdialog> Open and Close: Both Directions, No Library",{"path":1343,"title":1344},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fbackdrop-animations","Animating ::backdrop: Fades and Blurs Behind Dialogs and Popovers",{"path":1346,"title":1347},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations","Dialog & Popover Animations: Motion for the Top Layer",{"path":1349,"title":1350},"\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":1352,"title":1353},"\u002Fcss-only-micro-interactions-animations\u002Fdialog-and-popover-animations\u002Fpopover-entry-and-exit-transitions","Popover Menus That Animate From Their Anchor",{"path":1355,"title":1356},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fchoosing-animation-durations","Choosing Animation Durations: How Long Motion Should Last",{"path":1358,"title":1359},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fcubic-bezier-overshoot-and-anticipation","Overshoot and Anticipation With cubic-bezier(): Motion With Character",{"path":1361,"title":1362},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design\u002Fentry-vs-exit-easing","Entry vs Exit Easing: Different Curves for Arriving and Leaving",{"path":1364,"title":1365},"\u002Fcss-only-micro-interactions-animations\u002Feasing-and-motion-design","Easing & Motion Design: Making CSS Motion Feel Intentional",{"path":1367,"title":1368},"\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":1370,"title":1371},"\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":1373,"title":1374},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Faccessible-css-only-tooltips","Accessible CSS-Only Tooltips and Hover Cards With  and ",{"path":1376,"title":1377},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Fbutton-press-and-active-states","Button Press and  States",{"path":1379,"title":1380},"\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":1382,"title":1383},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design\u002Ffocus-within-form-patterns"," Form Patterns: Styling a Group From the Field Inside It",{"path":1385,"title":1386},"\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":1388,"title":1389},"\u002Fcss-only-micro-interactions-animations\u002Fhover-focus-state-design","Hover & Focus State Design: Spec-Compliant Patterns for Modern UIs",{"path":1391,"title":1392},"\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":1394,"title":1395},"\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":1397,"title":1398},"\u002Fcss-only-micro-interactions-animations","CSS-Only Micro-Interactions & Animations: Architecture, Performance & Implementation",{"path":1400,"title":1401},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fanimation-composition-and-stacking","Stacking Animations With animation-composition",{"path":1403,"title":1404},"\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":1406,"title":1407},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcontainer-query-triggered-keyframe-animations","Container-Query-Triggered Keyframe Animations: Animate Differently per Available Space",{"path":1409,"title":1410},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fcss-only-accordions-and-disclosure","CSS-Only Accordions and Disclosure Widgets with details and summary",{"path":1412,"title":1413},"\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":1415,"title":1416},"\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":1418,"title":1419},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns","Keyframe Animation Patterns: Spec-Compliant Architectures for Modern UIs",{"path":1421,"title":1422},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fmulti-step-keyframes-and-per-keyframe-easing","Multi-Step Keyframes and Per-Keyframe Easing",{"path":1424,"title":1425},"\u002Fcss-only-micro-interactions-animations\u002Fkeyframe-animation-patterns\u002Fstaggered-list-animations-with-custom-properties","Staggered List Animations Using --i Index Custom Properties",{"path":1427,"title":1428},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fanimating-box-shadow-and-filters-cheaply","Animating box-shadow and Filters Cheaply",{"path":1430,"title":1431},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcontain-property-for-animation-performance","The contain Property for Animation Performance",{"path":1433,"title":1434},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Fcss-triggers-layout-paint-composite","Layout, Paint and Composite: What Triggers What",{"path":1436,"title":1437},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration","Performance & GPU Acceleration in CSS: A Developer’s Blueprint",{"path":1439,"title":1440},"\u002Fcss-only-micro-interactions-animations\u002Fperformance-gpu-acceleration\u002Foptimizing-css-animations-for-60fps","Optimizing CSS Animations for 60fps: Budgeting the Frame",{"path":1442,"title":1443},"\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":1445,"title":1446},"\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":1448,"title":1449},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations","Scroll-Driven Animations: Binding Motion to Scroll Position in Pure CSS",{"path":1451,"title":1452},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-animation-fallbacks","Shipping Scroll-Driven Animations Without Breaking Anything",{"path":1454,"title":1455},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-driven-parallax-effects","Scroll-Driven Parallax Effects in CSS",{"path":1457,"title":1458},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-progress-bar-without-javascript","A Reading Progress Bar Driven by scroll(root)",{"path":1460,"title":1461},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fscroll-triggered-reveal-animations","Reveal-on-Scroll with view() and animation-range",{"path":1463,"title":1464},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Ftimeline-scope-for-cross-element-animations","timeline-scope for Cross-Element Animations",{"path":1466,"title":1467},"\u002Fcss-only-micro-interactions-animations\u002Fscroll-driven-animations\u002Fview-timeline-and-animation-range","View Timelines and animation-range",{"path":1469,"title":1470},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fcross-document-view-transitions","Cross-Document View Transitions",{"path":1472,"title":1473},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers","View Transitions for CSS Developers: the Pseudo-Element Tree, Snapshots, and Named Elements",{"path":1475,"title":1476},"\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":1478,"title":1479},"\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":1481,"title":1482},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transition-types-and-classes","View Transition Types and Classes",{"path":1484,"title":1485},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-for-list-reordering","View Transitions for List Reordering",{"path":1487,"title":1488},"\u002Fcss-only-micro-interactions-animations\u002Fview-transitions-for-css-developers\u002Fview-transitions-with-reduced-motion","Honouring prefers-reduced-motion in View Transitions",{"path":332,"title":1490},"Modern CSS Layouts & Micro-Interactions",{"path":1492,"title":1493},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioned-tooltips","Anchor-Positioned Tooltips: Tethering, Flipping, and Getting the Semantics Right",{"path":1495,"title":1496},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-positioning-fallbacks","Anchor Positioning Fallbacks: A Graceful Floor for Older Browser Versions",{"path":1498,"title":1499},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fanchor-size-for-matching-widths","anchor-size(): Overlays That Match Their Trigger's Size",{"path":1501,"title":1502},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays","CSS Anchor Positioning and Overlays: Tethering Elements Without JavaScript",{"path":1504,"title":1505},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-attribute-and-css-styling","The popover Attribute: Top-Layer Overlays With No JavaScript",{"path":1507,"title":1508},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fpopover-light-dismiss-and-stacking","Popover Light Dismiss, Nesting and Stacking",{"path":1510,"title":1511},"\u002Fmastering-container-queries-responsive-layouts\u002Fanchor-positioning-and-overlays\u002Fposition-area-grid-explained","position-area: The Anchor Placement Grid",{"path":1513,"title":1514},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fcontainer-query-polyfill-tradeoffs","Container Query Polyfills: What They Cost and When to Skip Them",{"path":1516,"title":1517},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ffeature-detection-with-supports","Feature Detection with @supports: Syntax, Semantics, and the Traps",{"path":1519,"title":1520},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fhandling-container-query-fallbacks-for-older-browsers","Handling Container Query Fallbacks for Older Browsers",{"path":1522,"title":1523},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks","Container Query Fallbacks: Spec-Compliant CSS Strategies for Legacy Browsers",{"path":1525,"title":1526},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Fintrinsic-layout-fallbacks-without-queries","Intrinsic Layout Fallbacks: Baselines That Adapt Without Any Query",{"path":1528,"title":1529},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-fallbacks\u002Ftesting-fallbacks-without-old-browsers","Testing CSS Fallbacks Without an Old Browser",{"path":1531,"title":1532},"\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":1534,"title":1535},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-query-range-and-logic-operators","Container Query Range Syntax and Logic Operators",{"path":1537,"title":1538},"\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":1540,"title":1541},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-type-size-vs-inline-size","Choosing container-type: inline-size, size, or normal",{"path":1543,"title":1544},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fcontainer-vs-media-queries-comparison","Container vs Media Queries: Choosing the Right Reference Box",{"path":1546,"title":1547},"\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":1549,"title":1550},"\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":1552,"title":1553},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics","Container Query Syntax Basics",{"path":1555,"title":1556},"\u002Fmastering-container-queries-responsive-layouts\u002Fcontainer-query-syntax-basics\u002Fnesting-and-naming-container-queries","Nesting and Naming Container Queries: Targeting the Right Ancestor",{"path":1558,"title":1559},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fauto-fit-minmax-responsive-grids","Responsive Grids with repeat(auto-fit, minmax())",{"path":1561,"title":1562},"\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":1564,"title":1565},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fgrid-auto-flow-dense-packing","grid-auto-flow: dense for Packed Layouts",{"path":1567,"title":1568},"\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":1570,"title":1571},"\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":1573,"title":1574},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts","CSS Grid and Subgrid Layouts for Responsive Interfaces",{"path":1576,"title":1577},"\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":1579,"title":1580},"\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":1582,"title":1583},"\u002Fmastering-container-queries-responsive-layouts\u002Fcss-grid-and-subgrid-layouts\u002Fsubgrid-vs-nested-grid","Subgrid vs an Independently Nested Grid",{"path":1585,"title":1586},"\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":1588,"title":1589},"\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":1591,"title":1592},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-grow-and-flex-shrink-explained","flex-grow and flex-shrink Explained",{"path":1594,"title":1595},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflex-wrap-intrinsic-responsive-rows","Breakpoint-Free Responsive Rows With flex-wrap and flex-basis",{"path":1597,"title":1598},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns\u002Fflexbox-gap-and-spacing","Flexbox gap vs Margins: Spacing Items Without Edge Hacks",{"path":1600,"title":1601},"\u002Fmastering-container-queries-responsive-layouts\u002Fflexbox-layout-patterns","Flexbox Layout Patterns: One-Dimensional Layout for Real Components",{"path":1603,"title":1604},"\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":1606,"title":1607},"\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":1609,"title":1610},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Fdebugging-clamp-values","Debugging clamp(): Values That Are Ignored, Stuck or Never Fluid",{"path":1612,"title":1613},"\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":1615,"title":1616},"\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":1618,"title":1619},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-type-accessibility-and-zoom","Fluid Type, Accessibility and Zoom: The vw-Only Trap",{"path":1621,"title":1622},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp\u002Ffluid-typography-without-javascript","Fluid Typography Without JavaScript: A Precision CSS Reference",{"path":1624,"title":1625},"\u002Fmastering-container-queries-responsive-layouts\u002Ffluid-typography-with-clamp","Fluid Typography with clamp(): A Practical Guide for Modern CSS",{"path":1627,"title":1628},"\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":1630,"title":42},"\u002Fmastering-container-queries-responsive-layouts",{"path":1632,"title":1633},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Faspect-ratio-for-responsive-media","Using aspect-ratio for Responsive Media and Preventing Layout Shift",{"path":1205,"title":5},{"path":1636,"title":1637},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques","Intrinsic Sizing Techniques: Modern CSS Layouts for Responsive UI",{"path":1639,"title":1640},"\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":1642,"title":1643},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fmin-max-fit-content-explained","min-content, max-content, and fit-content() Explained",{"path":1645,"title":1646},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fobject-fit-and-object-position","object-fit and object-position: Images That Fit Any Box",{"path":1648,"title":1649},"\u002Fmastering-container-queries-responsive-layouts\u002Fintrinsic-sizing-techniques\u002Fpreventing-flex-and-grid-overflow","The min-width: auto Trap in Flex and Grid Layouts",{"path":1651,"title":1652},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-for-reset-and-tokens","Cascade Layers for Reset and Design Tokens",{"path":1654,"title":1655},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcascade-layers-vs-specificity-hacks","Cascade Layers vs Specificity Hacks: Ordering Instead of Escalating",{"path":1657,"title":1658},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fcss-scope-for-component-styles","@scope for Component Styles: Short Selectors That Cannot Leak",{"path":1660,"title":1661},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies","Modern CSS Reset Strategies: A Spec-Compliant Foundation",{"path":1663,"title":1664},"\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":1666,"title":1667},"\u002Fmastering-container-queries-responsive-layouts\u002Fmodern-css-reset-strategies\u002Fwriting-a-minimal-modern-reset","Writing a Minimal Modern CSS Reset: Every Line Justified",{"path":1669,"title":1670},"\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":1672,"title":1673},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has\u002Fempty-and-loading-states-with-has","Empty and Loading States With ()",{"path":1675,"title":1676},"\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":1678,"title":1679},"\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":1681,"title":1682},"\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":1684,"title":1685},"\u002Fmastering-container-queries-responsive-layouts\u002Fparent-aware-layouts-with-has","Parent-Aware Layouts With :has(): Letting Containers React to Their Contents",{"path":1687,"title":1688},"\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":1690,"title":1691},"\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":1693,"title":1694},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-data-tables","Container Query Data Tables: Reflowing Tables to Cards",{"path":1696,"title":1697},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fcontainer-query-sidebar-layouts","Container Query Sidebar Layouts That Travel Between Contexts",{"path":1699,"title":1700},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns","Responsive Component Patterns: Architecture & Implementation",{"path":1702,"title":1703},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-forms-with-container-queries","Responsive Forms with Container Queries: Reflow Without Losing the Wiring",{"path":1705,"title":1706},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-hero-sections-with-container-queries","Responsive Hero Sections With Container Queries",{"path":1708,"title":1709},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-navigation-without-media-queries","Responsive Navigation Without Media Queries Using Container Queries",{"path":1711,"title":1712},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Fresponsive-pricing-tables","Responsive Pricing Tables: Aligned Features, a Clear Recommendation, Any Width",{"path":1714,"title":1715},"\u002Fmastering-container-queries-responsive-layouts\u002Fresponsive-component-patterns\u002Ftabs-that-become-accordions","Tabs That Become an Accordion: One Component, Two Layouts",{"path":1717,"title":1718},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts\u002Fcss-only-carousel-with-scroll-snap","A CSS-Only Carousel With Scroll Snap",{"path":1720,"title":1721},"\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":1723,"title":1724},"\u002Fmastering-container-queries-responsive-layouts\u002Fscroll-snap-and-overflow-layouts","Scroll Snap & Overflow Layouts: Designing Components That Scroll on Purpose",{"path":1726,"title":1727},"\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":1729,"title":1730},"\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":1732,"title":1733},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fcombining-size-and-style-queries","Combining Size and Style Container Queries",{"path":1735,"title":1736},"\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":1738,"title":1739},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state","Style Queries and Container State: Token-Driven Component Variants",{"path":1741,"title":1742},"\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":1744,"title":1745},"\u002Fmastering-container-queries-responsive-layouts\u002Fstyle-queries-and-container-state\u002Fstyle-query-component-variants","Component Variants With Style Queries: One Token, Many Looks",{"path":1747,"title":1748},"\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":1750,"title":1751},"\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":1753,"title":1754},"\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":1756,"title":1757},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout","Viewport Units & Mobile Layout: Designing for the Screen You Actually Get",{"path":1759,"title":1760},"\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":1762,"title":1763},"\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":1765,"title":1766},"\u002Fmastering-container-queries-responsive-layouts\u002Fviewport-units-and-mobile-layout\u002Fvirtual-keyboard-and-interactive-widget","Layouts That Survive the Virtual Keyboard",1789717749483]