media-feature

Vertical viewport segments — CSS reference

Tests the number of vertically arranged viewport segments. A value of two may indicate a vertically divided viewport. 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 (vertical-viewport-segments: 1) { … }

Working Example

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