A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/css-regions/NamedFlow/getRegions below:

getRegions() · WebPlatform Docs

getRegions() Summary

Returns the static sequence of regions into which content flows.

Method of apis/css-regions/NamedFlowapis/css-regions/NamedFlow

Syntax
var regions = flow.getRegions();
Return Value

Returns an object of type functionfunction

Returns the static sequence of regions into which content flows. The regions are returned in document order.

Examples

Remove the first empty node from a flow:

var flow = document.getNamedFlows().namedItem('main');
var index = flow.firstEmptyRegionIndex;
if (index !== -1) {
    var emptyRegion = flow.getRegions()[index];
    emptyRegion.parentNode.removeChild(emptyRegion);
}
Related specifications
CSS Regions Module Level 1
W3C Working Draft
See also Related articles Regions External resources

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4