diff --git a/.github/workflows/auto-cleanup-bot.yml b/.github/workflows/auto-cleanup-bot.yml index 453ea9600b5d47d..6707f9fe52c820d 100644 --- a/.github/workflows/auto-cleanup-bot.yml +++ b/.github/workflows/auto-cleanup-bot.yml @@ -20,9 +20,10 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" + package-manager-cache: false - name: Install all yarn packages run: yarn --frozen-lockfile diff --git a/.github/workflows/interfacedata-updater.yml b/.github/workflows/interfacedata-updater.yml index abd3d4f8890fd28..1db7a9ecae79513 100644 --- a/.github/workflows/interfacedata-updater.yml +++ b/.github/workflows/interfacedata-updater.yml @@ -23,9 +23,10 @@ jobs: persist-credentials: false - name: Setup node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: "mdn-content/.nvmrc" + package-manager-cache: false - name: Checkout webref uses: actions/checkout@v5 diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index f5747af9fcbd7e2..f6e24d4f8058b7a 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -26,7 +26,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/pr-check-lint_content.yml b/.github/workflows/pr-check-lint_content.yml index 4c6dbaed0bc4629..6a562d17e39f964 100644 --- a/.github/workflows/pr-check-lint_content.yml +++ b/.github/workflows/pr-check-lint_content.yml @@ -81,7 +81,7 @@ jobs: - name: Setup Node.js environment if: steps.check.outputs.HAS_FILES == 'true' - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/pr-check_cspell_lists.yml b/.github/workflows/pr-check_cspell_lists.yml index f64e0dad551fea6..83f79c84eeaad05 100644 --- a/.github/workflows/pr-check_cspell_lists.yml +++ b/.github/workflows/pr-check_cspell_lists.yml @@ -25,7 +25,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" diff --git a/.github/workflows/pr-check_javascript.yml b/.github/workflows/pr-check_javascript.yml index 7190914d3f55791..14f88501ddb09c5 100644 --- a/.github/workflows/pr-check_javascript.yml +++ b/.github/workflows/pr-check_javascript.yml @@ -23,7 +23,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/pr-check_json.yml b/.github/workflows/pr-check_json.yml index fa2bd8f44c65cac..b94c1cf71ffbe1f 100644 --- a/.github/workflows/pr-check_json.yml +++ b/.github/workflows/pr-check_json.yml @@ -23,7 +23,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/pr-check_redirects.yml b/.github/workflows/pr-check_redirects.yml index 7929efa060581d0..2f732f788ecc44a 100644 --- a/.github/workflows/pr-check_redirects.yml +++ b/.github/workflows/pr-check_redirects.yml @@ -18,7 +18,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/pr-check_scripts.yml b/.github/workflows/pr-check_scripts.yml index 9471edb55c8591c..7faf832eb269247 100644 --- a/.github/workflows/pr-check_scripts.yml +++ b/.github/workflows/pr-check_scripts.yml @@ -23,7 +23,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn @@ -45,7 +45,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn @@ -87,7 +87,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn @@ -109,7 +109,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn @@ -135,7 +135,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/pr-check_url-issues.yml b/.github/workflows/pr-check_url-issues.yml index a57e3455c119b31..56905a63b80de26 100644 --- a/.github/workflows/pr-check_url-issues.yml +++ b/.github/workflows/pr-check_url-issues.yml @@ -22,7 +22,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/pr-check_yml.yml b/.github/workflows/pr-check_yml.yml index 387ff4eb6610f3b..b9e6be6e7add6ff 100644 --- a/.github/workflows/pr-check_yml.yml +++ b/.github/workflows/pr-check_yml.yml @@ -23,7 +23,7 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/pr-review-companion.yml b/.github/workflows/pr-review-companion.yml index c25cb437ef9d460..1f1f8670ec87c81 100644 --- a/.github/workflows/pr-review-companion.yml +++ b/.github/workflows/pr-review-companion.yml @@ -100,10 +100,11 @@ jobs: persist-credentials: false - name: Setup (mdn/content) - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 if: steps.check.outputs.HAS_ARTIFACT with: node-version-file: "content/.nvmrc" + package-manager-cache: false - name: Install (mdn/content) if: steps.check.outputs.HAS_ARTIFACT diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 2f7ff9c1ee24d32..14e87180fa0ae8f 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -80,7 +80,7 @@ jobs: - name: Setup Node.js environment if: steps.check.outputs.HAS_FILES == 'true' - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" cache: yarn diff --git a/.github/workflows/spelling-check-bot.yml b/.github/workflows/spelling-check-bot.yml index 810a15291d3d49a..5e7928a9ba2f04f 100644 --- a/.github/workflows/spelling-check-bot.yml +++ b/.github/workflows/spelling-check-bot.yml @@ -23,9 +23,10 @@ jobs: persist-credentials: false - name: Setup Node.js environment - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" + package-manager-cache: false - name: Install all yarn packages run: yarn --frozen-lockfile diff --git a/files/en-us/glossary/cia/index.md b/files/en-us/glossary/cia/index.md index 67c844ee4516292..e2e7e2fd13f97fe 100644 --- a/files/en-us/glossary/cia/index.md +++ b/files/en-us/glossary/cia/index.md @@ -9,4 +9,4 @@ sidebar: glossarysidebar ## See also -- [CIA](https://en.wikipedia.org/wiki/Information_security#Key_concepts) on Wikipedia +- [CIA](https://en.wikipedia.org/wiki/Information_security#CIA_triad) on Wikipedia diff --git a/files/en-us/learn_web_development/extensions/forms/customizable_select/index.md b/files/en-us/learn_web_development/extensions/forms/customizable_select/index.md index 872fa2f799e91c1..d70d2d3d73dd8df 100644 --- a/files/en-us/learn_web_development/extensions/forms/customizable_select/index.md +++ b/files/en-us/learn_web_development/extensions/forms/customizable_select/index.md @@ -390,6 +390,9 @@ In our demo, the position of the picker is set relative to its anchor by using t This results in the top edge of the picker always being positioned 1 pixel down from the bottom edge of the select button, and the left edge of the picker always being positioned `10%` of the select button's width across from its left edge. +> [!NOTE] +> If you want to remove the implicit anchor reference to stop the picker from being anchored to the `` is rendered like this: diff --git a/files/en-us/mdn/kitchensink/index.md b/files/en-us/mdn/kitchensink/index.md index fd2f99052db2904..79aa2765f290628 100644 --- a/files/en-us/mdn/kitchensink/index.md +++ b/files/en-us/mdn/kitchensink/index.md @@ -366,24 +366,29 @@ if (5 < 30 && 55 > 20 && 5 < 20 && 55 > 10) { ```js Crafty.init(200, 200); -var dim1 = {x: 5, y: 5, w: 50, h: 50} -var dim2 = {x: 20, y: 10, w: 60, h: 40} +var dim1 = { x: 5, y: 5, w: 50, h: 50 }; +var dim2 = { x: 20, y: 10, w: 60, h: 40 }; var rect1 = Crafty.e("2D, Canvas, Color").attr(dim1).color("red"); -var rect2 = Crafty.e("2D, Canvas, Color, Keyboard, Fourway").fourway(2).attr(dim2).color("blue"); +var rect2 = Crafty.e("2D, Canvas, Color, Keyboard, Fourway") + .fourway(2) + .attr(dim2) + .color("blue"); rect2.bind("EnterFrame", function () { -if (rect1.x > rect2.x + rect2.w && -rect1.x + rect1.w > rect2.x && -rect1.y > rect2.y + rect2.h && -rect1.h + rect1.y > rect2.y) { -// collision detected! -this.color("green"); -} else { -// no collision -this.color("blue"); -} + if ( + rect1.x > rect2.x + rect2.w && + rect1.x + rect1.w > rect2.x && + rect1.y > rect2.y + rect2.h && + rect1.h + rect1.y > rect2.y + ) { + // collision detected! + this.color("green"); + } else { + // no collision + this.color("blue"); + } }); ``` diff --git a/files/en-us/web/api/gpusupportedfeatures/index.md b/files/en-us/web/api/gpusupportedfeatures/index.md index 705fafbd951dee6..1f3aa059d7e594c 100644 --- a/files/en-us/web/api/gpusupportedfeatures/index.md +++ b/files/en-us/web/api/gpusupportedfeatures/index.md @@ -35,6 +35,7 @@ The following additional features are defined in WebGPU. Bear in mind that the e | `float32-blendable` | When enabled, allows [blending](/en-US/docs/Web/API/GPUDevice/createRenderPipeline#blend) of `r32float`-, `rg32float`-, and `rgba32float`-[`format`](/en-US/docs/Web/API/GPUDevice/createTexture#format) {{domxref("GPUTexture")}}s. | | `float32-filterable` | When enabled, allows [filtering](/en-US/docs/Web/API/GPUDevice/createSampler#magfilter) of `r32float`-, `rg32float`-, and `rgba32float`-[`format`](/en-US/docs/Web/API/GPUDevice/createTexture#format) {{domxref("GPUTexture")}}s. | | `indirect-first-instance` | When enabled, allows the use of non-zero `firstInstance` values in the `indirectBuffer` property of the `drawIndirect()` and `drawIndexedIndirect()` methods available on {{domxref("GPURenderPassEncoder")}} and {{domxref("GPURenderBundleEncoder")}} instances. | +| `primitive-index` | When enabled, allows the use of the [`primitive_index`](https://gpuweb.github.io/gpuweb/wgsl/#built-in-values-primitive_index) shader built-in in WSGL. This built-in provides a per-primitive index to fragment shaders on supported hardware, similar to the existing [`vertex_index`](https://gpuweb.github.io/gpuweb/wgsl/#vertex-index-builtin-value) and [`instance_index`](https://gpuweb.github.io/gpuweb/wgsl/#instance-index-builtin-value) built-ins. The `primitive_index` built-in is useful for advanced graphical techniques, such as virtualized geometry. | | `rg11b10ufloat-renderable` | When enabled, allows `RENDER_ATTACHMENT` [`usage`](/en-US/docs/Web/API/GPUDevice/createTexture#usage) of `rg11b10ufloat`-[`format`](/en-US/docs/Web/API/GPUDevice/createTexture#format) {{domxref("GPUTexture")}}s, as well as their blending and multisampling. | | `shader-f16` | When enabled, allows the use of the half-precision floating-point type [`f16`](https://gpuweb.github.io/gpuweb/wgsl/#extension-f16) in WGSL. | | `subgroups` | When enabled, allows the use of [subgroups](https://gpuweb.github.io/gpuweb/wgsl/#extension-subgroups) in WGSL. Subgroups enable SIMD-level parallelism, allowing threads in a workgroup to communicate and execute collective math operations such as calculating a sum of numbers, and offering an efficient method for cross-thread data sharing. Note that the {{domxref("GPUAdapterInfo.subgroupMinSize", "subgroupMinSize")}} and {{domxref("GPUAdapterInfo.subgroupMaxSize", "subgroupMaxSize")}} properties can be useful to check if, for example, you have a hardcoded algorithm that requires a subgroup of a certain size. You can use f16 values with subgroups when you request a GPUDevice with both the `shader-f16` and `subgroups` features. | diff --git a/files/en-us/web/api/popover_api/using/index.md b/files/en-us/web/api/popover_api/using/index.md index 11e81e7d47a4855..5c5201e11426f3e 100644 --- a/files/en-us/web/api/popover_api/using/index.md +++ b/files/en-us/web/api/popover_api/using/index.md @@ -458,6 +458,9 @@ See [Using CSS anchor positioning](/en-US/docs/Web/CSS/CSS_anchor_positioning/Us > [!NOTE] > For an example that uses this implicit association, see our [popover hint demo](https://mdn.github.io/dom-examples/popover-api/popover-hint/) ([source](https://github.com/mdn/dom-examples/tree/main/popover-api/popover-hint)). If you check out the CSS code, you'll see that no explicit anchor associations are made using the {{cssxref("anchor-name")}} and {{cssxref("position-anchor")}} properties. +> [!NOTE] +> If you want to remove the implicit anchor reference to stop the popover from being anchored to its invoker, you can do so by setting the `position-anchor` property of the popover to an anchor name that doesn't exist in the current document, such as `--not-an-anchor-name`. See also [removing an anchor association](/en-US/docs/Web/CSS/CSS_anchor_positioning/Using#removing_an_anchor_association). + ## Animating popovers Popovers are set to `display: none;` when hidden and `display: block;` when shown, as well as being removed from / added to the {{glossary("top layer")}} and the [accessibility tree](/en-US/docs/Web/Performance/Guides/How_browsers_work#building_the_accessibility_tree). Therefore, for popovers to be animated, the {{cssxref("display")}} property needs to be animatable. [Supporting browsers](/en-US/docs/Web/CSS/display#browser_compatibility) animate `display` with a variation on the [discrete animation type](/en-US/docs/Web/CSS/CSS_animated_properties#discrete). Specifically, the browser will flip between `none` and another value of `display` so that the animated content is shown for the entire animation duration. So, for example: diff --git a/files/en-us/web/css/_doublecolon_picker/index.md b/files/en-us/web/css/_doublecolon_picker/index.md index 321389084ff811c..dd48fdee7d71c70 100644 --- a/files/en-us/web/css/_doublecolon_picker/index.md +++ b/files/en-us/web/css/_doublecolon_picker/index.md @@ -70,6 +70,9 @@ A further side-effect of the implicit invoker/popover relationship mentioned abo block-start span-inline-start; ``` +> [!NOTE] +> If you want to remove the implicit anchor reference to stop the picker from being anchored to the `` element's picker from being anchored to the `