v158 · dom · navigation
Opening links in a split tab
Browsers can tile two tabs side-by-side in one window, but a page had no way to ask for that: _blank gives a new full-size tab and the popup feature gives a detached window. This feature adds a third request — window.open(url, "_blank", "split,splitposition=right,splitsize=40") — plus a declarative windowfeatures attribute on <a>, <area> and <form>. It is only a request: the browser may ignore it (narrow window, mobile, already split) and fall back to a normal tab, and the page is never told which happened.
concepts
-
Feature string builder
The canonical call. Compose
split,splitposition,splitsize, thepopup=0guard andnoopener, watch the exact string, then press the button to make the realwindow.open()call and read back what the opened pane can observe. -
BarProp fallback matrix
The inspection tool. Each row opens one feature string and records the opened page’s
locationbar.visible— the only signal that separates “popup” from “tab or split”. It exposes the legacy trap ("split"opens a popup in engines that do not know it) and why"popup=0,split"is the safe migration string. -
Declarative windowfeatures
No JavaScript:
<a windowfeatures="split">,<area>and<form>. Live attribute/IDL reflection, the impliedtarget="_blank",relstill deciding the opener, and an existing named frame winning over the features. -
Search results side-by-side
The explainer’s headline use case: a results page whose links are real anchors with
windowfeatures="split,splitsize=50"— middle-click and the context menu still work — and the opened article tells the results list which one you are reading. -
Live preview through the handle
Advanced composition: an editor opens a named preview pane with
"popup=0,split,splitposition=right,splitsize=40", keeps the returned handle, streams edits withpostMessage, re-uses the pane by name, contrastssplit,noopener(handle isnull) and closes the split withhandle.close().
why it exists
Split tabs ship in Chrome, Edge, Firefox, Arc, Whale and Vivaldi, and the common reason to use one is “open this link next to what I am reading”: a search result next to the results page, a product next to the listing, a reference next to a tutorial, a live preview next to an editor, an assistant next to the page it is driving. The original Microsoft proposal used a new target="_split"; the reworked explainer moves the request into the extensible windowFeatures string so it can carry position and size hints, keeps the opener relationship intact (so previews and assistants can coordinate), and avoids colliding with frames already named _split.
Two privacy decisions shape every demo here: there is no navigator.splitTabSupported, and no event saying whether the split happened. Pages can detect API support ('windowFeatures' in HTMLAnchorElement.prototype) but never the outcome.
the API
| surface | values | meaning |
|---|---|---|
split | boolean | Request a split tab beside the opener. Wins over popup; falls back to a tab (or to the popup if both were given). |
splitposition | left right top bottom | Side for the new content. Ignored without split. |
splitsize | integer % | Share for the new content; invalid values ignored, Chromium clamps to 10–90. |
windowfeatures / windowFeatures | feature string | Content attribute + reflected IDL on a, area, form. |
// Split where supported, ordinary tab everywhere else:
const pane = window.open("/article", "_blank", "popup=0,split,splitsize=40");
pane?.postMessage({ hello: true }, location.origin); // opener is preserved
// Declarative (rel decides the opener; target="_blank" is implied):
<a href="/article" windowfeatures="split,splitposition=right">Read beside</a>
// API detection only — the outcome is never exposed:
const hasApi = "windowFeatures" in HTMLAnchorElement.prototype;
references
- ChromeStatus entry
- Explainer: Opening links in a split tab (author’s demo)
- WHATWG HTML issue #13153 · spec PR #13245
- Original Microsoft explainer (target="_split")
- WPT: open-features-split.tentative.html · declarative-windowfeatures.tentative.html
- HTML: checking if a popup window is requested
- TAG design review #1309
- crbug.com/570412924 — implementation tracking