overflow-y

Introduction

The overflow-y property specifies whether to clip the content when it overflows at the top and bottom edges.

Examples

Syntax

overflow-y: visible;
overflow-y: hidden;

Values

  • visible(default) the content will not be clipped, the content and the descendants may render outside the top and bottom edges.

  • hidden the overflow of the content and the descendants will be clipped at the top and bottom edges.

Formal definition

Initial valuevisible
Applies toall elements
Inheritedno
Animatableno

Formal syntax

hidden | visible

Difference from Web

  • overflow does not contain scroll and auto, for scroll please use <scroll-view> directly.

Notes

  • On Android platform, the Android view that has opacity < 1 will be rendered in an offscreen buffer by default, the offscreen makes the overflow-y: visible not work correctly, you can add overlap={false} to disable the offscreen rendering. The property is linked to Android View hasOverlappingRendering property.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.