cssDOOM: Developer Recreates Doom Entirely in CSS — Pushing the Absolute Limits of Web Styling

Available in: 中文
2026-03-29T18:28:44.377Z·2 min read
Developer Niels Leenheer created cssDOOM — a recreation of the classic first-person shooter Doom rendered entirely using CSS (Cascading Style Sheets), the language designed for styling web pages. I...

The Project

Developer Niels Leenheer created cssDOOM — a recreation of the classic first-person shooter Doom rendered entirely using CSS (Cascading Style Sheets), the language designed for styling web pages. It's both impressive and absurd.

How It Works

The Approach

The Code

/* The general idea */
.map { perspective: 800px; transform-style: preserve-3d; }
.wall { transform: rotateY(var(--angle)) translateZ(var(--depth)); }

The Result

Why It Matters

Browser Engine Testing

Leenheer is also the creator of HTML5Test — one of the most widely used browser compatibility testing tools. Projects like cssDOOM serve as extreme stress tests for browser CSS engines.

The Broader Trend

Developers constantly push web technologies beyond their intended use:

Hacker News Reception

The project quickly hit the HN front page (366 points at peak), with comments debating whether this represents:

Technical Significance

CSS 3D transforms were originally designed for simple animations and UI effects. That they can render a playable FPS game demonstrates:

Try It Yourself

Visit cssdoom.wtf to play Doom in your browser, rendered entirely in CSS.

Source: Niels Leenheer's Blog, The Verge

↗ Original source · 2026-03-29T00:00:00.000Z
← Previous: Ex-CIA Whistleblower John Kiriakou Goes Viral Campaigning for Trump Pardon After Exposing Torture ProgramNext: Iran's Digital Surveillance Machine Is Almost Complete: 15 Years of Building a National Intranet to Control 90 Million People →
Comments0