Skip to content

Commit 26310ea

Browse files
mikehoffmsdiekuscaptainbrosset
authored
Sync lists of demos (#83)
* sync readme > pwa w/ article * Update README.md Co-authored-by: Patrick Brosset <[email protected]> * change to "PWA installer" * change pwastore to pwa-installer * flags wording * remove "demo" from Desc * format/fix links * table headings, demo in 4th col * technologies typo * groupEnd() * inc cmts * start normalize titles * scrub * Console h1 * title/h1 sync * remove cmt block * all top dirs in main Readme * Polish table demo names * verbose heading * col heading Readme * tables above * bold Contents: * template row * replace by latest main * blank line at end * del /pwa-web-install-api/ * correct flag * webnn desc * x-link webplat demos * docs links fix * update link text * crash Readme link * link to Samples articles * link text for DevTools demos * console table * demo demo * trim todos * link Cross-browser API samples * linkfix * move cal up, show html filenames * css gap playground nav * sync-pwa-demos Readme clarify * email client App Avail icon * email-client See Also --------- Co-authored-by: Diego Gonzalez <[email protected]> Co-authored-by: Patrick Brosset <[email protected]>
1 parent fe9c02b commit 26310ea

File tree

123 files changed

+982
-508
lines changed

Some content is hidden

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

123 files changed

+982
-508
lines changed

1DIV/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
**1DIV** is a demo web app that enables you to create multiple CSS designs by using a single HTML `div` element. Your CSS designs are only saved locally, in the browser's memory. This demo app can be installed locally as a Progressive Web App (PWA).
66

77

8+
<!-- ====================================================================== -->
89
## Requirements
910

10-
The main goal of this demo is to showcase the Window Controls Overlay (WCO) PWA feature, which is described in [Display content in the title bar](https://learn.microsoft.com/microsoft-edge/progressive-web-apps/how-to/window-controls-overlay). To make the most use of this demo, view it in a browser that's based on the Chromium engine, such as Microsoft Edge.
11+
This demo showcases the Window Controls Overlay (WCO) PWA feature. For instructions, see [Demo app](https://learn.microsoft.com/microsoft-edge/progressive-web-apps/how-to/window-controls-overlay#demo-app) in _Display content in the title bar area using Window Controls Overlay_. To make the most of this demo, view it in a browser that's based on the Chromium engine, such as Microsoft Edge.
1112

1213
The demo app also demonstrates using [constructable stylesheets](https://developers.google.com/web/updates/2019/02/constructable-stylesheets). Constructable stylesheets are supported in the following web browsers:
1314
* Browsers that are based on the Chromium engine, such as Microsoft Edge.
1415
* Firefox, by enabling the `layout.css.constructable-stylesheets.enabled` flag.
1516

1617

18+
<!-- ====================================================================== -->
1719
## Building locally
1820

1921
To run this demo app as-is, you don't need to build it.
@@ -22,7 +24,7 @@ If you make a change to a file in the `src` directory of this demo app, or updat
2224

2325
To build this demo app locally, at a command prompt such as Windows Terminal, run the following commands in the present directory:
2426

25-
```
27+
```shell
2628
npm install
2729
npm run build
2830
```

1DIV/dist/css.worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 139 additions & 77 deletions
Large diffs are not rendered by default.

SECURITY.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
66

7-
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://learn.microsoft.com/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Definition of a Security Vulnerability](https://learn.microsoft.com/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
88

99
## Reporting Security Issues
1010

@@ -14,17 +14,17 @@ Instead, please report them to the Microsoft Security Response Center (MSRC) at
1414

1515
If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/msrc/pgp-key-msrc).
1616

17-
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
17+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
1818

1919
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
2020

21-
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22-
* Full paths of source file(s) related to the manifestation of the issue
23-
* The location of the affected source code (tag/branch/commit or direct URL)
24-
* Any special configuration required to reproduce the issue
25-
* Step-by-step instructions to reproduce the issue
26-
* Proof-of-concept or exploit code (if possible)
27-
* Impact of the issue, including how an attacker might exploit the issue
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22+
* Full paths of source file(s) related to the manifestation of the issue
23+
* The location of the affected source code (tag/branch/commit or direct URL)
24+
* Any special configuration required to reproduce the issue
25+
* Step-by-step instructions to reproduce the issue
26+
* Proof-of-concept or exploit code (if possible)
27+
* Impact of the issue, including how an attacker might exploit the issue
2828

2929
This information will help us triage your report more quickly.
3030

@@ -38,4 +38,4 @@ We prefer all communications to be in English.
3838

3939
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/msrc/cvd).
4040

41-
<!-- END MICROSOFT SECURITY.MD BLOCK -->
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

built-in-ai/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44

55
The files in this directory are playgrounds and samples for the built-in AI APIs in Microsoft Edge.
66

7-
To learn more, see [Prompt a built-in language model with the Prompt API](https://learn.microsoft.com/microsoft-edge/web-platform/prompt-api) and [Summarize, write, and rewrite text with the Writing Assistance APIs](https://learn.microsoft.com/microsoft-edge/web-platform/writing-assistance-apis).
7+
To learn more, see:
8+
* [Prompt a built-in language model with the Prompt API](https://learn.microsoft.com/microsoft-edge/web-platform/prompt-api)
9+
* [Summarize, write, and rewrite text with the Writing Assistance APIs](https://learn.microsoft.com/microsoft-edge/web-platform/writing-assistance-apis)
810

11+
12+
<!-- ====================================================================== -->
913
## Contributing
1014

11-
To make changes to the playgrounds and samples source code, clone this repository and follow these steps:
15+
If you want to make changes to the playgrounds and samples source code, clone this repository and then follow these steps:
1216

1317
* To make changes to the source HTML content for one of the playgrounds or samples:
1418

@@ -26,9 +30,9 @@ To make changes to the playgrounds and samples source code, clone this repositor
2630

2731
Make your changes directly to the JavaScript or CSS files in the `static` directory.
2832

29-
To run the playgrounds locally:
33+
Then run the playgrounds locally:
3034

3135
1. Run `npm run build` to generate the static site.
3236
1. Run `cd ../../` to go to the Demos repository's parent directory.
3337
1. Start a local HTTP server from that parent directory. For example: `npx http-server -p 8080`.
34-
1. Navigate to `http://localhost:8080/Demos/built-in-ai/` in your browser.
38+
1. Go to `http://localhost:8080/Demos/built-in-ai/` in your browser.

css-gap-decorations/README.md

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,46 @@
22

33
This directory contains demos that showcase the use of [CSS Gap Decorations](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/CSSGapDecorations/explainer.md), a feature proposal by the Microsoft Edge team to draw line decorations within gaps in CSS Grid, Flexbox, and Multi-column layouts.
44

5+
6+
<!-- ====================================================================== -->
57
## Demos
68

7-
* [Burger Menu](https://microsoftedge.github.io/Demos/css-gap-decorations/burger-menu.html)
8-
* [Daily CSS News](https://microsoftedge.github.io/Demos/css-gap-decorations/daily-css-news.html)
9-
* [Guitar Fret Board](https://microsoftedge.github.io/Demos/css-gap-decorations/guitar-fret-board.html)
10-
* [Notebook](https://microsoftedge.github.io/Demos/css-gap-decorations/notebook.html)
11-
* [Calendar](https://microsoftedge.github.io/Demos/css-gap-decorations/calendar.html)
12-
* [Personal site](https://microsoftedge.github.io/Demos/css-gap-decorations/personal-site.html)
13-
* [The Daily Oddity](https://microsoftedge.github.io/Demos/css-gap-decorations/the-daily-oddity.html)
9+
* [Burger Menu](https://microsoftedge.github.io/Demos/css-gap-decorations/burger-menu.html) - `burger-menu.html`
10+
* [Calendar](https://microsoftedge.github.io/Demos/css-gap-decorations/calendar.html) - `calendar.html`
11+
* [Daily CSS News](https://microsoftedge.github.io/Demos/css-gap-decorations/daily-css-news.html) - `daily-css-news.html`
12+
* [Guitar Fretboard](https://microsoftedge.github.io/Demos/css-gap-decorations/guitar-fretboard.html) - `guitar-fretboard.html`
13+
* [Notebook](https://microsoftedge.github.io/Demos/css-gap-decorations/notebook.html) - `notebook.html`
14+
* [Personal site](https://microsoftedge.github.io/Demos/css-gap-decorations/personal-site.html) - `personal-site.html`
15+
* [The Daily Oddity](https://microsoftedge.github.io/Demos/css-gap-decorations/the-daily-oddity.html) - `the-daily-oddity.html`
16+
1417

18+
<!-- ====================================================================== -->
1519
## Developer playground
1620

17-
* [CSS Gap Decorations playground](https://microsoftedge.github.io/Demos/css-gap-decorations/playground.html)
21+
* [CSS Gap Decorations playground](https://microsoftedge.github.io/Demos/css-gap-decorations/playground.html) - `playground.html`
22+
1823

19-
## Try the feature and share feedback
24+
<!-- ====================================================================== -->
25+
## Try the feature
2026

2127
To try the feature, follow these steps:
2228

23-
1. Use a Chromium-based browser, such as Microsoft Edge or Chrome, and make sure the version is at least 139.
29+
1. Open a Chromium-based browser, such as Microsoft Edge or Chrome, and make sure the version is at least 139.
30+
2431
1. In the browser, open a new tab and go to `about:flags`.
25-
1. Search for "Experimental Web Platform features" in the search box.
26-
1. Set the **Experimental Web Platform features** flag to **Enabled**, and then restart the browser.
32+
33+
In Microsoft Edge, you end up at `edge://flags`.
34+
35+
1. In the **Search flags** box, enter **Experimental Web Platform features**.
36+
37+
1. Set the **Experimental Web Platform features** flag to **Enabled**.
38+
39+
1. Click the **Restart** button.
40+
41+
The browser restarts, with the flag applied.
42+
43+
44+
<!-- ====================================================================== -->
45+
## Share feedback
2746

2847
To share feedback, please [open an issue on the MSEdgeExplainers repository](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?template=css-gap-decorations.md).

css-gap-decorations/guitar-fret-board.html renamed to css-gap-decorations/guitar-fretboard.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
<head>
55
<meta charset="UTF-8">
6-
<title>Guitar Fret Board</title>
6+
<title>Guitar Fretboard</title>
77
<style>
8-
.fret-board {
8+
.fretboard {
99
--string-width: 1.5px;
1010
--space-between-strings: 45px;
1111
--fret-width: 6px;
@@ -46,7 +46,7 @@
4646
</head>
4747

4848
<body>
49-
<div class="fret-board"></div>
49+
<div class="fretboard"></div>
5050
</body>
5151

5252
</html>

css-gap-decorations/playground.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,19 +254,20 @@ <h1>CSS Gap Decorations playground</h1>
254254
target="_blank">
255255
CSS Gaps Decorations Module Level 1</a>.
256256
Use the controls to tweak gap, rule, and paint-order properties in real time
257-
and see how they affect multicolumn, flex, and grid layouts.
257+
and see how they affect <a href="#grid">grid</a>, <a href="#flex">flex</a>, and <a href="#multicolumn">multicolumn</a> layouts.
258258
</p>
259259
<p>
260260
This is a non-exhaustive demo. See the spec for full details on the properties and their values.
261261
</p>
262262
<p>
263-
As of right now, this is only implemented for Chromium-based browsers, and a flag is needed to enable the feature:
264-
<code>--enable-features=CSSGapDecoration</code>
263+
As of right now, this is only implemented for Chromium-based browsers, and
264+
the "Experimental Web Platform features" flag is needed to enable the feature:<br/>
265+
<code>--enable-features=enable-experimental-web-platform-features</code>
265266
</p>
266267
</div>
267268

268269
<section>
269-
<h2>Grid Layout</h2>
270+
<h2 id="grid">Grid Layout</h2>
270271
<div class="demo-group">
271272
<aside class="controls" data-target=".grid">
272273
<label>Gap (px): <output id="grGapVal">30</output></label>
@@ -335,7 +336,7 @@ <h2>Grid Layout</h2>
335336
</section>
336337

337338
<section>
338-
<h2>Flex Layout</h2>
339+
<h2 id="flex">Flex Layout</h2>
339340
<div class="demo-group">
340341
<aside class="controls" data-target=".flex-container">
341342
<label>Gap (px): <output id="fxGapVal">20</output></label>
@@ -399,7 +400,7 @@ <h2>Flex Layout</h2>
399400
</section>
400401

401402
<section>
402-
<h2>Multicolumn Layout</h2>
403+
<h2 id="multicolumn">Multicolumn Layout</h2>
403404
<div class="demo-group">
404405
<aside class="controls">
405406
<label>Column-gap (px): <output id="mcColGapVal">30</output></label>

css-masonry/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# CSS Masonry demos
22

3-
This directory contains demo pages that showcase the implementation of CSS Masonry in Chromium.
3+
This directory contains demo pages that showcase the implementation of CSS Masonry in the Chromium browser engine.
44

5+
See also:
6+
* [Masonry layout](https://developer.mozilla.org/docs/Web/CSS/CSS_grid_layout/Masonry_layout) at MDN.
7+
8+
9+
<!-- ====================================================================== -->
510
## Enable Masonry support
611

712
To try the demos, first enable Masonry:
@@ -11,6 +16,8 @@ To try the demos, first enable Masonry:
1116
1. Search for "CSS Masonry Layout" in the search box.
1217
1. Set the **CSS Masonry Layout** flag to **Enabled**, and then restart the browser.
1318

19+
20+
<!-- ====================================================================== -->
1421
## Demos
1522

1623
* [Blog](https://microsoftedge.github.io/Demos/css-masonry/blog.html)
@@ -41,4 +48,4 @@ To try the demos, first enable Masonry:
4148
* [Custom track sizes](https://microsoftedge.github.io/Demos/css-masonry/syntax-examples/custom-track-sizes.html)
4249
* [Masonry shorthand](https://microsoftedge.github.io/Demos/css-masonry/syntax-examples/masonry-shorthand.html)
4350
* [Spanning multiple tracks](https://microsoftedge.github.io/Demos/css-masonry/syntax-examples/span-multiple-tracks.html)
44-
* [Item tolerance](https://microsoftedge.github.io/Demos/css-masonry/syntax-examples/item-tolerance.html)
51+
* [Item tolerance](https://microsoftedge.github.io/Demos/css-masonry/syntax-examples/item-tolerance.html)

css-mirroring-sourcemaps-demo/README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@ This is a basic app to test the sourcemap support for CSS mirroring in [the Edge
66

77
To run the app and test the functionality follow these steps:
88

9-
1. Make sure you have the Microsoft Edge DevTools for Visual Studio Code extension installed
10-
1. Clone this repo or [download the zip](demo.zip) of this app and unpack it</li>
11-
1. Open the folder in Visual Studio Code
12-
1. Run `npm i` in the Terminal
13-
1. Run `npm start` in the Terminal
14-
1. Switch VS Code to "Run and Debug" and run "Launch Edge and Attach DevTools" (the project is already configured to use [Edge Canary](https://www.microsoftedgeinsider.com/download/canary), just make sure you have it installed)
9+
1. Make sure you have the Microsoft Edge DevTools for Visual Studio Code extension installed.
10+
11+
1. Clone this "MicrosoftEdge / Demos" repo. Or, [download the zip](demo.zip) of this sourcemap demo app, and then unpack the `.zip` file.
12+
13+
1. Open the `/Demos/css-mirroring-sourcemaps-demo/` folder in Visual Studio Code.
14+
15+
1. Run `npm i` in the Terminal.
16+
17+
1. Run `npm start` in the Terminal.
18+
19+
1. Switch VS Code to "Run and Debug", and run "Launch Edge and Attach DevTools". (The project is configured to use [Edge Canary](https://www.microsoftedgeinsider.com/download/canary), so make sure you have Edge Canary installed.)
20+
1521
1. Start editing Styles in DevTools and watch them sync!
1622

1723
We have an [issue open in the Extension repository](https://github.com/microsoft/vscode-edge-devtools/issues/965) and we'd love to get your feedback there!
24+
25+
26+
See also:
27+
* [Update .css files from within the Styles tab (CSS mirror editing)](https://learn.microsoft.com/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension/css-mirror-editing-styles-tab) for the DevTools extension for Visual Studio Code.

0 commit comments

Comments
 (0)