Fires on the NamedFlow object when a change in how its content flows through a region chain renders any region empty or overset (overfilled), or that reverses that state.
Overview Table Synchronous No Bubbles No Target [**NamedFlow**](/apis/css-regions/NamedFlow) Cancelable Yes Default action noneFires on the [**NamedFlow**](/apis/css-regions/NamedFlow) object when the tail end of content moves from one region to another within a [chain](/css/concepts/region_chain), changing any between a properly filled state and one that is empty or [*overset*](/css/concepts/overset).
Examplesdispatch functions to add or delete regions based on changes to how content flows through a region chain:
document.getNamedFlows().namedItem('main').addEventListener(
'regionoversetchange', modifyFlow
);
function modifyFlow(e) {
var flow = e.target;
if (flow.overset) {
appendRegion(flow.name);
}
else if (flow.firstEmptyRegionIndex !== -1) {
trimRegions(flow.name);
}
}
Notes
The event fires when the regionOverset changes (between fit, overset, and empty) for any region within a region chain. (Compare with the regionfragmentchange event, which fires much more frequently in response to changing content or dimensions.)
Related specificationsregionoversetchange
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