JavaScript code snippet lists an inventory of items with names, types, and quantities, demonstrating `Object.groupBy()` functionality.
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 👇
developer.mozilla.org/en-US/docs/...
06.03.2026 16:00
👍 36
🔁 3
💬 0
📌 1
CSS container queries - CSS | MDN
Container queries enable you to apply styles to an element based on certain attributes of its container:
CSS Container Queries change everything for component-based design 📦
Style elements based on their parent's size, not just the viewport.
⋅ Use @container to scope styles
⋅ Works with inline-size, block-size, and style queries
Learn more 👇
developer.mozilla.org/en-US/docs/...
06.03.2026 07:00
👍 14
🔁 1
💬 0
📌 0
Are you still not using Iterator instance methods? ✨
They work like array methods — without creating intermediate arrays.
✨ map(), filter(), reduce()
✨ drop(), take(), flatMap()
Chain them on any iterator. Learn more 👇
developer.mozilla.org/en-US/docs/...
05.03.2026 12:00
👍 33
🔁 3
💬 0
📌 2
Dark code snippet card showing CSS example: "div { top: calc(100px * sign(var(--offset))); }" with title "sign() - MDN" on a blue gradient background.
sign() is Newly Available on Baseline ➖➕
Unlike abs(), which returns a magnitude, sign() returns the direction of a value: -1, 1, 0, or -0.
Useful when layout logic depends on whether a value is positive or negative.
Learn more here 👇
developer.mozilla.org/en-US/docs/...
04.03.2026 13:00
👍 24
🔁 2
💬 1
📌 0
Thanks for sharing, deleted. ✅
04.03.2026 09:23
👍 1
🔁 0
💬 0
📌 0
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.
🍪 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 👇
developer.mozilla.org/en-US/docs/...
03.03.2026 21:00
👍 46
🔁 9
💬 0
📌 2
Dark-themed code snippet showing URLPattern examples on MDN: two JavaScript blocks matching "/books" and "/books/:id" with console.log outputs.
🆕 The URL Pattern API is Newly Available!
Use it to match and extract parts of URLs, no need to reinvent routing logic. Supports literals, wildcards, named groups, and even regex constraints.
Learn how it works 👇
developer.mozilla.org/en-US/docs/...
27.02.2026 16:00
👍 54
🔁 6
💬 0
📌 1
A code snippet outlines the syntax for the CSS property "print-color-adjust," including various global value options.
Keep your designs looking perfect in print 🖨️
The print-color-adjust property controls whether browsers can optimize colors when printing. Set it to 'exact' to preserve your exact color scheme and prevent unwanted adjustments.
Learn more 👇
developer.mozilla.org/en-US/docs/...
27.02.2026 04:00
👍 23
🔁 1
💬 0
📌 1
Stylized dark code window showing a CSS rule using abs(var(--font-size)) to set h1 font-size, on a blue gradient background.
➕ 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 ↓
developer.mozilla.org/en-US/docs/...
26.02.2026 05:00
👍 19
🔁 0
💬 0
📌 0
🦊 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 👇
developer.mozilla.org/en-US/docs/...
25.02.2026 07:00
👍 26
🔁 3
💬 0
📌 0
📋 Need to check clipboard compatibility?
ClipboardItem.supports() lets you verify if a MIME type can be written to the clipboard before attempting the write - perfect for handling SVG images and custom formats gracefully.
Check it out 👇
developer.mozilla.org/en-US/docs/...
24.02.2026 21:00
👍 10
🔁 0
💬 0
📌 0
🎨 Meet rcap in CSS
The rcap unit represents the cap height of the root element's font - perfect for typography-based layouts that scale consistently.
Great for responsive designs that respect user font preferences.
Learn more here ↓
developer.mozilla.org/en-US/docs/...
23.02.2026 11:00
👍 31
🔁 4
💬 0
📌 3
Code snippet showcases how to use the scrollend event in JavaScript, highlighting syntax for adding event listeners.
Know when users finish scrolling 📜
The scrollend event fires when scrolling completes - after gestures end and scroll position stops updating. Perfect for lazy loading, analytics, or finalizing UI updates.
Learn how it works 👇
developer.mozilla.org/en-US/docs/...
20.02.2026 16:00
👍 34
🔁 2
💬 1
📌 0
CSS containment - CSS | MDN
The CSS containment module defines containment and container queries.
Optimize rendering with CSS Containment 📦
Isolate page subtrees from the rest of the DOM so browsers can optimize independently.
🚀 Better performance for large pages
🧩 Modular, reusable components
📐 Enables container queries
Learn more 👇
developer.mozilla.org/en-US/docs/...
19.02.2026 17:00
👍 11
🔁 0
💬 0
📌 0
The content-visibility: auto property defers rendering for off-screen elements, then automatically renders them when they come into view.
⚡ Faster initial loads
📜 Better scroll performance
♿ Preserves accessibility
Read more ↓
developer.mozilla.org/en-US/docs/...
19.02.2026 11:00
👍 23
🔁 2
💬 0
📌 0
Code snippet showcasing the syntax for Atomics.pause() with two variations: empty parentheses and parentheses with a duration hint.
Need efficient spinlocks in your multi-threaded code? 🔄
Atomics.pause() provides a micro-wait primitive that hints to the CPU you're spinning while waiting on shared resources. It reduces power consumption without yielding the thread.
Learn more here 👇
developer.mozilla.org/en-US/docs/...
17.02.2026 21:00
👍 13
🔁 0
💬 0
📌 0
Two layouts comparing link interaction options: a button for copying links versus an anchor link with additional context on MDN sections.
We're exploring ways to make it easier to share specific links to sections on MDN. Which interaction feels most natural to you?
Vote A, or B. 🗳️
17.02.2026 16:00
👍 8
🔁 0
💬 4
📌 0
A code snippet outlines the syntax for the CSS property "print-color-adjust," including various global value options.
Keep your designs looking perfect in print 🖨️
The print-color-adjust property controls whether browsers can optimize colors when printing. Set it to 'exact' to preserve your exact color scheme and prevent unwanted adjustments.
Learn more 👇
developer.mozilla.org/en-US/docs/...
17.02.2026 10:00
👍 18
🔁 2
💬 0
📌 1
AI is reshaping democracy whether we like it or not.
So let’s make sure it serves people.
The Democracy x AI Incubator is now open.
Deadline: March 16, 2026
https://bit.ly/406u4yj
15.02.2026 18:18
👍 14
🔁 7
💬 4
📌 0
Launching Interop 2026 – Mozilla Hacks - the Web developer blog
Interop 2025 brought a bunch of new web platform features & fixes, but here's what's coming in 2026…
Interop 2026 is here! 🌐
After boosting browser compatibility scores from 25 to 95 in 2025, Apple, Google, Igalia, Microsoft, and Mozilla tackle 20 new focus areas to improve web platform consistency.
Read more on what the focus is this year 👇
hacks.mozilla.org/2026/02/lau...
16.02.2026 11:00
👍 20
🔁 2
💬 1
📌 1
Launching Interop 2026 – Mozilla Hacks - the Web developer blog
Interop 2025 brought a bunch of new web platform features & fixes, but here's what's coming in 2026…
Interop 2026 is here! 🌐
After boosting browser compatibility scores from 25 to 95 in 2025, Apple, Google, Igalia, Microsoft, and Mozilla tackle 20 new focus areas to improve web platform consistency.
Read more on what the focus is this year 👇
hacks.mozilla.org/2026/02/lau...
13.02.2026 19:50
👍 19
🔁 1
💬 0
📌 0
Code snippet detailing CSS anchor-scope property values, including single, multiple, and global value examples for web development.
Using CSS Anchor Positioning with repeated components?
anchor-scope is now part of Baseline 2026 🆕
It prevents tooltips/popovers from accidentally attaching to the wrong anchor elsewhere in the DOM.
Check it out 👇
developer.mozilla.org/en-US/docs/...
13.02.2026 16:00
👍 24
🔁 2
💬 2
📌 1
HTMLDialogElement: requestClose() method - Web APIs | MDN
The requestClose() method of the HTMLDialogElement interface requests to close the <dialog>.
An optional string may be passed as an argument, updating the returnValue of the dialog.
Working with <dialog> elements? 🤔
Don't use .close(), it ends the dialog immediately.
Use HTMLDialogElement.requestClose(), it fires a close event first, giving your app a chance to intercept it, useful for confirmation or animations.
Try now 👇
developer.mozilla.org/en-US/docs/...
13.02.2026 04:00
👍 52
🔁 3
💬 0
📌 0
we agree 😸
12.02.2026 23:04
👍 0
🔁 0
💬 0
📌 0
CustomStateSet - Web APIs | MDN
The CustomStateSet interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set.
Newly Available: CustomStateSet ✅
What is it? 🤔
It’s a new API that lets developers define and manage custom states on HTML elements, enabling fine-grained styling and behavior control using the :state() CSS pseudo-class.
Start experimenting now 👇
developer.mozilla.org/en-US/docs/...
12.02.2026 05:00
👍 47
🔁 6
💬 1
📌 2
A colorful infographic titled “MDN HTTP Code Cheatsheet with Emojis.” It categorizes HTTP status codes using emoji-enhanced lists grouped by status code classes.
Ever wish HTTP status codes were easier to remember? 🖼️
Check out this MDN cheatsheet that pairs each status code with an emoji to help you visualize what each one means, from 200 OK ✅ to 418 I’m a teapot 🫖
Check it out 👇
11.02.2026 16:05
👍 10
🔁 2
💬 2
📌 0
Contribute to MDN
The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.
MDN is more than just a resource. It's a community of developers, contributors, and learners passionate about web development.
Contribute to,
📚 MDN documentation
🤝 Help other devs
💟 Localize content
📝 Review or write on MDN
Start now 👇
developer.mozilla.org/en-US/commu...
06.02.2026 16:00
👍 10
🔁 2
💬 0
📌 0