Notice:
The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

name

Jump to: navigation, search

name

This article is Ready to Use.

W3C Working Draft

Summary

Name of flow, as specified by any element's flow-from or flow-into properties.



Property of apis/css-regions/NamedFlow

Syntax

Note: This property is read-only.

var id = flow.;

Return Value

Returns an object of type String

Name of flow, as specified by any element's flow-from or flow-into properties.

Examples

JavaScript

// Generic event handler adds/deletes regions to fit content. The 'name'
// property might allow the handler to dispatch different functions for
// different flows.

function modifyFlow(e) {
    var flow = e.target;
    if (flow.overset) {
      	appendRegion(flow.name);
    }
    else if (flow.firstEmptyRegionIndex !== -1)	{
        trimRegions(flow.name);
    }
}

document.getNamedFlows().namedItem('main').addEventListener('regionoversetchange', modifyFlow);



Related specifications

Specification Status Related Changes
CSS Regions Module Level 1 W3C Working Draft

See also

Related articles

Regions













External resources