getRegions

Jump to: navigation, search

getRegions()

This page has been flagged with the following issues:

High-level issues:


W3C Editor's Draft

Summary

Returns the series of regions into which content flows.

Method of apis/css-regions/NamedFlow

Syntax

var regions = flow.getRegions();


Return Value

Returns an object of type function.

Returns the series of regions into which content flows.

Examples

Remove the first empty node from a flow:

JavaScript

var flow = document.getNamedFlows().namedItem('main');
var index = flow.firstEmptyRegionIndex;
if (index !== -1) {
    var emptyRegion = flow.getRegions()[index];
    emptyRegion.parentNode.removeChild(emptyRegion);
}



Related specifications

Specification Status Related Changes
CSS Regions Module Level 3 W3C Editor's Draft

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support
20 -webkit
Unsupported
Unsupported
Unsupported
534 -webkit

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support Unsupported
Unsupported
Unsupported
Unsupported
Unsupported
Unsupported
Unsupported
Unsupported

See also

Related articles

Regions






  • getRegions()




























External resources