Atributo overflow-anchor de CSS
- Página anterior overflow
- Página siguiente overflow-wrap
Definition and usage
overflow-anchor
The property is used to turn off scroll anchoring (scroll anchoring).
Scroll anchoring is a feature of the browser used to prevent the area that has already been scrolled into the viewport from moving when new content is loaded. This is often a problem when the network connection is slow, that is, when the user scrolls down and starts reading before the page is fully loaded.
Example
Turn off scroll anchoring:
div { overflow-anchor: none; }
CSS Syntax
overflow-anchor: auto|none|initial|inherit;
Property value
Value | Description |
---|---|
auto | Default value. Enable scroll anchoring. |
none | Disable scroll anchoring. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical details
Default value: | auto |
---|---|
Inheritance: | No |
Animation creation: | Not supported. See:Animation-related properties. |
Version: | CSS3 |
JavaScript Syntax: | object.style.overflowAnchor="none" |
Browser Support
The numbers in the table represent the browser version that first fully supports this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
56.0 | 79.0 | 66.0 | No se admite | 43.0 |
Páginas relacionadas
Tutoriales:CSS desbordamiento
Referencia:Atributo overflow de CSS
- Página anterior overflow
- Página siguiente overflow-wrap