Skip to content

Commit 0604948

Browse files
Merge branch 'main' into update/docx-after-scope
2 parents bd9482c + cedeb45 commit 0604948

File tree

15 files changed

+580
-31
lines changed

15 files changed

+580
-31
lines changed

files/en-us/learn_web_development/core/frameworks_libraries/svelte_getting_started/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ page-type: learn-module-chapter
55
sidebar: learnsidebar
66
---
77

8-
{{NextMenu("Learn_web_development/Core/Frameworks_libraries/Svelte_todo_list_beginning", "Learn_web_development/Core/Frameworks_libraries")}}
8+
{{NextMenu("Learn_web_development/Core/Frameworks_libraries/Svelte_Todo_list_beginning", "Learn_web_development/Core/Frameworks_libraries")}}
99

1010
In this article we'll provide a quick introduction to the [Svelte framework](https://svelte.dev/). We will see how Svelte works and what sets it apart from the rest of the frameworks and tools we've seen so far. Then we will learn how to set up our development environment, create a sample app, understand the structure of the project, and see how to run it locally and build it for production.
1111

@@ -507,4 +507,4 @@ In Svelte:
507507
- The top-level variables of a component constitute its state.
508508
- Reactivity is fired just by assigning a new value to a top-level variable.
509509

510-
{{NextMenu("Learn_web_development/Core/Frameworks_libraries/Svelte_todo_list_beginning", "Learn_web_development/Core/Frameworks_libraries")}}
510+
{{NextMenu("Learn_web_development/Core/Frameworks_libraries/Svelte_Todo_list_beginning", "Learn_web_development/Core/Frameworks_libraries")}}

files/en-us/learn_web_development/getting_started/web_standards/how_the_web_works/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ page-type: tutorial-chapter
55
sidebar: learnsidebar
66
---
77

8-
{{NextMenu("Learn_web_development/Getting_started/Web_standards/The_Web_standards_model", "Learn_web_development/Getting_started/Web_standards")}}
8+
{{NextMenu("Learn_web_development/Getting_started/Web_standards/The_web_standards_model", "Learn_web_development/Getting_started/Web_standards")}}
99

