• Sign in
  • Sign up
Elektrine
EN
Log in Register
Modes
Overview Chat Timeline Communities Gallery Lists Friends Email Vault DNS VPN
Back to Timeline
  • Open on mastodon.social

MDN Web Docs

@mdn@mastodon.social
mastodon 4.6.0-nightly.2026-04-17

The official MDN Web Docs account. We deliver the best web docs around.

Visit → https://mdn.dev
Contribute → https://mdn.dev/community

0 Followers
0 Following
Joined March 08, 2018
Home:
https://developer.mozilla.org
GitHub:
https://github.com/mdn
Blog:
https://mdn.dev/blog
Discord:
https://mdn.dev/discord

Posts

Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · 2d ago

The <dialog> element handles modals the right way 🪟

Built-in focus trapping, backdrop styling, and Escape key handling. No more custom modal libraries.

⋅ .showModal() for modal dialogs
⋅ .show() for non-modal
⋅ ::backdrop for overlay styling

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog

View on mastodon.social
21
0
14
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · 3d ago

Build popovers without JavaScript 🎈

The Popover API lets you create tooltips, menus, and dialogs that manage their own visibility and light-dismiss — all declaratively.

> <button popovertarget="info">Help</button>
> <div id="info" popover>Content</div>

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/Popover_API

View on mastodon.social
Popover API - Web APIs | MDN
MDN Web Docs

Popover API - Web APIs | MDN

The Popover API provides developers with a standard, consistent, flexible mechanism for displaying popover content on top of other page content. Popover content can be controlled either using HTML att

6
0
8
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Apr 10, 2026

From 2-min dev server starts to 2s ⚡

We rewrote MDN's entire frontend, ditching the React SPA for Lit web components, server components, and Rspack. The result: less JS shipped, scoped CSS, and a build pipeline that just works.

Read how we did it 👇
https://developer.mozilla.org/en-US/blog/mdn-front-end-deep-dive/

View on mastodon.social
Under the hood of MDN's new frontend | MDN Blog
MDN Web Docs

Under the hood of MDN's new frontend | MDN Blog

You may have spotted that MDN has a new frontend. There's plenty happening under the surface, so let's unpack the technologies we chose, the architectural decisions we made, and why we did a rebuild a

70
0
35
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Apr 10, 2026

Did you know about Clear-Site-Data header? 👀

One HTTP header to clear cookies, storage, or cache for your site. Perfect for logout flows.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data

View on mastodon.social
Clear-Site-Data header - HTTP | MDN
MDN Web Docs

Clear-Site-Data header - HTTP | MDN

The HTTP Clear-Site-Data response header sends a signal to the client that it should remove all browsing data of certain types (cookies, storage, cache) associated with the requesting website. It allo

48
0
20
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Apr 09, 2026

Did you know about CSS image-set() ? 🤔

Let the browser pick the best image from a set based on resolution. Perfect for serving retina-ready backgrounds without JavaScript.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/image/image-set

View on mastodon.social
16
0
6
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Apr 08, 2026
Have you heard of CSS Subgrid? 🤔 A grid item can now pass its parent's grid lines to children, so nested elements align perfectly with the outer layout. No more hacky workarounds for aligned nested grids. Learn more 👇 https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Subgrid
View on mastodon.social
3
0
3
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Apr 01, 2026

🆕 Document.caretPositionFromPoint() is Newly Available!

Give it an (x, y) coordinate and get back the exact DOM node and character offset. Perfect for click-to-edit interfaces.

Check it out 👇
https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint

View on mastodon.social
Document: caretPositionFromPoint() method - Web APIs | MDN
MDN Web Docs

Document: caretPositionFromPoint() method - Web APIs | MDN

The caretPositionFromPoint() method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node.

8
0
3
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 30, 2026

Write layout-direction-agnostic CSS with logical properties 🔄

Use margin-inline, padding-block, and border-inline instead of top/right/bottom/left — your layout works in any writing direction.

⋅ RTL support for free
⋅ Cleaner vertical layout code
⋅ Baseline 2023 ✅

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values

