MDN Web Docs

6K posts

MDN Web Docs banner
MDN Web Docs

MDN Web Docs

@MozDevNet

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

Worldwide Katılım Mart 2013
930 Takip Edilen48.4K Takipçiler
Sabitlenmiş Tweet
MDN Web Docs
MDN Web Docs@MozDevNet·
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! 🧁 developer.mozilla.org/en-US/blog/mdn…
English
8
66
288
19.1K
MDN Web Docs
MDN Web Docs@MozDevNet·
@RuhuTw Hi, we're glad this reached you! 👋 This is indeed, the official MDN Web Docs account. ✨
English
0
0
0
20
ruhu
ruhu@RuhuTw·
指定座標のテキスト位置を取得するメソッド。 どこで使えばいいのかわかりませんが、クリックしたところに改行を挿入するサンプルが置いてあります。 こういう英語の情報はほとんど流れてこなかったのですが、自動翻訳機能によって流れてくるようになりましたね。 MDN 公式のアカウントでしょうか?
MDN Web Docs@MozDevNet

🆕 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 👇 developer.mozilla.org/en-US/docs/Web…

日本語
1
0
0
44
MDN Web Docs
MDN Web Docs@MozDevNet·
🆕 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 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
0
19
145
5.9K
MDN Web Docs
MDN Web Docs@MozDevNet·
Creating a resolvable Promise just got cleaner 🧹 `Promise.withResolvers()` returns { promise, resolve, reject } No more wrapping logic inside the constructor. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
1
20
178
6.4K
MDN Web Docs
MDN Web Docs@MozDevNet·
CSS nesting is now Baseline 🎉 Write nested selectors directly in CSS — just like Sass, but natively. .card { color: black; &:hover { color: blue; } .title { font-weight: bold; } } No preprocessor needed. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
English
35
179
1.6K
66.8K
MDN Web Docs
MDN Web Docs@MozDevNet·
CSS subgrid solves the hardest grid alignment problems 🏗️ Child elements can participate in the parent grid — aligning across components without hacks. grid-template-columns: subgrid; grid-template-rows: subgrid; Baseline 2023 ✅ Learn more 👇 developer.mozilla.org/en-US/docs/Web…
English
1
8
113
3.9K
MDN Web Docs
MDN Web Docs@MozDevNet·
Access array elements from the end with .at() 🎯 arr.at(-1) returns the last element — clean, readable, works on all array-like structures. const last = [1, 2, 3].at(-1); // 3 No more arr[arr.length - 1] everywhere. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
English
2
7
90
2.9K
MDN Web Docs
MDN Web Docs@MozDevNet·
Style native form controls with just one CSS property 🎨 accent-color sets the tint color for checkboxes, radio buttons, range inputs, and progress bars. No custom checkbox hacks. Just CSS. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
English
3
10
55
2.9K
MDN Web Docs
MDN Web Docs@MozDevNet·
Compress and decompress data in the browser natively 📦 The Compression Streams API brings gzip and deflate to the web, no libraries needed. ⋅ Works with ReadableStream and WritableStream ⋅ Compresses arbitrary data client-side Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
4
32
345
10.4K
MDN Web Docs
MDN Web Docs@MozDevNet·
Build smooth scroll experiences with CSS scroll snap 📜 Snap scrollable containers to specific positions — carousels, galleries, and paginated views with zero JavaScript. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
English
2
9
69
2.9K
MDN Web Docs
MDN Web Docs@MozDevNet·
Hold object references without preventing garbage collection 🗑️ `WeakRef` lets you reference an object while allowing it to be GC’d if nothing else holds a strong reference. Use for caches, and pair with FinalizationRegistry. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
3
10
172
6.7K
MDN Web Docs
MDN Web Docs@MozDevNet·
Measure your own code performance precisely ⏱️ `performance.mark()` and `performance.measure()` let you instrument JavaScript with high-precision timings. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
0
24
218
6.8K
MDN Web Docs
MDN Web Docs@MozDevNet·
Creating a resolvable Promise just got cleaner 🧹 `Promise.withResolvers()` returns { promise, resolve, reject } No more wrapping logic inside the constructor. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
2
19
257
11.6K
MDN Web Docs
MDN Web Docs@MozDevNet·
Run non-critical work without blocking the UI 💤 `requestIdleCallback()` schedules tasks during browser idle time. ⚠️ Limited Availability ⋅ Runs only when the main thread is free ⋅ Great for analytics, prefetching, and cleanup Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
1
15
214
8.9K
MDN Web Docs
MDN Web Docs@MozDevNet·
Create frosted glass effects in CSS 🪟 backdrop-filter applies visual effects to the content behind an element — blur, brightness, contrast, and more. backdrop-filter: blur(10px) brightness(0.9); No JavaScript. No canvas tricks. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
2
14
233
8.6K
MDN Web Docs
MDN Web Docs@MozDevNet·
Wait for all promises, even the failing ones 🔄 `Promise.allSettled()` waits for every promise to finish, success or failure. ⋅ Returns { status: 'fulfilled', value } or { status: 'rejected', reason } ⋅ Perfect for batch operations Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
1
7
138
4K
MDN Web Docs
MDN Web Docs@MozDevNet·
Stop scroll chaining with overscroll-behavior 🛑 Prevent modals and sidebars from accidentally scrolling the page behind them. ⋅ Works on any scrollable element ⋅ Also controls the bounce effect on mobile Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
0
14
184
6.1K
MDN Web Docs
MDN Web Docs@MozDevNet·
🆕 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/Web…
MDN Web Docs tweet media
English
0
22
199
5.7K
MDN Web Docs
MDN Web Docs@MozDevNet·
📬 Check own properties safely with Object.hasOwn() A safer alternative to hasOwnProperty, works even on objects with a null prototype. Baseline since 2022 ✅ Learn more 👇 developer.mozilla.org/en-US/docs/Web…
MDN Web Docs tweet media
English
1
11
145
4.7K