1010
_How the web works_ provides a high-level description of what happens when you use a web browser to navigate to a web page, explaining the magic that goes on behind the scenes to deliver the relevant code to your computer for the browser to assemble into something you can look at.
1111

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ Firefox 150 is the current [Beta version of Firefox](https://www.firefox.com/en-
3232

3333
<!-- #### Removals -->
3434

35-
<!-- ### CSS -->
35+
### CSS
36+
37+
- The [`light-dark()`](/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark) CSS function now accepts [`<image>`](/en-US/docs/Web/CSS/Reference/Values/image) values. This allows using images, gradients, and so on for different color schemes.
38+
([Firefox bug 2023569](https://bugzil.la/2023569)).
3639

3740
<!-- #### Removals -->
3841

files/en-us/web/api/webgl_lose_context/losecontext/index.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ browser-compat: api.WEBGL_lose_context.loseContext
88

99
{{APIRef("WebGL")}}
1010

11-
The **WEBGL_lose_context.loseContext()** method is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and allows you to simulate losing
12-
the context of a {{domxref("WebGLRenderingContext")}} context.
11+
The **`loseContext()`** method of the `WEBGL_lose_context` extension is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and allows you to simulate losing the context of a {{domxref("WebGLRenderingContext")}}.
1312

14-
It triggers the steps described in the WebGL specification for handling context lost.
15-
The context will remain lost until {{domxref("WEBGL_lose_context.restoreContext()")}} is
16-
called.
13+
It triggers the [steps described in the WebGL specification](https://registry.khronos.org/webgl/specs/latest/1.0/#5.15.2) for handling context lost. The context will remain lost until {{domxref("WEBGL_lose_context.restoreContext()")}} is called. It also destroys the underlying graphics context and all graphics resources. This is the recommended mechanism for applications to programmatically halt their use of the WebGL API.
1714

1815
## Syntax
1916

@@ -31,9 +28,7 @@ None ({{jsxref("undefined")}}).
3128

3229
## Examples
3330

34-
With this method, you can simulate the
35-
[`webglcontextlost`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextlost_event)
36-
event:
31+
With this method, you can simulate the [`webglcontextlost`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) event:
3732

3833
```js
3934
const canvas = document.getElementById("canvas");
@@ -59,7 +54,4 @@ gl.getExtension("WEBGL_lose_context").loseContext();
5954
## See also
6055

6156
- {{domxref("WebGLRenderingContext.isContextLost()")}}
62-
- Events:
63-
[`webglcontextlost`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextlost_event),
64-
[`webglcontextrestored`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextrestored_event),
65-
[`webglcontextcreationerror`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextcreationerror_event)
57+
- Events: [`webglcontextlost`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextlost_event), [`webglcontextrestored`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextrestored_event), [`webglcontextcreationerror`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextcreationerror_event)

files/en-us/web/api/webgl_lose_context/restorecontext/index.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ browser-compat: api.WEBGL_lose_context.restoreContext
88

99
{{APIRef("WebGL")}}
1010

11-
The **WEBGL_lose_context.restoreContext()** method is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and allows you to simulate
12-
restoring the context of a {{domxref("WebGLRenderingContext")}} object.
11+
The **`restoreContext()`** method of the `WEBGL_lose_context` extension is part of the [WebGL API](/en-US/docs/Web/API/WebGL_API) and allows you to simulate restoring the context of a {{domxref("WebGLRenderingContext")}}.
12+
13+
It triggers the [steps described in the WebGL specification](https://registry.khronos.org/webgl/specs/latest/1.0/#5.15.3) for handling context restored. The context is not usable until the {{domxref("HTMLCanvasElement.webglcontextrestored_event", "webglcontextrestored")}} event is fired.
1314

1415
## Syntax
1516

@@ -34,9 +35,7 @@ Browsers may not report WebGL errors by default. WebGL's error reporting works b
3435

3536
## Examples
3637

37-
With this method, you can simulate the
38-
[`webglcontextrestored`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextrestored_event)
39-
event:
38+
With this method, you can simulate the [`webglcontextrestored`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextrestored_event) event:
4039

4140
```js
4241
const canvas = document.getElementById("canvas");
@@ -60,7 +59,4 @@ gl.getExtension("WEBGL_lose_context").restoreContext();
6059
## See also
6160

6261
- {{domxref("WebGLRenderingContext.isContextLost()")}}
63-
- Events:
64-
[`webglcontextlost`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextlost_event),
65-
[`webglcontextrestored`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextrestored_event),
66-
[`webglcontextcreationerror`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextcreationerror_event)
62+
- Events: [`webglcontextlost`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextlost_event), [`webglcontextrestored`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextrestored_event), [`webglcontextcreationerror`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextcreationerror_event)

files/en-us/web/css/reference/properties/text-indent/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ text-indent: unset;
9191
- {{cssxref("&lt;length&gt;")}}
9292
- : Indentation is specified as an absolute {{cssxref("&lt;length&gt;")}}. Negative values are allowed. See {{cssxref("&lt;length&gt;")}} values for possible units.
9393
- {{cssxref("&lt;percentage&gt;")}}
94-
- : Indentation is a {{cssxref("&lt;percentage&gt;")}}. The percentage is relative to the containing block's width.
94+
- : Indentation is a {{cssxref("&lt;percentage&gt;")}}. The percentage is relative to the container's own inner inline size.
9595
- `each-line`
9696
- : Indentation affects the first line of the block container as well as each line after a _forced line break_, but does not affect lines after a _soft wrap break_.
9797
- `hanging`
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
title: browser.close command
3+
short-title: browser.close
4+
slug: Web/WebDriver/Reference/BiDi/Modules/browser/close
5+
page-type: webdriver-command
6+
browser-compat: webdriver.bidi.browser.close
7+
sidebar: webdriver
8+
---
9+
10+
The `browser.close` [command](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules#commands) of the [`browser`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/browser) module closes the browser and ends all active WebDriver sessions. Tabs are closed without running [`beforeunload`](/en-US/docs/Web/API/Window/beforeunload_event) event handler functions. The response is sent before the WebSocket connection is closed.
11+
12+
## Syntax
13+
14+
```json-nolint
15+
{
16+
"method": "browser.close",
17+
"params": {}
18+
}
19+
```
20+
21+
### Parameters
22+
23+
None. However, you must include the `params` field and set it to an empty object (`{}`).
24+
25+
### Return value
26+
27+
The `result` field in the response is an empty object (`{}`).
28+
29+
### Errors
30+
31+
- `unable to close browser`
32+
- : There are other active WebDriver sessions open at the time the command is sent.
33+
Browsers may return this error before continuing to close.
34+
35+
## Examples
36+
37+
### Closing the browser
38+
39+
With a [WebDriver BiDi connection](/en-US/docs/Web/WebDriver/How_to/Create_BiDi_connection) and an [active session](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/session/new), send the following message to close the browser:
40+
41+
```json
42+
{
43+
"id": 1,
44+
"method": "browser.close",
45+
"params": {}
46+
}
47+
```
48+
49+
Before closing, the browser responds successfully as shown here:
50+
51+
```json
52+
{
53+
"id": 1,
54+
"type": "success",
55+
"result": {}
56+
}
57+
```
58+
59+
After the response, the WebSocket connection closes as the browser shuts down.
60+
61+
## Specifications
62+
63+
{{Specifications}}
64+
65+
## Browser compatibility
66+
67+
{{Compat}}
68+
69+
## See also
70+
71+
- [`session.new`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/session/new) command
72+
- [`session.end`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/session/end) command
73+
- [`browser.createUserContext`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/browser/createUserContext) command
74+
- [`browser.getUserContexts`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/browser/getUserContexts) command
75+
- [`browser.removeUserContext`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/browser/removeUserContext) command
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
title: browser.createUserContext command
3+
short-title: browser.createUserContext
4+
slug: Web/WebDriver/Reference/BiDi/Modules/browser/createUserContext
5+
page-type: webdriver-command
6+
browser-compat: webdriver.bidi.browser.createUserContext
7+
sidebar: webdriver
8+
---
9+
10+
The `browser.createUserContext` [command](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules#commands) of the [`browser`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/browser) module creates a new [user context](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/browser#user_contexts) in the browser.
11+
12+
## Syntax
13+
14+
```json-nolint
15+
{
16+
"method": "browser.createUserContext",
17+
"params": {}
18+
}
19+
```
20+
21+
### Parameters
22+
23+
Set `params` to an empty object (`{}`) or include any of the following optional fields:
24+
25+
- [`acceptInsecureCerts`](/en-US/docs/Web/WebDriver/Reference/Capabilities/acceptInsecureCerts) {{optional_inline}}
26+
- : A boolean that controls whether untrusted TLS certificates (for example, self-signed or expired) are accepted within this user context. When set, it overrides the [session-level](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/session/new#acceptinsecurecerts) `acceptInsecureCerts` setting for this user context.
27+
- `proxy` {{optional_inline}}
28+
- : An object that specifies the proxy configuration the browser should use for network requests within this user context. When set, it overrides the [session-level](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/session/new#proxy) `proxy` setting for this user context.
29+
- `unhandledPromptBehavior` {{optional_inline}}
30+
- : An object that specifies the default behavior when a user prompt (such as an `alert`, `confirm`, or `prompt` dialog) is encountered within this user context. When set, it overrides the [session-level](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/session/new#unhandledpromptbehavior) `unhandledPromptBehavior` setting for this user context.
31+
32+
> [!NOTE]
33+
> When a parameter is set, it applies to all existing and future tabs within this user context.
34+
35+
### Return value
36+
37+
The following field in the `result` object of the response describes the created user context:
38+
39+
- `userContext`
40+
- : A string that uniquely identifies the created user context.
41+
42+
### Errors
43+
44+
- `unsupported operation`
45+
- : `acceptInsecureCerts` is `true` but the browser does not support accepting insecure TLS connections, or `proxy` is specified but the browser cannot configure proxy settings for this user context or cannot apply the given proxy configuration.
46+
47+
## Examples
48+
49+
### Creating a user context with default settings
50+
51+
With a [WebDriver BiDi connection](/en-US/docs/Web/WebDriver/How_to/Create_BiDi_connection) and an [active session](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/session/new), send the following message to create a user context:
52+
53+
```json
54+
{
55+
"id": 1,
56+
"method": "browser.createUserContext",
57+
"params": {}
58+
}
59+
```
60+
61+
The browser responds with a successful user context creation as follows:
62+
63+
```json
64+
{
65+
"id": 1,
66+
"type": "success",
67+
"result": {
68+
"userContext": "4e4b1f6d-3f1a-4b2e-9f8c-1a2b3c4d5e6f"
69+
}
70+
}
71+
```
72+
73+
### Creating a user context with a proxy
74+
75+
Send the following message to create a user context that routes network requests through a proxy:
76+
77+
```json
78+
{
79+
"id": 2,
80+
"method": "browser.createUserContext",
81+
"params": {
82+
"proxy": {
83+
"proxyType": "manual",
84+
"httpProxy": "127.0.0.1:80"
85+
}
86+
}
87+
}
88+
```
89+
90+
The browser responds with a successful user context creation as follows:
91+
92+
```json
93+
{
94+
"id": 2,
95+
"type": "success",
96+
"result": {
97+
"userContext": "7d9e2a1b-5c3f-4e6d-8a7b-2c1d0e9f8a7b"
98+
}
99+
}
100+
```
101+
102+
## Specifications
103+
104+
{{Specifications}}
105+
106+
## Browser compatibility
107+
108+
{{Compat}}
109+
110+
## See also
111+
112+
- [`session.new`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/session/new) command
113+
- [`browser.getUserContexts`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/browser/getUserContexts) command
114+
- [`browser.removeUserContext`](/en-US/docs/Web/WebDriver/Reference/BiDi/Modules/browser/removeUserContext) command

0 commit comments

Comments
 (0)