Skip to content

Commit 942bbbe

Browse files
chore: convert broken noteblocks (mdn#35151)
* chores: convert noteblocks * Some more * One more --------- Co-authored-by: Joshua Chen <[email protected]>
1 parent ea30ec3 commit 942bbbe

File tree

8 files changed

+17
-9
lines changed
  • files/en-us
    • games/tutorials/2d_breakout_game_pure_javascript/finishing_up
    • mozilla
      • add-ons/webextensions/interact_with_the_clipboard
      • firefox/releases/4
    • web

8 files changed

+17
-9
lines changed

files/en-us/games/tutorials/2d_breakout_game_pure_javascript/finishing_up/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ document.getElementById("runButton").addEventListener("click", function () {
291291

292292
{{embedlivesample("compare_your_code", 600, 360)}}
293293

294-
> **Note:**: Try changing the number of lives and the angle the ball bounces off the paddle.
294+
> [!NOTE]
295+
> Try changing the number of lives and the angle the ball bounces off the paddle.
295296
296297
## Game over - for now!
297298

files/en-us/mozilla/add-ons/webextensions/interact_with_the_clipboard/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Depending on the browser, this may not work. On Firefox, it will not work, and y
108108

109109
To enable this use case, you need to ask for the `"clipboardWrite"` [permission](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions). So: `"clipboardWrite"` enables you to write to the clipboard outside a short-lived event handler for a user action.
110110

111-
> **Note:**{{domxref("Document.execCommand", "document.execCommand()")}} does not work on input fields of `type="hidden"`, with the HTML5 attribute `"hidden"`, or any matching CSS rule using `"display: none;"`. So, to add a "copy to clipboard" button to a `span`, `div`, or `p` tag, you need to use a workaround, such as setting the input's position to absolute and moving it out of the viewport.
111+
> **Note:** {{domxref("Document.execCommand", "document.execCommand()")}} does not work on input fields of `type="hidden"`, with the HTML5 attribute `"hidden"`, or any matching CSS rule using `"display: none;"`. So, to add a "copy to clipboard" button to a `span`, `div`, or `p` tag, you need to use a workaround, such as setting the input's position to absolute and moving it out of the viewport.
112112
113113
### Browser-specific considerations
114114

files/en-us/mozilla/firefox/releases/4/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ For an overview of the changes implemented in JavaScript 1.8.5, see [New in Java
319319
- [Using the Web Console](https://firefox-source-docs.mozilla.org/devtools-user/web_console/index.html)
320320
- : The Web Console tool is a useful debugging aid for web developers and extension developers alike.
321321

322-
> **Note:**The Error Console is disabled by default starting in Gecko 2.0. You can re-enable it by changing the `devtools.errorconsole.enabled` preference to `true` and restarting the browser.
322+
> [!NOTE]
323+
> The Error Console is disabled by default starting in Gecko 2.0. You can re-enable it by changing the `devtools.errorconsole.enabled` preference to `true` and restarting the browser.
323324
324325
## Changes for Mozilla and add-on developers
325326

files/en-us/web/api/fedcm_api/idp_integration/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ This includes the following information:
149149
- `login_hints` {{optional_inline}}
150150
- : An array of strings representing the account. These strings are used to filter the list of account options that the browser offers for the user to sign-in. This occurs when the `loginHint` property is provided within [`identity.providers`](/en-US/docs/Web/API/CredentialsContainer/get#providers_2) in a related `get()` call. Any account with a string in its `login_hints` array that matches the provided `loginHint` is included.
151151

152-
> **Note:**: If the user is not signed in to any IdP accounts, the endpoint should respond with [HTTP 401 (Unauthorized)](/en-US/docs/Web/HTTP/Status/401).
152+
> [!NOTE]
153+
> If the user is not signed in to any IdP accounts, the endpoint should respond with [HTTP 401 (Unauthorized)](/en-US/docs/Web/HTTP/Status/401).
153154
154155
### The client metadata endpoint
155156

files/en-us/web/api/gpudevice/createrenderpipeline/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ The `depthStencil` object can contain the following properties:
8888

8989
If omitted, `depthFailOp` defaults to `"keep"`.
9090

91-
> **Note:**: The render state stencil value is initialized to 0 at the start of a render pass.
91+
> [!NOTE]
92+
> The render state stencil value is initialized to 0 at the start of a render pass.
9293
9394
- `failOp` {{optional_inline}}
9495
- : An enumerated value specifying the stencil operation performed if the fragment stencil comparison test described by `compare` fails. Possible and default values are the same as for `depthFailOp`.

files/en-us/web/api/window/postmessage/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ postMessage(message, options)
3232
- : Data to be dispatched to the other window. The data is serialized using the {{domxref("Web_Workers_API/Structured_clone_algorithm", "structured clone algorithm", "", 1)}}. This means you can pass a broad variety of data objects safely to the destination window without having to serialize them yourself.
3333
- `targetOrigin` {{optional_Inline}}
3434
- : Specifies the [origin](/en-US/docs/Glossary/Origin) the recipient window must have in order to receive the event. In order for the event to be dispatched, the origin must match exactly (including scheme, hostname, and port). If omitted, then defaults to the origin that is calling the method. This mechanism provides control over where messages are sent; for example, if `postMessage()` was used to transmit a password, it would be absolutely critical that this argument be a URI whose origin is the same as the intended receiver of the message containing the password, to prevent interception of the password by a malicious third party. `*` may also be provided, which means the message can be dispatched to a listener with any origin.
35-
> **Note:** Always provide a specific `targetOrigin`, not `*`, if you know where the other window's document should be located. Failing to provide a specific target could disclose data to a malicious site.
35+
> [!NOTE]
36+
> Always provide a specific `targetOrigin`, not `*`, if you know where the other window's document should be located. Failing to provide a specific target could disclose data to a malicious site.
3637
- `transfer` {{optional_inline}}
3738
- : An optional [array](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) of [transferable objects](/en-US/docs/Web/API/Web_Workers_API/Transferable_objects) to transfer ownership of. The ownership of these objects is given to the destination side and they are no longer usable on the sending side. These transferable objects should be attached to the message; otherwise they would be moved but not actually accessible on the receiving end.
3839
- `options` {{optional_inline}}

files/en-us/web/manifest/display/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ The value of the `display` member is a string. The possible values include `full
2323

2424
- : Opens the app with browser UI elements hidden and uses the entirety of the available display area. Use this value for apps where fullscreen engagement is crucial and desired. For example, use it for a game app that can take up the entire screen without any browser controls visible, providing a fully immersive gaming experience.
2525

26-
**Note:** The `fullscreen` value of the manifest's `display` member works separately from the [Fullscreen API](/en-US/docs/Web/API/Fullscreen_API). The `fullscreen` display mode changes the state of the entire browser window to full screen, while the Fullscreen API only makes a specific element within the window go full screen. Therefore, a web app can be in `fullscreen` display mode while {{DOMxRef("Document.fullscreenElement")}} is `null` and {{DOMxRef("Document.fullscreenEnabled")}} is `false`.
26+
> [!NOTE]
27+
> The `fullscreen` value of the manifest's `display` member works separately from the [Fullscreen API](/en-US/docs/Web/API/Fullscreen_API). The `fullscreen` display mode changes the state of the entire browser window to full screen, while the Fullscreen API only makes a specific element within the window go full screen. Therefore, a web app can be in `fullscreen` display mode while {{DOMxRef("Document.fullscreenElement")}} is `null` and {{DOMxRef("Document.fullscreenEnabled")}} is `false`.
2728
2829
- `standalone`
2930

@@ -42,7 +43,8 @@ After a browser applies a `display` mode to an {{Glossary("application context")
4243

4344
Use the {{cssxref("@media/display-mode", "display-mode")}} media feature to determine the current `display` mode applied by the browser, which is useful for ensuring your app behaves as expected in different display contexts. Additionally, the `display-mode` media feature allows you to adjust your app's styles based on the `display` mode currently being used. This can help provide a consistent user experience regardless of whether the website is launched from a URL or from a desktop icon.
4445

45-
**Note:** The value of the `display-mode` media feature reflects the actual `display` mode being used, which might differ from the one requested in the manifest's `display`, because the browser might not support the requested mode.
46+
> [!NOTE]
47+
> The value of the `display-mode` media feature reflects the actual `display` mode being used, which might differ from the one requested in the manifest's `display`, because the browser might not support the requested mode.
4648
4749
As shown in the code below, you can adjust an app's style depending on the `display-mode` used.
4850

files/en-us/web/progressive_web_apps/tutorials/cycletracker/service_workers/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ self.addEventListener("fetch", (event) => {
300300

301301
When updating a service worker, the VERSION constant doesn't need to be updated, as any change in the content of the service worker script itself will trigger the browser to install the new service worker. However, it is a good practice to update the version number as it makes it easier for devs, including yourself, to see which version of the service worker is currently running in the browser, by [checking the name of the Cache in the Application tool](#with_developer_tools) (or Sources tool).
302302

303-
**Note:** Updating VERSION is important when making changes to any application resource, including the CSS, HTML, and JS code, and image assets. The version number, or any change to the service worker file, is the only way to force an update of the app for your users.
303+
> [!NOTE]
304+
> Updating VERSION is important when making changes to any application resource, including the CSS, HTML, and JS code, and image assets. The version number, or any change to the service worker file, is the only way to force an update of the app for your users.
304305
305306
## Register the service worker
306307

0 commit comments

Comments
 (0)