View on mastodon.social
11
0
13
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 28, 2026

Read and write local files directly from the browser 📂

The File System Access API lets users open, edit, and save files on their device — no server required.

⋅ showOpenFilePicker() to open files
⋅ showSaveFilePicker() to save
⋅ Perfect for code editors, image tools, and local apps

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/File_System_API

View on mastodon.social
File System API - Web APIs | MDN
MDN Web Docs

File System API - Web APIs | MDN

The File System API — with extensions provided via the File System Access API to access files on the device file system — allows read, write and file management capabilities.

9
0
9
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 16, 2026

Read and write to the clipboard with the modern Clipboard API 📋

async/await, permission-aware, and way cleaner than execCommand.

⋅ Supports text, HTML, and images
⋅ Works in secure contexts (HTTPS)
⋅ No Flash. No hacks.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API

View on mastodon.social
Clipboard API - Web APIs | MDN
MDN Web Docs

Clipboard API - Web APIs | MDN

The Clipboard API provides the ability to respond to clipboard commands (cut, copy, and paste), as well as to asynchronously read from and write to the system clipboard.

5
0
3
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 16, 2026

🆕 CSS Anchor Positioning is Newly Available!

Position tooltips, dropdowns, and floating elements relative to any anchor — without JavaScript.

⋅ anchor-name on the reference element
⋅ position-anchor on the floating element
⋅ No more complex getBoundingClientRect() logic

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning

View on mastodon.social
8
0
4
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 15, 2026

Cancel fetch requests and async operations cleanly ✋

`AbortController` gives you a signal to pass to fetch(), event listeners, and other async APIs.

⋅ Use AbortSignal.timeout() for timeouts
⋅ Composable with AbortSignal.any()

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/AbortController

View on mastodon.social
AbortController - Web APIs | MDN
MDN Web Docs

AbortController - Web APIs | MDN

The AbortController interface represents a controller object that allows you to abort one or more Web requests as and when desired.

8
0
5
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 14, 2026

Generate cryptographically secure UUIDs in the browser 🔐

`crypto.randomUUID()` is built into the Web Crypto API, no npm package needed.

Works in all modern browsers and Node.js 14.17+.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID

View on mastodon.social
Crypto: randomUUID() method - Web APIs | MDN
MDN Web Docs

Crypto: randomUUID() method - Web APIs | MDN

The randomUUID() method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.

12
0
4
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 14, 2026

🆕 The Popover API is Baseline, no JavaScript needed

Tooltips, dropdowns, and menus with just HTML attributes.

⋅ popover attribute on any element
⋅ popovertarget to wire the trigger
⋅ Accessible by default, no ARIA hacks

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/Popover_API

View on mastodon.social
Popover API - Web APIs | MDN
MDN Web Docs

Popover API - Web APIs | MDN

The Popover API provides developers with a standard, consistent, flexible mechanism for displaying popover content on top of other page content. Popover content can be controlled either using HTML att

38
0
28
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 13, 2026

Better error chaining is finally in JavaScript 🔗

`Error.cause` lets you attach the original error when rethrowing, keeping full context without losing the stack.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause

View on mastodon.social
Error: cause - JavaScript | MDN
MDN Web Docs

Error: cause - JavaScript | MDN

The cause data property of an Error instance indicates the specific original cause of the error.

12
0
2
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 13, 2026

Eliminate awkward text wrapping with one CSS property 📝

text-wrap: balance distributes text evenly across lines — no more single-word orphans in headings.

⋅ Perfect for headlines and cards
⋅ Zero JavaScript needed
⋅ Widely supported ✅

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap

View on mastodon.social
11
0
6
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 12, 2026

Keep the screen on with the Screen Wake Lock API 🔒

Prevent devices from sleeping during active tasks, like video playback, presentations, or navigation.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API

View on mastodon.social
Screen Wake Lock API - Web APIs | MDN
MDN Web Docs

Screen Wake Lock API - Web APIs | MDN

The Screen Wake Lock API provides a way to prevent devices from dimming or locking the screen when an application needs to keep running.

