Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vscode/dictionaries/code-entities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ Crsel
cryptomining
csiso
csrfmiddlewaretoken
css.selectors.headingfunction
css.selectors.hostfunction
CSS_RGBCOLOR
csslint
cssref
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ npm run dev

This should start Vite and start the same local development server, as we saw before.

Note that the script we defined here no longer need the `npx` prefix. This is because npm (and yarn) commands are clever in that they will search for command line tools that are locally installed to the project before trying to find them through conventional methods (where your computer will normally store and allow software to be found). You can [learn more about the technical intricacies of the `run` command](https://docs.npmjs.com/cli/run-script/), although in most cases your own scripts will run just fine.
Note that the script we defined here no longer need the `npx` prefix. This is because npm (and yarn) commands are clever in that they will search for command line tools that are locally installed to the project before trying to find them through conventional methods (where your computer will normally store and allow software to be found). You can [learn more about the technical intricacies of the `run` command](https://docs.npmjs.com/cli/commands/npm-run/), although in most cases your own scripts will run just fine.

This particular one may look unnecessary — `npm run dev` is more characters to type than `npx vite`, but it is a form of _abstraction_. It allows us to add more work to the `dev` command in the future, such as setting environment variables, generating temporary files, etc., without complicating the command.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ The following entry would then be added to your application's **package.json**:

### Running tasks

In addition to defining and fetching dependencies you can also define _named_ scripts in your **package.json** files and call npm to execute them with the [run-script](https://docs.npmjs.com/cli/run-script/) command. This approach is commonly used to automate running tests and parts of the development or build toolchain (e.g., running tools to minify JavaScript, shrink images, LINT/analyze your code, etc.).
In addition to defining and fetching dependencies you can also define _named_ scripts in your **package.json** files and call npm to execute them with the [run-script](https://docs.npmjs.com/cli/commands/npm-run/) command. This approach is commonly used to automate running tests and parts of the development or build toolchain (e.g., running tools to minify JavaScript, shrink images, LINT/analyze your code, etc.).

> [!NOTE]
> Task runners like [Gulp](https://gulpjs.com/) and [Grunt](https://gruntjs.com/) can also be used to run tests and other external tools.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ An extension adds features and functions to a browser. It's created using famili

**Enhance or complement a website**: Use an add-on to deliver additional in-browser features or information from your website. Allow users to collect details from pages they visit to enhance the service you offer.

Examples: [Grammarly for Firefox](https://addons.mozilla.org/en-US/firefox/addon/grammarly-1/), [Enhancer for YouTube](https://addons.mozilla.org/en-US/firefox/addon/enhancer-for-youtube/), and [Control Panel for Twitter](https://addons.mozilla.org/en-US/firefox/addon/control-panel-for-twitter/).
Examples: [Grammarly for Firefox](https://addons.mozilla.org/en-US/firefox/addon/grammarly-1/) and [Control Panel for Twitter](https://addons.mozilla.org/en-US/firefox/addon/control-panel-for-twitter/).

![The Grammarly extension providing an edit hint in the GitHub editor.](grammarly-in-github-editor.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,6 @@ The requirement for the `literal` property is taken from [WAI-Adapt: Help and Su

- [Accessibility Master List](https://ds.gpii.net/learn/accessibility-masterlist) Gregg Vanderheiden Ph.D. Editor

### Harding

Along with the PEAT tool, is generally recognized to be one of the two "gold standards" for analyzing flashes.

- [Harding Flash and Pattern Analyzer](https://www.hardingfpa.com/)

### ISO

- [IEC 61966-2-2:2003(en)](https://www.iso.org/obp/ui/#iso:std:iec:61966:-2-2:ed-1:v1:en) Multimedia systems and equipment — Colour measurement and management — Part 2-2: Colour management — Extended RGB color space — scRGB
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/url_pattern_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ console.log(result.hostname.input); // 'example.com'
The following example shows how base URLs can also be used to construct the `URLPattern`.
The base URL is treated strictly as a URL and cannot contain any pattern syntax itself.

The pattern only [inherits URL parts from the base URL](/en-US/docs/Web/API/URL_Pattern_API#inheritance_from_a_base_url) that are less specific than those in the other properties.
The pattern only [inherits URL parts from the base URL](#inheritance_from_a_base_url) that are less specific than those in the other properties.

In this case the `pathname` is specified so the protocol and host can be inherited, but not the search, hash, username, or password.
The properties that are not inherited default to the wildcard string (`"*"`).
Expand Down
18 changes: 9 additions & 9 deletions files/en-us/web/api/urlpattern/urlpattern/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ let pattern4 = new URLPattern({
let pattern5 = new URLPattern({
pathname: "/books/:id",
baseURL: "https://example.com/some/path/?search=3#param=1",
//More-specific URL parts are discarded
// More-specific URL parts are discarded
});
```

Expand Down Expand Up @@ -269,14 +269,14 @@ const pattern = new URLPattern({
});

console.log(pattern);
//protocol: https
//username: *
//password: *
//hostname: example.com
//port:
//pathname: /some/path
//search: *
//hash: *
// protocol: https
// username: *
// password: *
// hostname: example.com
// port:
// pathname: /some/path
// search: *
// hash: *
```

## Specifications
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/webglrenderingcontext/clear/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ The **`WebGLRenderingContext.clear()`** method of the [WebGL API](/en-US/docs/We

The preset values can be set by {{domxref("WebGLRenderingContext.clearColor", "clearColor()")}}, {{domxref("WebGLRenderingContext.clearDepth", "clearDepth()")}} or {{domxref("WebGLRenderingContext.clearStencil", "clearStencil()")}}.

The scissor box, dithering, and buffer writemasks can affect the `clear()`
method.
The scissor box, dithering, and buffer writemasks can affect the `clear()` method. For example, if buffer writing is disabled via {{domxref("WebGLRenderingContext.colorMask", "colorMask()")}}, {{domxref("WebGLRenderingContext.depthMask", "depthMask()")}}, or {{domxref("WebGLRenderingContext.stencilMask", "stencilMask()")}}, `clear()` has no effect on the corresponding buffer.

## Syntax

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/progressive_web_apps/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Build a PWA from scratch using these [PWA Tutorials](/en-US/docs/Web/Progressive
- [Creating your first PWA](/en-US/docs/Web/Progressive_web_apps/Tutorials/CycleTracker)
- : This novice-level tutorial walks through the creation of a PWA to track menstrual cycles. Lessons include a walk through of the HTML, CSS, and JavaScript required to create a fully functional web app, setting up a testing environment, and complete explanations guiding the learner through upgrading the web app into a PWA; including developing and inspecting a manifest, adding a service worker, and using the service worker to delete stale caches.
- [Deep dive into PWA](/en-US/docs/Web/Progressive_web_apps/Tutorials/js13kGames)
- : This intermediate-level tutorial walks through the creation of a PWA that lists information about games submitted to the A-Frame category in the [js13kGames 2017](https://2017.js13kgames.com/) competition. This tutorial includes all the basics for creating a PWA, with additional features, including notifications, push, and app performance.
- : This intermediate-level tutorial walks through the creation of a PWA that lists information about games submitted to the A-Frame category in the [js13kGames 2017](https://js13kgames.com/2017/) competition. This tutorial includes all the basics for creating a PWA, with additional features, including notifications, push, and app performance.

## Reference

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/progressive_web_apps/tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ This page lists tutorials to help learn how to develop PWAs. Tutorials walk thro
- : This novice-level tutorial walks through the creation of a PWA to track menstrual cycles. Lessons include a walk through of the HTML, CSS, and JavaScript required to create a fully functional web app, setting up a testing environment, and complete explanations guiding the learner through upgrading the web app into a PWA; including developing and inspecting a manifest, adding a service worker, and using the service worker to delete stale caches.

- [Deep dive into PWA](/en-US/docs/Web/Progressive_web_apps/Tutorials/js13kGames)
- : This intermediate-level tutorial walks through the creation of a PWA that lists information about games submitted to the A-Frame category in the [js13kGames 2017](https://2017.js13kgames.com/) competition. This tutorial includes all the basics for creating a PWA, with additional features, including notifications, push, and app performance.
- : This intermediate-level tutorial walks through the creation of a PWA that lists information about games submitted to the A-Frame category in the [js13kGames 2017](https://js13kgames.com/2017/) competition. This tutorial includes all the basics for creating a PWA, with additional features, including notifications, push, and app performance.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sidebar: pwasidebar

{{Next("Web/Progressive_web_apps/Tutorials/js13kGames/App_structure")}}

In this tutorial we will examine the source code of a website that lists information about games submitted to the _A-Frame_ category in the [js13kGames 2017](https://2017.js13kgames.com/) competition. You don't have to think about what the actual content on the website is; the main point is to learn how to use PWA features in your own projects.
In this tutorial we will examine the source code of a website that lists information about games submitted to the _A-Frame_ category in the [js13kGames 2017](https://js13kgames.com/2017/) competition. You don't have to think about what the actual content on the website is; the main point is to learn how to use PWA features in your own projects.

If you want to jump ahead, the tutorial chapters are as follows:

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/webdriver/reference/errors/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Because both WebDriver and JavaScript execution is halted by such a dialog, we s
}
```

In most [clients](/en-US/docs/Web/WebDriver/Reference/Clients) the error would be represented by some sort of error _type_ or _object representation_. In Python it is represented as a [`WebDriverException`](https://www.selenium.dev/selenium/docs/api/py/common/selenium.common.exceptions.html), in Node.js as a [`WebDriverError`](https://www.selenium.dev/selenium/docs/api/javascript/WebDriverError.html), and in Java also as a [`WebDriverException`](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/WebDriverException.html).
In most [clients](/en-US/docs/Web/WebDriver/Reference/Clients) the error would be represented by some sort of error _type_ or _object representation_. In Python it is represented as a [`WebDriverException`](https://www.selenium.dev/selenium/docs/api/py/selenium_common/selenium.common.exceptions.html), in Node.js as a [`WebDriverError`](https://www.selenium.dev/selenium/docs/api/javascript/WebDriverError.html), and in Java also as a [`WebDriverException`](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/WebDriverException.html).

## Table of errors

Expand Down