Skip to content

Commit f01c344

Browse files
committed
Merge branch 'main' into pr/2614
2 parents 7d86759 + 7982979 commit f01c344

49 files changed

Lines changed: 509 additions & 63 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ _site/
44
.DS_Store
55
.optemp/
66
.vscode/
7+
.vs/
78
_themes*/
89
.idea
910

microsoft-edge/dev-videos/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ CSS scroll-linked animations is an experimental feature in Microsoft Edge. To t
156156

157157
To play with the demo application that's shown in the video, see the rendered [reader demo](https://microsoftedge.github.io/Demos/reader/) and its [source code](https://github.com/MicrosoftEdge/Demos/tree/main/reader).
158158

159-
To learn more about the CSS scroll-linked animations feature, see [@scroll-timeline](https://developer.mozilla.org/en-US/docs/Web/CSS/@scroll-timeline) at MDN.
159+
To learn more about the CSS scroll-linked animations feature, see [@scroll-timeline](https://developer.mozilla.org/docs/Web/CSS/@scroll-timeline) at MDN.
160160

161161

162162
<!-- ====================================================================== -->

microsoft-edge/devtools-guide-chromium/console/console-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.date: 04/13/2021
99
---
1010
# Run JavaScript in the Console
1111

12-
You can enter any JavaScript expression, statement, or code snippet in the **Console**, and it runs immediately and interactively as you type. This is possible because the **Console** tool in DevTools is a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) environment. _REPL_ stands for Read, Evaluate, Print, and Loop.
12+
You can enter any JavaScript expression, statement, or code snippet in the **Console**, and it runs immediately and interactively as you type. This is possible because the **Console** tool in DevTools is a [REPL](https://wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) environment. _REPL_ stands for Read, Evaluate, Print, and Loop.
1313

1414
The **Console**:
1515
1. Reads the JavaScript that you type into it.

microsoft-edge/devtools-guide-chromium/console/console-log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To try using the logging functions in the Console:
5757

5858
The `log()` and `info()` methods seem to do the same thing. Use `info()` and `log()` for different log tasks, because that allows you to [filter Console messages](console-filters.md), to display only a subset of log entries.
5959

60-
The `error()` and `warn()` methods display an icon next to the message and a way to inspect the [stack trace](https://en.wikipedia.org/wiki/Stack_trace) of the message.
60+
The `error()` and `warn()` methods display an icon next to the message and a way to inspect the [stack trace](https://wikipedia.org/wiki/Stack_trace) of the message.
6161

6262
1. Copy and paste any of the examples into the **Console**, and then press **Enter**.
6363

microsoft-edge/devtools-guide-chromium/console/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The **Console** tool helps with several tasks, which are covered in more detail
1616
* **Track down problems** to find out why something isn't working in the current project. See [Fix JavaScript errors that are reported in the Console](console-debug-javascript.md).
1717
* **Get information about the web project** in the browser as log messages. See [Filter Console messages](console-filters.md).
1818
* **Log information** in scripts for debugging purposes. See [Log messages in the Console tool](console-log.md).
19-
* **Try JavaScript expressions** live in a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) environment. See [Run JavaScript in the Console](console-javascript.md).
19+
* **Try JavaScript expressions** live in a [REPL](https://wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) environment. See [Run JavaScript in the Console](console-javascript.md).
2020
* **Interact with the web project in the browser** using JavaScript. See [Interact with the DOM using the Console](console-dom-interaction.md).
2121

2222
You can open the **Console** tool in the top or bottom of DevTools; it's shown here in upper part, on the main toolbar:
@@ -131,7 +131,7 @@ Many useful methods are available when you work with the **Console**. For more
131131
<!-- ====================================================================== -->
132132
## Try your JavaScript live in the Console
133133

134-
The **Console** isn't only a place to log information. The **Console** is a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) environment. When you write any JavaScript in the **Console**, the code runs immediately. You may find it useful to test some new JavaScript features or to do some quick calculations. Also, you get all of the features you expect from a modern editing environment, such as autocompletion, syntax highlighting, and history.
134+
The **Console** isn't only a place to log information. The **Console** is a [REPL](https://wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) environment. When you write any JavaScript in the **Console**, the code runs immediately. You may find it useful to test some new JavaScript features or to do some quick calculations. Also, you get all of the features you expect from a modern editing environment, such as autocompletion, syntax highlighting, and history.
135135

136136
To try running JavaScript in the Console:
137137

microsoft-edge/devtools-guide-chromium/css/reference.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ In the **Styles** pane, click the link next to a CSS rule to open the external s
5454

5555
If the stylesheet is minified, click the **Format** (![Format](./reference-images/format-icon.png)) button, at the bottom of the **Editor** pane. For more information, see [Reformat a minified JavaScript file with pretty-print](../javascript/reference.md#reformat-a-minified-javascript-file-with-pretty-print).
5656

57-
<!-- todo: delete /en-us ? 2x -->
5857
In the following figure, after you click
59-
`https://learn.microsoft.com/_themes/docs.theme/master/en-us/_themes/styles/b66bc881.site-ltr.css:2`<!-- :2 at end causes not to work. --> you are taken to line 2 of
60-
`https://learn.microsoft.com/_themes/docs.theme/master/en-us/_themes/styles/b66bc881.site-ltr.css`, where the `.content h1:first-of-type` CSS rule is defined.<!-- master kind of works but all lines are concated. changing master to main doesn't work -->
58+
`https://learn.microsoft.com/_themes/docs.theme/master/en-us/_themes/styles/b66bc881.site-ltr.css:2`<!-- :2 at end causes not to work. --><!--keep /en-us--> you are taken to line 2 of
59+
`https://learn.microsoft.com/_themes/docs.theme/master/_themes/styles/b66bc881.site-ltr.css`, where the `.content h1:first-of-type` CSS rule is defined.<!-- master kind of works but all lines are concated. changing master to main doesn't work -->
6160

6261
![Viewing the stylesheet where a rule is defined](./reference-images/css-elements-styles-h1-highlight.png)
6362

microsoft-edge/devtools-guide-chromium/device-mode/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ DevTools provides the following mobile device emulation features:
3838
<!-- ====================================================================== -->
3939
## Limitations
4040

41-
**Device Emulation** is a [first-order approximation](https://en.wikipedia.org/wiki/Order_of_approximation#First-order) of the look and feel of your page on a mobile device. **Device Emulation** doesn't actually run your code on a mobile device. Instead, you simulate the mobile user experience from your laptop or desktop.
41+
**Device Emulation** is a [first-order approximation](https://wikipedia.org/wiki/Order_of_approximation#First-order) of the look and feel of your page on a mobile device. **Device Emulation** doesn't actually run your code on a mobile device. Instead, you simulate the mobile user experience from your laptop or desktop.
4242

4343
Some aspects of mobile devices are never emulated in DevTools. For example, the architecture of mobile CPUs is different than the architecture of laptop or desktop CPUs. When in doubt, your best bet is to actually run your page on a mobile device.
4444

microsoft-edge/devtools-guide-chromium/evaluate-performance/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ See also [Optimize website speed using Lighthouse](../speed/get-started.md).
3636

3737
In the following tutorial, you open DevTools on a "Sluggish Animation" demo page and use the **Performance** tool to find a performance bottleneck on the page.
3838

39-
1. Open the [Sluggish Animation](https://microsoftedge.github.io/Demos/devtools-performance-get-started/) demo page in your InPrivate tab or window. To do that, right-click the link and then select **Open link in InPrivate window**. You'll profile this page, which shows a variable number of icons moving up and down. For more information about InPrivate, see [Browse InPrivate in Microsoft Edge](https://support.microsoft.com/en-us/microsoft-edge/browse-inprivate-in-microsoft-edge-cd2c9a48-0bc4-b98e-5e46-ac40c84e27e2)
39+
1. Open the [Sluggish Animation](https://microsoftedge.github.io/Demos/devtools-performance-get-started/) demo page in your InPrivate tab or window. To do that, right-click the link and then select **Open link in InPrivate window**. You'll profile this page, which shows a variable number of icons moving up and down. For more information about InPrivate, see [Browse InPrivate in Microsoft Edge](https://support.microsoft.com/microsoft-edge/browse-inprivate-in-microsoft-edge-cd2c9a48-0bc4-b98e-5e46-ac40c84e27e2)
4040

4141
Note: The source for this demo is at [MicrosoftEdge / Demos > devtools-performance-get-started](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-performance-get-started).
4242

microsoft-edge/devtools-guide-chromium/javascript/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ The first step in debugging is to find a sequence of actions that consistently r
3232

3333
1. Open the demo webpage [Get Started Debugging JavaScript](https://microsoftedge.github.io/Demos/devtools-js-get-started/) in a new window or tab. To open the webpage, right-click the link and select "Open link in new tab" or "Open link in new Window" on the popup window. Alternatively you can press and hold **Ctrl** (for Windows, Linux) or **Command** (for macOS), and then click the link.
3434

35-
> [!TIP]
36-
> Open Microsoft Edge in InPrivate Mode. InPrivate Mode ensures that Microsoft Edge runs in a clean state. For more information, see [Browse InPrivate in Microsoft Edge](https://support.microsoft.com/en-us/microsoft-edge/browse-inprivate-in-microsoft-edge-cd2c9a48-0bc4-b98e-5e46-ac40c84e27e2)
35+
Tip: Open Microsoft Edge in InPrivate Mode, to ensure that Microsoft Edge runs in a clean state. For more information, see [Browse InPrivate in Microsoft Edge](https://support.microsoft.com/microsoft-edge/browse-inprivate-in-microsoft-edge-cd2c9a48-0bc4-b98e-5e46-ac40c84e27e2)
3736

3837
<!-- You can view the source files for the Debugging demo at the [MicrosoftEdge/Demos > devtools-js-get-started](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-js-get-started) repo folder. -->
3938

microsoft-edge/devtools-guide-chromium/javascript/publish-source-maps-to-azure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Source maps map your compiled production code to your original development sourc
2222

2323
You must index your source maps on the Azure Artifacts symbol server, so that your source maps are available to DevTools when you debug your production website.
2424

25-
To do this, add the `x_microsoft_symbol_client_key` string property to your source maps at compilation time. This property contains the lowercase hexadecimal value of the [256-bit SHA-2 hash](https://en.wikipedia.org/wiki/SHA-2) of your corresponding original source file.
25+
To do this, add the `x_microsoft_symbol_client_key` string property to your source maps at compilation time. This property contains the lowercase hexadecimal value of the [256-bit SHA-2 hash](https://wikipedia.org/wiki/SHA-2) of your corresponding original source file.
2626

2727
DevTools is then able to compute this hash for each of your compiled files, and use the hash to retrieve the correct source map from the Azure Artifacts symbol server. In order to securely retrieve your source maps, DevTools uses a Personal Access Token that you provide, to connect to the Azure Artifacts symbol server.
2828

0 commit comments

Comments
 (0)