12
0
7
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 12, 2026

Need the last matching item in an array? 🔍

`findLast()` and `findLastIndex()` search from the end, no more reversing arrays just to find the last match.

const lastActive = users.findLast(u => u.active);

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast

View on mastodon.social
Array.prototype.findLast() - JavaScript | MDN
MDN Web Docs

Array.prototype.findLast() - JavaScript | MDN

The findLast() method of Array instances iterates the array in reverse order and returns the value of the first element that satisfies the provided testing function. If no elements satisfy the testing

8
0
4
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 11, 2026

Mix colors directly in CSS with color-mix() 🎨

Blend two colors in any color space, no JavaScript or preprocessors needed.

color-mix(in oklch, red 30%, blue)
Supports sRGB, HSL, HWB, LCH, OKLCH, and more.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-mix

View on mastodon.social
5
0
2
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 11, 2026

🆕 Document.caretPositionFromPoint() is Newly Available!

Give it an (x, y) coordinate and get back the exact DOM node and character offset. Perfect for click-to-edit interfaces.

Check it out 👇
https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint

View on mastodon.social
Document: caretPositionFromPoint() method - Web APIs | MDN
MDN Web Docs

Document: caretPositionFromPoint() method - Web APIs | MDN

The caretPositionFromPoint() method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node.

18
0
10
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 10, 2026

Lazy loading? Infinite scroll? Scroll animations?
Meet IntersectionObserver 👋

React when elements enter or leave the viewport, no scroll event listeners.

⋅ Built-in debouncing
⋅ Works off the main thread
⋅ No performance overhead

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

View on mastodon.social
Intersection Observer API - Web APIs | MDN
MDN Web Docs

Intersection Observer API - Web APIs | MDN

The Intersection Observer API provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.

7
0
4
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 10, 2026

CSS Cascade Layers give you real control over specificity ⚡

Use @layer to define the order your styles are applied, no more specificity wars.

⋅ Base → components → utilities, in that order
⋅ Third-party styles? Layer them too

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/@layer

View on mastodon.social
3
0
3
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 09, 2026
Meet Selection.getComposedRanges() 🆕 Unlike getRangeAt(), it returns selection ranges across Shadow DOM boundaries, essential for modern web components. Since August 2025, this feature is Baseline. Learn how it works 👇 https://developer.mozilla.org/en-US/docs/Web/API/Selection/getComposedRanges
View on mastodon.social
5
0
0
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 09, 2026
🚀 Firefox 148 brings DOM & API Enhancements 📍 Location.ancestorOrigins 🖱️ pointerrawupdate 🧭 Navigation API: addHandler() 📋 execCommand('paste') Full Release notes 👇 https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/148
View on mastodon.social
3
0
2
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 08, 2026

Creating a resolvable Promise just got cleaner 🧹

`Promise.withResolvers()` returns { promise, resolve, reject }
No more wrapping logic inside the constructor.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers

View on mastodon.social
Promise.withResolvers() - JavaScript | MDN
MDN Web Docs

Promise.withResolvers() - JavaScript | MDN

The Promise.withResolvers() static method returns an object containing a new Promise object and two functions to resolve or reject it, corresponding to the two parameters passed to the executor of the

9
0
8
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 07, 2026

JavaScript now has non-mutating array methods ✨

`toSorted()`, `toReversed()`, `toSpliced()`, and `with()` return new arrays instead of modifying the original.

No more [...arr].sort() to avoid side effects.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted

View on mastodon.social
Array.prototype.toSorted() - JavaScript | MDN
MDN Web Docs

Array.prototype.toSorted() - JavaScript | MDN

The toSorted() method of Array instances is the copying version of the sort() method. It returns a new array with the elements sorted in ascending order.

17
0
7
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 07, 2026

CSS :has() is the parent selector we’ve always wanted 🎯

Target elements based on what they contain, not just their own state.
⋅ Style a form when it has an error input
⋅ Add spacing to any element with children
⋅ Combine with :not()

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/:has

View on mastodon.social
9
0
6
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 06, 2026

