MDN Web Docs
@developer.mozilla.org
1.5K followers 10 following 240 posts
The official MDN Web Docs account, now on Bluesky. We deliver the best web docs around. Visit → https://mdn.dev Contribute → https://mdn.dev/community
Posts Media Videos Starter Packs
developer.mozilla.org
Thank you so much! 🙌
developer.mozilla.org
Help us make MDN even better for you! 📣

We’re running a short survey to understand how developers use MDN in their day-to-day work and learning.

⏱️ Takes ~10 minutes
✅ All questions optional
🔒 Responses are anonymous

Take the survey 📝
survey.alchemer.com/s3/8409929/...
survey.alchemer.com
developer.mozilla.org
Margin? Border? Padding? Content? 💅

The CSS box model is the foundation of layout, and MDN’s interactive exercises help you truly understand how it all fits together.

💡 Practice live in your browser
developer.mozilla.org/en-US/docs/...
Test your skills: The box model - Learn web development | MDN
The aim of this skill test is to help you assess whether you understand the CSS box model.
developer.mozilla.org
developer.mozilla.org
🕵️‍♂️ The User-Agent HTTP header tells the server what client is making the request, like browser, OS, and rendering engine.

It helps servers:
✅ Serve browser-specific content
✅ Log usage patterns
❌ But can also be a source of fingerprinting

Read more 👇
developer.mozilla.org/en-US/docs/...
User-Agent header - HTTP | MDN
The HTTP User-Agent request header is a characteristic string that lets servers and network peers identify the application, operating system, vendor, and/or version of the requesting user agent.
developer.mozilla.org
developer.mozilla.org
Style text selections with ::highlight!

The ::highlight pseudo-element lets you customize how text highlights appear. Not just for user selection (::selection), but also for custom highlights created via the Highlight API

Learn more 👇
developer.mozilla.org/en-US/docs/...
developer.mozilla.org
🕵️‍♂️ The User-Agent HTTP header tells the server what client is making the request, like browser, OS, and rendering engine.

It helps servers:
✅ Serve browser-specific content
✅ Log usage patterns
❌ But can also be a source of fingerprinting

Read more 👇
developer.mozilla.org/en-US/docs/...
User-Agent header - HTTP | MDN
The HTTP User-Agent request header is a characteristic string that lets servers and network peers identify the application, operating system, vendor, and/or version of the requesting user agent.
developer.mozilla.org
developer.mozilla.org
What does the k1 attribute do in SVG? 🌀

The k1 attribute is used with the filter element in SVG to apply convolution effects. It’s part of the kernel matrix that defines how pixels are transformed.

Learn more 👇
developer.mozilla.org/en-US/docs/...
k1 - SVG | MDN
The k1 attribute defines one of the values to be used within the arithmetic operation of the <feComposite> filter primitive.
developer.mozilla.org
developer.mozilla.org
🧪 Thinking of using fetch() streams to track upload/download progress?

@jakearchibald.com shares more, and how could limit future browser optimizations.

✅ Streams = Great for parallel processing
❌ Streams ≠ Reliable for measuring up/down %

Read more 👇
jakearchibald.com/2025/fetch-...
Fetch streams are great, but not for measuring upload/download progress
They're inaccurate, and there are better ways.
jakearchibald.com
developer.mozilla.org
Guide assistive tech with aria-orientation 🧭

The aria-orientation attribute helps screen readers and other assistive tech understand how a UI component is laid out, horizontal or vertical, with widgets like
↕️ Sliders
↔️ Tabs
🔼 Treeviews

Read more 👇
developer.mozilla.org/en-US/docs/...
ARIA: aria-orientation attribute - ARIA | MDN
The aria-orientation attribute indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
developer.mozilla.org
developer.mozilla.org
Tired of hacking together deep copies with JSON.parse(JSON.stringify(...))? 🔁

The structuredClone() method lets you safely clone complex JavaScript objects.
No data loss. No surprises. Just clean, reliable cloning.

Learn more 👇
developer.mozilla.org/en-US/docs/...
Window: structuredClone() method - Web APIs | MDN
The structuredClone() method of the Window interface creates a deep clone of a given value using the structured clone algorithm.
developer.mozilla.org
developer.mozilla.org
We’d love your feedback! 📣

Take our quick 1–2 minute survey on using ReadableStream as a request body with the Fetch API.

Your input helps shape browser support and prioritize real-world use cases.

