Emerging layout and conditional features
Definition and purpose
Emerging CSS features may change syntax or semantics before broad deployment. Grid lanes layout (often called masonry) and conditional value functions are examples that need feature-specific research.
Stable grid baseline
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CSS practice</title> <style> body { margin: 0; font: 16px sans-serif; color: #172033; background: white; } #a { display: grid; grid-template-columns: 100px 100px; gap: 8px; } #c { height: 80px; } </style> </head> <body> <div id="a"> <div id="b">Short</div> <div id="c">Tall</div> <div id="d">Third</div> </div> </body></html>The third item starts below the taller first-row item.
Syntax and mental model
The checked Grid Level 3 documentation describes display: grid-lanes and inline-grid-lanes; older proposals used different masonry syntax. Do not combine syntax from different draft dates. Keep a regular grid baseline and guard a grid-lanes enhancement with @supports. CSS if() and custom @function definitions also require checking their current grammar and implementation. Record draft URL, test date, browser version, support result and observable behavior. In the examples an unsupported branch is deliberately simulated; actual grid-lanes layout is not required to complete the exercise.
Simulated absent feature
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CSS practice</title> <style> body { margin: 0; font: 16px sans-serif; color: #172033; background: white; } #a { display: grid; grid-template-columns: 100px 100px; gap: 8px; } @supports (display: grid-lanes) and (display: not-a-layout) { #a { display: grid-lanes; } } </style> </head> <body> <div id="a"> <div id="b">Short</div> <div id="c">Tall</div> <div id="d">Third</div> </div> </body></html>The intentionally false second condition ensures baseline behavior. Remove it only in an experimental copy and record real results.
Common mistakes
Never label a draft feature universally supported just because a specification exists. A successful parse is only the start of behavior testing.
Practice and next steps
After trying the examples, complete the linked coding exercise and review questions. Predict the result before running your code. Prerequisite: Legacy and vendor-prefixed CSS. Next lesson: Compatibility and interoperability evidence.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Emerging layout and conditional features — knowledge check
Five questions on emerging layout and conditional features.
Why record a draft date?
What is grid-lanes intended for?
What should precede an experimental layout?
Does an intentionally false query test an older browser?
What should follow a true supports result?