concept

Layout invalidation — CSS reference

A change to layout-affecting input can make geometry stale. Here resizing a preceding box in normal flow moves the following box. A browser may update only the affected part of its layout tree; this geometry test is not an invalidation trace.

Formal Syntax & Structure

css syntaxcss
element.style.width = "160px";

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>layout-invalidation</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}#a{height:40px;width:100px}#b{height:20px}</style><body><div id="a">First</div><div id="b">Following</div></body></html>
CSS Reference