Nov 30, 2026 Β· @D7460N
AutoCSS keeps the presentation layer air-gapped from the data layer, so one modern, secure, fully W3C/WCAG Standards and 508 A11Y compliant UI can render and adapt to, and control many various back-ends.
Out-of-order HTML streaming lets the browser itself place delivered HTML into that UI, which moves more of the UI to one security approved CDN-served source.
AutoCSS canon states the aim: "not one project's UI but every project's at once β one presentation layer, served once, called remotely to render any back-end's data by that data's presence and shape alone" (AGENTS.md Β§1).
| Layer | Owns | Never holds |
|---|---|---|
| HTML | Semantic and HTML5 custom elements: structure only | Classes, ids, data-* , CSS, JS |
| CSS | Look/feel, state, visibility by data presence ( :not(:empty); ,:has()``; , container and style queries, light-dark()``; ) |
Data, JS |
| JS | Data transport (CRUD) through one oninput |
Presentation, HTML |
| Data (JSON today) | Values only | HTML, styling hints |
Because CSS reacts live in real-time to whatever arrives, the UI does not need to know which back-end sent it. That is the "one UI for many back-ends" goal.
Patching lets HTML arrive in any order and land in named spots in the page; the browser does the placing, not JS (article, Chrome blog).
<h1><?start name="h1">β¦<?end></h1>
<template for="h1">Home</template>
| Part | What it does | Shipped |
|---|---|---|
<?start name> β¦<?end> ,<?marker name> |
Named spots (processing instructions, formerly parsed as comments) | Chrome/Edge 150 ( webstatus ) |
<template for="name"> |
Replaces the named spot with its content; no JS | Chrome/Edge 150 |
<template for="name" src="url"> |
Fetches the content from a URL; no JS | Experimental flag only |
streamAppendHTMLUnsafe() and other streaming setters |
JS streams fetched HTML; its <template for> patches apply |
Chrome/Edge 157 ( webstatus ) |
A patch can carry new markers, so the same spot can be filled again. The article's single-page demo uses that to swap page content on each navigation (live demo). The safe streamAppendHTML() drops the templates, so the demo uses the Unsafe variant.
Firefox and Safari have not shipped it. WebKit's position is "support" (#628) and Mozilla's is "positive" (#1369). An earlier no-JS approach used Declarative Shadow DOM and <slot> (lamplightdev); AutoCSS bans both.
The CDN would carry everything shared, shell and CSS; each back-end would send only content, which the browser places and CSS reveals.
[embedded content: AutoCSS delivery map Β· CDN, back-ends, 4 page steps]
Steps 1 to 4 run the same way on every site; only the content in step 3 differs per back-end. The CDN shell is a ruling; the generator's location is open.
In headless Chrome 158, patching filled an AutoCSS-shaped page through load, view switch and back, and cut the data-mapping JS by about 87%.
| Test | Result |
|---|---|
<template for> fills a named spot |
β No JS; markers and template removed after |
:empty on an element holding only markers |
β True, so the CSS logic is unchanged |
Patch placed inside the <template> pool |
β Never applies; template content is inert |
<template for src> |
β οΈ Flag only; normal Chrome ignores src and wipes the placeholder |
| One patch file fills many spots | β
Limited to the target's container; a patch aimed at header frommain was blocked |
| View switch: load, switch, back | β Lists went 5 β 2 β 5 items; nav radios inside labels survived |
| One spot takes a different layout per view | β
p +p +ul βfigure +p ,index.html unchanged |
| Outer shell from another origin (CORS) | β Flag on: no JS, rendered with JS off. Normal Chrome: JS fallback |
| JSON as a patch source | β Never mapped; rejected or dumped as raw text |
| Data-mapping JS in the reference app | 3 files, 3,631 bytes β 1 file, 458 bytes |
contentEditable on a filled spot |
β Markers survived editing |
The method works today only in Chrome and Edge, and its data must be HTML, not JSON.
| Area | Finding | Status |
|---|---|---|
| Browsers | Chrome/Edge only; <template for src> still behind a flag |
Waiting on Firefox, Safari and the src launch |
| Data format | Patch files are HTML. JSON needs JS or a generator outside the page; the canon (Β§6) says data is JSON | Open ruling |
| Security | Unsafe without a sanitizer ran anonerror handler and let a<style> restyle the page. An allowlist Sanitizer stripped both but kept ajavascript: link. A CDN shell<script> ran on thesrc path |
Allowlist sanitizer + CSP; shell file holds no <script> |
| Attributes | src /alt cannot be patched onto existing elements; the data carries the whole<img> |
Open |
| Frameworks | JSX errors on markers; Vue errors and drops them; Angular drops them silently. AutoCSS CSS is unaffected | Framework apps keep their own data binding |
| Failure | A failed CDN fetch left a blank page | Pin with integrity , render-block with<link rel="expect"> (untested) |
| Fallback cost | A conditional import() keeps fallback code off supporting browsers, but hook J3 blocks it |
Open ruling |
Two rulings are recorded (Nov 30, 2026); the matching canon edits are drafted but not committed.
-
Central control of the outer shell from the CDN is better than per-site
index.html; the per-site HTML-contract rule is removed. -
HTML through JS is loosened for the shell:
<template for src>first, a JS fallback only where it is unsupported. -
Commit canon edits:
AGENTS.mdΒ§5 and Β§9,WHITELIST.mdJ,enforce.js,rules.json -
Architecture Test 5: original-vs-proposed screenshots and benchmark against
inject.js -
Rule on data format: HTML patch files, or JSON plus a generator
-
Find and test a Firefox and Safari path
-
How Out-Of-Order Streaming HTML Will Revolutionize The Web , Danny Moerkerke, ITNEXT, Nov 30, 2026
-
Declarative partial updates , Chrome for Developers, and itsphoto album demo source
-
WICG Declarative Partial Updates :patching explainer ,fragment include explainer
-
webstatus.dev:
<template for>,HTML streaming setters -
Standards positions: WebKit #628 ,Mozilla #1369
-
Out-of-Order HTML Streaming , Modern Web Guidance
-
Streaming HTML out of order without JavaScript , lamplightdev
-
AGENTS.md , AutoCSS canon, and theAutoCSS CDN