Share your thoughts 📝
survey.alchemer.com/s3/8460326/...
survey.alchemer.com
Reposted by MDN Web Docs
mozilla.org
🚨 Schedule drop 🚨
Mozilla Festival 2025 is live: 240+ sessions, film fest, youth-led forums, tech + art.
📅 Nov 7–9 | Barcelona
Join us: bit.ly/3K6gmqx
#MozFest
Reposted by MDN Web Docs
jakearchibald.com
📝 Fetch streams are great, but contrary to popular belief, they're not good for measuring upload/downloading progress.

⬇️ Here's why, and how to avoid the gotchas ⬇️

jakearchibald.com/2025/fetch-s...
Fetch streams are great, but not for measuring upload/downloading progress
They're inaccurate, and there are better ways.
jakearchibald.com
Reposted by MDN Web Docs
pran.sh
Have thoughts on using ReadableStream as a request body in fetch()?

We're running a quick survey (1–2 mins) to gauge interest, it'll help shape what browser folks prioritize next.

If you care about streaming uploads or fetch, this is for you 👇
survey.alchemer.com/s3/8460326/...
survey.alchemer.com
Reposted by MDN Web Docs
mozilla.ai
We're excited to announce that our ML Systems Engineer Raz Besaleli, and Head of AI Engineering Irina Vidal Migallón will speak at the DataFest Tbilisi (Nov 27–29)!

Raz on lessons from systems engineering for resilient AI, and Irina on key risks when working with AI.

More info: www.datafest.ge
DataFest Tbilisi 2025
www.datafest.ge
Reposted by MDN Web Docs
firefox.com
Firefox 143 is here, check out what's new:

✔️ Drag tabs to pin them. Simple, effective.
✔️ Camera preview in permission dialog. No more guesswork.
✔️ Stronger Fingerprinting Protection.
✔️ Smarter Private Browsing downloads (decide to keep or auto-delete).

www.firefox.com/en-US/firefo...
Firefox 143.0, See All New Features, Updates and Fixes
www.firefox.com
Reposted by MDN Web Docs
mozilla.org
Last chance to apply ⚡
mozilla.org
Applications are now open for our Creative Futures Counterstructures Residency✨

This 10-week cultural residency is for artists + technologists looking to re-imagine and prototype the possibilities of ethical AI systems.

San Francisco📍
Apply by Sept 17✨
www.mozillafoundation.org/en/creative-...
Creative Futures Counterstructures | Mozilla Foundation
Creative Futures Counterstructures (CFC) is Mozilla Foundation’s 10-week cultural R&D residency where creative technologists and communities come together to imagine, test, and build alternative tech ...
www.mozillafoundation.org
developer.mozilla.org
Need your numbers to line up? Or prefer old-school serif-style numerals?

CSS has a property for that: font-variant-numeric
// font-variant-numeric: tabular-nums;

✅ Tabular vs proportional
✅ Lining vs oldstyle
✅ Even supports slashed zero

Read more 👇
developer.mozilla.org/en-US/docs/...
font-variant-numeric - CSS | MDN
The font-variant-numeric CSS property controls the usage of alternate glyphs for numbers, fractions, and ordinal markers.
developer.mozilla.org
developer.mozilla.org
Need to watch for DOM changes without running expensive polling logic?

Use a MutationObserver, it tracks changes to elements in real time.
✅ Efficient
✅ Native
✅ Great for components that react to dynamic content

How it works + what to observe 👇
developer.mozilla.org/en-US/docs/...
MutationObserver - Web APIs | MDN
The MutationObserver interface provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature, which was part of the DOM3 Events specification.
developer.mozilla.org
developer.mozilla.org
Simple, native, reliable. 📌

Relative URLs can be weird, but the URL API makes resolving them super clean.
🚫 Not string concat
✅ Real path resolution
📎 new URL() throws on bad input
📎 URL.parse() returns null instead

Here's a breakdown 👇
developer.mozilla.org/en-US/docs/...
Resolving relative references to a URL - Web APIs | MDN
The URL() constructor or the URL.parse() static method of the URL API can be used to resolve a relative reference and a base URL to an absolute URL.
developer.mozilla.org
developer.mozilla.org
Did you share your opinion yet? 🤔

We're running a short survey (1–2 min) to understand interest in using ReadableStream as a request body in the Fetch API.

Help us guide implementation priorities.

Fill up the survey! 👇
survey.alchemer.com/s3/8460326/...
Code snippet showing how to use a ReadableStream as a request body with the Fetch API. The code example sends a POST request to the /upload endpoint using fetch(), with a readableStream as the body and duplex: 'half' included in the options to enable streaming.