Stop writing reduce() just to group an array ✋

`Object.groupBy()` works on all major browsers, helping you group array elements by any key in one line.

Clean, readable, no dependencies.

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy

View on mastodon.social
Object.groupBy() - JavaScript | MDN
MDN Web Docs

Object.groupBy() - JavaScript | MDN

The Object.groupBy() static method groups the elements of a given iterable according to the string values returned by a provided callback function. The returned object has separate properties for each

17
0
14
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 06, 2026

CSS Container Queries change everything for component-based design 📦

Style elements based on their parent's size, not just the viewport.

⋅ Use @container@mastodon.social to scope styles
⋅ Works with inline-size, block-size, and style queries

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries

View on mastodon.social
mastodon.social

container (@container@mastodon.social) - Mastodon

5
0
4
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Mar 03, 2026

🍪 CookieStore API offers a modern, promise-based way to read, write, update, and delete cookies, all without parsing strings manually.

It brings,
✅ Async operations
✅ Structured data
✅ Service worker support

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/API/CookieStore

View on mastodon.social
CookieStore - Web APIs | MDN
MDN Web Docs

CookieStore - Web APIs | MDN

The CookieStore interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker.

3
0
3
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Feb 26, 2026
🔒 Firefox 148: JavaScript Security & RegExp Updates 🛡️ Trusted Types API is now supported! This helps prevent XSS attacks by ensuring dangerous functions only accept validated data. 📝 RegExp legacy features updated: RegExp.$1-$9 and RegExp.input are now configurable and deletable. Plus, stricter compile() method behavior. https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/148
View on mastodon.social
4
0
1
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Feb 26, 2026
➕ Meet abs() in CSS The abs() function returns the absolute value of a calculation, keeping numbers, lengths, or percentages always positive. Useful for safer layouts and predictable visuals. Learn more here ↓ https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/abs
View on mastodon.social
4
0
3
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Feb 25, 2026
🦊 Firefox 148 is here with exciting updates for web developers! ✨ Key highlights: • Synchronous about:blank loading • CSS shape() function • Iterator.zip() methods • Trusted Types API • Enhanced anchor positioning Full release notes 👇 https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/148
View on mastodon.social
6
0
7
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Feb 20, 2026
Safely embed user input in regex patterns 🔐 RegExp.escape() escapes regex syntax characters in a string, so you can use user-provided text as a literal pattern. Prevents unexpected regex behavior and security issues when dynamically creating RegExp patterns. Learn more here 👇 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/escape
View on mastodon.social
4
0
1
0
Open post
mdn
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
MDN Web Docs
MDN Web Docs
@mdn@mastodon.social

The official MDN Web Docs account. We deliver the best web docs around. Visit → https:// mdn.dev Contribute → https:// mdn.dev/community

mastodon.social
@mdn@mastodon.social · Jul 24, 2025

MDN is 20 years old! 🥳

🙏 A huge thank you to...
The devs who read and trust MDN
The contributors who improve it
Everyone working on the web platform who shares our mission.

Here's how we celebrated with the web.dev team! 🧁
https://developer.mozilla.org/en-US/blog/mdn-turns-20/

View on mastodon.social
Celebrating 20 years of MDN | MDN Blog
MDN Web Docs

Celebrating 20 years of MDN | MDN Blog

MDN turns 20! Let's look at how we started, how MDN became the most trusted resource for web developers, the impact it's had on the open web, and yes, there's cake, too.

158
0
112
0

Media

313k7r1n3

Company

  • About
  • Contact
  • FAQ

Legal

  • Terms of Service
  • Privacy Policy
  • VPN Policy

Email Settings

IMAP: mail.elektrine.com:993

POP3: pop3.elektrine.com:995

SMTP: mail.elektrine.com:465

SSL/TLS required

Support

  • support@elektrine.com
  • Report Security Issue

Connect

Tor Hidden Service

khav7sdajxu6om3arvglevskg2vwuy7luyjcwfwg6xnkd7qtskr2vhad.onion
© 2026 Elektrine. All rights reserved. • Server: 07:43:12 UTC