media-feature

Shape — CSS reference

Experimental or historical round-display media query. Do not infer display geometry from an unmatched query; responsive layouts remain the fallback. This fixture compares the media-query result with applied styling in the installed browser. A false match alone is not proof that the syntax is unsupported.

Formal Syntax & Structure

css syntaxcss
@media (shape: rect) { … }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>shape</title><style>body{margin:8px;font:16px/20px sans-serif;color:black;background:white}#a{color:green}@media (shape: rect){#a{color:blue}}</style><body><p id="a">Example text</p></body></html>
CSS Reference