├── .gitignore ├── 3DView ├── DOM_View_benchmark.html ├── README.md └── browser_extension │ ├── devtools.html │ ├── devtools.js │ ├── icon.png │ ├── index.html │ ├── manifest.json │ └── src │ ├── babylon.js │ ├── content.js │ └── scene.js ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── docs ├── a11y-testing │ ├── buttons.js │ ├── css │ │ ├── dark-theme.css │ │ ├── light-theme.css │ │ └── styles.css │ ├── icons │ │ └── arrow.svg │ ├── page-with-errors.html │ └── photos │ │ ├── alpaca.jpg │ │ ├── cat.jpg │ │ ├── deer.jpg │ │ ├── horse.jpg │ │ ├── sheep.jpg │ │ ├── socke.jpg │ │ └── unicorns.jpg ├── badges │ └── badges-contrast.html ├── bugs │ └── list-as-table.html ├── console │ ├── demostyles.css │ ├── dom-examples.html │ ├── error-assert.html │ ├── error.html │ ├── favicon_io │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ ├── apple-touch-icon.png │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── favicon.ico │ │ └── site.webmanifest │ ├── logging-demo.html │ ├── logging-examples.html │ ├── logging-types.html │ ├── logging-with-groups.html │ ├── logging-with-specifiers.html │ ├── logging-with-table.html │ ├── mousemove-no-log.html │ ├── mousemove.html │ ├── network-error-fixed.html │ ├── network-error-reported.html │ ├── network-error.html │ └── trace.html ├── inspector │ ├── inspector-demo.html │ └── styles.css └── whats-new │ └── 89 │ ├── favicon_io │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ ├── apple-touch-icon.png │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon.ico │ └── site.webmanifest │ └── target-css-demo.html └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | .DS_Store 352 | -------------------------------------------------------------------------------- /3DView/DOM_View_benchmark.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 3D View benchmarks 4 | 5 | 6 |
This website creates multiple stacks of nested elements with random sizes and colors.
7 |
8 | 51 | 52 | -------------------------------------------------------------------------------- /3DView/README.md: -------------------------------------------------------------------------------- 1 | # Microsoft Edge DevTools 3D View 2 | 3 | This is sample code of a very early prototype for the 3D View feature of Microsoft Edge Developer Tools. 4 | This code helped as a proof of concept. 5 | 6 | You can learn more about the real feature with this [explainer](https://docs.google.com/document/d/16xsQbr1YjjuoxHJlCsAaIzK-s4Ogd6fEuhrSajdVivA/edit), or reading the [blog](https://blogs.windows.com/msedgedev/2020/01/23/debug-z-index-3d-view-edge-devtools/). 7 | 8 | 9 | # Setup 10 | ### Get the code 11 | 1) Clone this repo 12 | 2) Get the latest version of Babylon.js from https://cdn.babylonjs.com/babylon.js. Copy that file and paste into `/browser_extension/src/babylon.js` 13 | 14 | ### Install the extension 15 | 1) Open Edge browser 16 | 2) Navigate to `edge://extensions` 17 | 3) Enable developer mode 18 | 4) Click on 'Load unpacked' 19 | 5) Select the folder `browser_extension` 20 | 21 | This will load the extension in your browser, you should see an icon appear in the right side of the toolbar. Clicking on it won't display any UI since this is a devtools extension. 22 | 23 | ### To use it 24 | 1) Navigate to any website you want to inspect. 25 | 2) Launch the DevTools by pressing `F12` or by right clicking the page and selecting "Inspect". 26 | 3) DevTools will launch with a new tab called "3D View (Prototype)" 27 | 4) Select the tab and reload the website. 28 | 29 | 30 | -------------------------------------------------------------------------------- /3DView/browser_extension/devtools.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /3DView/browser_extension/devtools.js: -------------------------------------------------------------------------------- 1 | var panels = chrome.devtools.panels; 2 | 3 | // DOM panel 4 | panels.create( 5 | "3D View - Prototype", 6 | "icon.png", 7 | "index.html" 8 | ); 9 | -------------------------------------------------------------------------------- /3DView/browser_extension/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/3DView/browser_extension/icon.png -------------------------------------------------------------------------------- /3DView/browser_extension/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 40 | 41 | 42 | 43 |
44 | 45 |
46 | 47 |
48 | 3D View
49 |
50 | This is an example of a very early prototype for the Edge DevTools 3D View.
51 |
52 | Please refresh the page! 53 |
54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /3DView/browser_extension/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "3D View (Prototype)", 3 | "description" : "Sample code of a prototype from Edge DevToold 3D View. ", 4 | "version": "0.1", 5 | "manifest_version": 2, 6 | "devtools_page": "devtools.html", 7 | "icons": { 8 | "16": "icon.png" 9 | }, 10 | "content_scripts": [ 11 | { 12 | "matches": [ 13 | "" 14 | ], 15 | "js": ["src/content.js"] 16 | } 17 | ], 18 | "permissions": ["activeTab", ""] 19 | } 20 | -------------------------------------------------------------------------------- /3DView/browser_extension/src/babylon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/3DView/browser_extension/src/babylon.js -------------------------------------------------------------------------------- /3DView/browser_extension/src/content.js: -------------------------------------------------------------------------------- 1 | 2 | const body = document.getElementsByTagName('body')[0]; 3 | 4 | function findStylesOfElement(element) { 5 | 6 | if (element.nodeType === 1) { 7 | let styles = window.getComputedStyle(element, null); 8 | let rect = element.getBoundingClientRect(); 9 | 10 | let ews = { width: 0, height: 0, x: 0, y: 0, children: [] }; 11 | ews.width = styles['width']; 12 | ews.height = styles['height']; 13 | ews.x = rect['left']; 14 | ews.y = rect['top']; 15 | 16 | if (element.childNodes && element.childNodes.length > 0) { 17 | element.childNodes.forEach(childNode => { 18 | let childWithStyles = findStylesOfElement(childNode); 19 | if (childWithStyles) { 20 | ews.children.push(childWithStyles); 21 | } 22 | }); 23 | } 24 | return ews; 25 | } 26 | return null; 27 | } 28 | 29 | bodyWithStyles = findStylesOfElement(body); 30 | chrome.runtime.sendMessage({ type: 'dom-styles', content: bodyWithStyles }); 31 | -------------------------------------------------------------------------------- /3DView/browser_extension/src/scene.js: -------------------------------------------------------------------------------- 1 | let canvas = document.getElementById('renderCanvas'); 2 | let engine = new BABYLON.Engine(canvas, true); 3 | let scene = null; 4 | 5 | engine.runRenderLoop(function () { 6 | if (scene) { 7 | scene.render(); 8 | } 9 | }); 10 | 11 | // Resize 12 | window.addEventListener('resize', function () { 13 | engine.resize(); 14 | }); 15 | 16 | chrome.runtime.onMessage.addListener( (request, sender, sendResponse) => { 17 | if (request.type == 'dom-styles') { 18 | scene = createScene(request.content); 19 | document.getElementById('message').remove(); 20 | } 21 | } 22 | ); 23 | 24 | 25 | let createScene = function (content) { 26 | 27 | let scene = new BABYLON.Scene(engine); 28 | 29 | let camera = new BABYLON.ArcRotateCamera('Camera', Math.PI / 2, Math.PI / 3, 1000, BABYLON.Vector3(0, 0, 0)); 30 | camera.attachControl(canvas, true, false); 31 | camera.lowerBetaLimit = 0.1; 32 | camera.upperBetaLimit = (Math.PI / 2) * 0.99; 33 | camera.lowerRadiusLimit = 100; 34 | camera.upperRadiusLimit = 5000; 35 | camera.panningSensibility = 10; 36 | camera.wheelPrecision = 1.1; 37 | 38 | let boxH = 15; 39 | let bodyWidth = 0; 40 | let bodyHeight = 0; 41 | 42 | let addActions = function(mesh) { 43 | mesh.actionManager = new BABYLON.ActionManager(scene); 44 | mesh.actionManager.registerAction( 45 | new BABYLON.SetValueAction(BABYLON.ActionManager.OnPointerOutTrigger, mesh.material, 'emissiveColor', mesh.material.emissiveColor)); 46 | mesh.actionManager.registerAction( 47 | new BABYLON.SetValueAction(BABYLON.ActionManager.OnPointerOverTrigger, mesh.material, 'emissiveColor', BABYLON.Color3.Purple())); 48 | } 49 | 50 | let createBoxForDepth = function(element, depthLevel = 0) { 51 | 52 | let width = parseInt(element.width.replace('px', '')) || 1; 53 | let height = parseInt(element.height.replace('px', '')) || 1; 54 | 55 | if (bodyWidth === 0 && bodyHeight === 0) { 56 | bodyWidth = width; 57 | bodyHeight = height; 58 | } 59 | 60 | let x = bodyWidth / 2 + (-(width / 2) - element.x); 61 | let y = -bodyHeight / 2 + ((height / 2) + element.y); 62 | let rgb = [255, 200 - 10 * depthLevel, 100 - 20 * depthLevel]; 63 | 64 | let boxMaterial = new BABYLON.StandardMaterial('ground', scene, true); 65 | boxMaterial.emissiveColor = BABYLON.Color3.FromInts(rgb[0], rgb[1], rgb[2]); 66 | boxMaterial.alpha = 0.4; 67 | 68 | let id = element.name; 69 | let box = BABYLON.MeshBuilder.CreateBox(id, { height: boxH, width: width, depth: height }, scene, true); 70 | box.material = boxMaterial; 71 | box.position.x = x; 72 | box.position.z = y; 73 | box.position.y = (boxH + 3) * depthLevel; 74 | 75 | addActions(box); 76 | 77 | if (element.children && element.children.length > 0) { 78 | let nd = depthLevel + 1; 79 | element.children.forEach(function (ch) { 80 | createBoxForDepth(ch, nd); 81 | }); 82 | } 83 | } 84 | 85 | // Boxes 86 | createBoxForDepth(content, 0); 87 | 88 | return scene; 89 | } 90 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Microsoft Open Source Code of Conduct 2 | 3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 4 | 5 | Resources: 6 | 7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) 8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) 9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ⚠️ **THIS REPOSITORY IS NOT MAINTAINED ANYMORE AND ALL DEMOS HAVE MOVED TO [THE DEMOS REPOSITORY](https://github.com/MicrosoftEdge/Demos)** ⚠️ 2 | 3 | # Microsoft Edge DevTools Samples 4 | 5 | A collection of samples for Edge Developer Tools. 6 | 7 | ## Contributing 8 | 9 | This project welcomes contributions and suggestions. Most contributions require you to agree to a 10 | Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us 11 | the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. 12 | 13 | When you submit a pull request, a CLA bot will automatically determine whether you need to provide 14 | a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions 15 | provided by the bot. You will only need to do this once across all repos using our CLA. 16 | 17 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 18 | For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or 19 | contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. 20 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Security 4 | 5 | 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/). 6 | 7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below. 8 | 9 | ## Reporting Security Issues 10 | 11 | **Please do not report security vulnerabilities through public GitHub issues.** 12 | 13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). 14 | 15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). 16 | 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). 18 | 19 | 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: 20 | 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 28 | 29 | This information will help us triage your report more quickly. 30 | 31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. 32 | 33 | ## Preferred Languages 34 | 35 | We prefer all communications to be in English. 36 | 37 | ## Policy 38 | 39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). 40 | 41 | 42 | -------------------------------------------------------------------------------- /docs/a11y-testing/buttons.js: -------------------------------------------------------------------------------- 1 | const donations = document.querySelector('#donate'); 2 | const sitenav = document.querySelector('#sitenavigation'); 3 | let currentbutton = null; 4 | let currentnav = document.querySelector('#sitenavigation li'); 5 | 6 | sitenav.addEventListener('click', e => { 7 | e.preventDefault(); 8 | let t = e.target; 9 | if (t.href) { 10 | if (currentnav) { currentnav.classList.remove('current'); } 11 | t.parentNode.classList.add('current'); 12 | currentnav = t.parentNode; 13 | e.preventDefault(); 14 | } 15 | }); 16 | 17 | 18 | donations.addEventListener('click', e => { 19 | let t = e.target; 20 | if (t.classList.contains('donationbutton')) { 21 | if (currentbutton) { currentbutton.classList.remove('current'); } 22 | t.classList.add('current'); 23 | currentbutton = t; 24 | e.preventDefault(); 25 | } 26 | if (t.classList.contains('submitbutton')) { 27 | alert('Thanks for your donation!') 28 | } 29 | }) -------------------------------------------------------------------------------- /docs/a11y-testing/css/dark-theme.css: -------------------------------------------------------------------------------- 1 | :root{ 2 | --body-background: #111; 3 | --body-foreground: #eee; 4 | --header-background: #000; 5 | --footer-background: #000; 6 | --footer-foreground: #666; 7 | --more-link: lime; 8 | --navitems-background: mediumblue; 9 | --navitems-links: #fff; 10 | --navhover-background: green; 11 | --navitems-link-current-background: skyblue; 12 | --navitems-link-current-foreground: #369; 13 | --funding-medium: yellow; 14 | --funding-high: green; 15 | --funding-low: red; 16 | --funding-color: #000; 17 | --donation-button: darkslategray; 18 | --donation-button-color: white; 19 | --donation-submit: green; 20 | --donation-button-chosen: green; 21 | --donation-button-focused: #1479a2 ; 22 | --donation-button-chosen-color: white; 23 | --sitenav-current: linear-gradient(to bottom,orange,red); 24 | --sitenav-background: linear-gradient(to top,orange,yellow); 25 | --sitenav-textshadow: 1px 0 2px #000; 26 | --sitenav-arrow: red; 27 | --sitenav-link: #fff; 28 | --sitenav-link-highlight: #fff; 29 | } -------------------------------------------------------------------------------- /docs/a11y-testing/css/light-theme.css: -------------------------------------------------------------------------------- 1 | :root{ 2 | --body-background: #f8f8f8; 3 | --body-foreground: #111; 4 | --header-background: #69c; 5 | --footer-background: #3a3a3a; 6 | --footer-foreground: #999; 7 | --more-link: rgb(123, 123, 123); 8 | --navitems-background: navy; 9 | --navitems-links: #fff; 10 | --navhover-background: dodgerblue; 11 | --navitems-link-current-background: skyblue; 12 | --navitems-link-current-foreground: #369; 13 | --funding-medium: yellow; 14 | --funding-high: green; 15 | --funding-low: red; 16 | --funding-color: #000; 17 | --funding-background: #eee; 18 | --donation-button: darkslategray; 19 | --donation-button-color: white; 20 | --donation-submit: green; 21 | --donation-button-focused: #1479a2 ; 22 | --donation-button-chosen: green; 23 | --donation-button-chosen-color: white; 24 | --sitenav-current: linear-gradient(to bottom,orange,red); 25 | --sitenav-background: linear-gradient(to top,orange,yellow); 26 | --sitenav-textshadow: 1px 0 2px #000; 27 | --sitenav-arrow: red; 28 | --sitenav-link: #fff; 29 | --sitenav-link-highlight: #fff; 30 | } -------------------------------------------------------------------------------- /docs/a11y-testing/css/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 3 | background: var(--body-background); 4 | color: var(--body-foreground); 5 | margin: 0 auto; 6 | padding: 0; 7 | max-width: 80em; 8 | } 9 | header { 10 | display: flex; 11 | background: var(--header-background); 12 | padding: .5em 1em; 13 | min-height: 2vh; 14 | position: -webkit-sticky; 15 | position: sticky; 16 | top: 0; 17 | z-index: 3; 18 | } 19 | #sidebar { 20 | flex: 1; 21 | order: 2; 22 | min-width: 10em; 23 | padding: 0 1em; 24 | margin-top: 2em; 25 | } 26 | main { 27 | flex: 6; 28 | order: 3; 29 | min-width: 20em; 30 | margin-top: 1em; 31 | } 32 | section { 33 | min-height: 88vh; 34 | display: flex; 35 | flex-wrap: wrap; 36 | } 37 | article { 38 | padding: 1em 2em 0 1em; 39 | display: flex; 40 | flex-wrap: wrap; 41 | gap: 10px; 42 | scroll-snap-margin-top: 5em; 43 | scroll-margin-top: 5em; 44 | } 45 | article img { 46 | flex: 0 0 100%; 47 | width: 100%; 48 | height: auto; 49 | } 50 | .articletext { 51 | flex: 4; 52 | display: flex; 53 | flex-wrap: wrap; 54 | flex-direction: column; 55 | } 56 | article:first-of-type { 57 | padding-top: 0; 58 | } 59 | footer { 60 | padding: 5px 10px; 61 | min-height: 10vh; 62 | display: block; 63 | margin-top: 1em; 64 | font-size: .8em; 65 | background: var(--footer-background); 66 | color: var(--footer-foreground); 67 | } 68 | 69 | /* =forms */ 70 | header form { 71 | align-items: center; 72 | display: flex; 73 | flex: 1; 74 | flex-grow:inherit; 75 | gap: 1em; 76 | } 77 | header label { 78 | flex: 1; 79 | } 80 | header input[type=search] { 81 | flex: 2; 82 | font-family: inherit; 83 | font-size: 1em; 84 | border: none; 85 | } 86 | header input[type=submit] { 87 | flex: 1; 88 | font-family: inherit; 89 | border: none; 90 | font-size: 1em; 91 | background: var(--donation-submit); 92 | color: var(--donation-button-color); 93 | } 94 | #donate { 95 | font-size: .8em; 96 | margin-top: 2em; 97 | } 98 | #donate li { 99 | margin: 0; 100 | padding: 0 0 5px 0; 101 | } 102 | #donate ul { 103 | margin: 0; 104 | background: var(--funding-background); 105 | padding: 5px; 106 | } 107 | .donationbutton { 108 | background: var(--donation-button); 109 | color: var(--donation-button-color); 110 | display: inline-block; 111 | padding: 2px 5px; 112 | flex: 1; 113 | text-align: center; 114 | cursor: pointer; 115 | } 116 | .donationbutton.current { 117 | background: var(--donation-button-chosen); 118 | color: var(--donation-button-chosen-color); 119 | } 120 | .donationrow { 121 | display: flex; 122 | gap: 5px; 123 | padding-bottom: 5px; 124 | } 125 | .submitbutton { 126 | cursor: pointer; 127 | background: var(--donation-submit); 128 | color: var(--donation-button-color); 129 | display: inline-block; 130 | padding: 2px 5px; 131 | flex: 1; 132 | text-align: center; 133 | } 134 | .freedonation { 135 | flex: 3; 136 | } 137 | .smallinput { 138 | background: #ccc; 139 | border: none; 140 | flex: 1; 141 | width: 5em; 142 | font-family: inherit; 143 | } 144 | 145 | /* =navigation */ 146 | 147 | #sitenavigation { 148 | order: 1; 149 | z-index: 3; 150 | flex: 0 0 100%; 151 | background: var(--sitenav-background); 152 | position: -webkit-sticky; 153 | position: sticky; 154 | top: 2.8em; 155 | } 156 | #sitenavigation ul { 157 | display: flex; 158 | margin: 0 0 0 1em; 159 | padding: 0; 160 | flex-direction: row; 161 | gap: 0; 162 | flex-wrap: wrap; 163 | align-items: stretch; 164 | } 165 | #sitenavigation li { 166 | margin: 0; 167 | padding: 0; 168 | } 169 | #sitenavigation a { 170 | align-self: center; 171 | display: block; 172 | padding: 5px 10px; 173 | text-decoration: none; 174 | color: var(--sitenav-link); 175 | text-shadow: var(--sitenav-textshadow); 176 | position: relative; 177 | } 178 | #sitenavigation .current a, #sitenavigation a:hover { 179 | background: var(--sitenav-current); 180 | color: var(--sitenav-link-highlight); 181 | } 182 | #sitenavigation .current a::after, #sitenavigation a:hover::after{ 183 | content: '▼'; 184 | position: absolute; 185 | left: calc(50% - .5em); 186 | bottom: -0.8em; 187 | color: var(--sitenav-arrow); 188 | text-shadow: none; 189 | } 190 | #sidebar nav ul { 191 | margin: 0; 192 | padding: 0; 193 | } 194 | #sidebar nav li { 195 | margin: 0 0 5px 0; 196 | padding: 0 0 .2em 0; 197 | background: var(--navitems-background); 198 | position: relative; 199 | } 200 | #sidebar nav li a { 201 | outline: none; 202 | color: var(--navitems-links); 203 | text-decoration: none; 204 | z-index: 2; 205 | padding:.2em .5em; 206 | display: block; 207 | position: relative; 208 | } 209 | #sidebar nav li a:hover { 210 | color: var(--navitems-link-current-foreground); 211 | background: var(--navitems-link-current-background); 212 | transition: 400ms; 213 | } 214 | 215 | #sidebar nav li::after{ 216 | position: absolute; 217 | z-index: 1; 218 | content: ''; 219 | top: 0; 220 | left: 0; 221 | bottom: 0; 222 | right: 100%; 223 | background: var(--navhover-background); 224 | transition: 600ms; 225 | } 226 | #sidebar nav li:hover::after { 227 | position: absolute; 228 | z-index: 1; 229 | content: ''; 230 | top: 0; 231 | left: 0; 232 | bottom: 0; 233 | right: 0; 234 | background: var(--navhover-background); 235 | } 236 | :is(#sidebar ,#sitenavigation) li::marker { 237 | content: ''; 238 | } 239 | 240 | /* =fundingstatus */ 241 | .medium { 242 | color: var(--funding-medium); 243 | } 244 | .high { 245 | color: var(--funding-high); 246 | } 247 | .low { 248 | color: var(--funding-low); 249 | } 250 | 251 | /* =typography */ 252 | header h1 { 253 | flex: 1; 254 | font-size: 1.5em; 255 | margin:0; 256 | padding: 0; 257 | font-weight: lighter; 258 | } 259 | h2 { 260 | flex: 0 0 100%; 261 | font-weight: lighter; 262 | margin: 0 0 .5em 0; 263 | } 264 | 265 | .articletext p { 266 | margin: 0; 267 | padding: 0 0 .5em 0; 268 | line-height: 1.3; 269 | } 270 | .more { 271 | color: var(--more-link); 272 | align-self: flex-end; 273 | display: flex; 274 | align-items: center; 275 | gap: 0.5em; 276 | font-size: 1.5em; 277 | text-decoration: none; 278 | } 279 | .more svg { 280 | fill: inherit; 281 | width: 1.5em; 282 | height: 1.5em; 283 | } 284 | .more:hover svg { 285 | transform: scale(1.5); 286 | transition: 400ms; 287 | } 288 | 289 | /* =mediaqueries */ 290 | 291 | @media (prefers-reduced-motion: no-preference) { 292 | html { 293 | scroll-behavior: smooth; 294 | } 295 | } 296 | article:target h2 { 297 | animation: pop 1s; 298 | } 299 | @keyframes pop { 300 | 0% { opacity: 1; } 301 | 25% { opacity: 0.5; } 302 | 50% { opacity: 1; } 303 | 75% { opacity: 0.5; } 304 | 100% { opacity: 1 } 305 | } 306 | @media all and (min-width: 600px) { 307 | article img { 308 | max-width: 25%; 309 | height: 100%; 310 | flex: 2; 311 | display: inline-block; 312 | } 313 | } 314 | -------------------------------------------------------------------------------- /docs/a11y-testing/icons/arrow.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /docs/a11y-testing/page-with-errors.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Demo page with accessibility issues 8 | 9 | 10 | 11 | 12 | 13 |
14 |

Animal shelter

15 |
16 | 17 | 18 | 19 |
20 |
21 |
22 |
23 |

Cats

24 | 25 |
26 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

27 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

28 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

29 | 30 | More 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |

Dogs

41 | Photo of Socke, a dog looking at the camera 42 |
43 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

44 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

45 | More 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 |
54 |
55 |

Sheep

56 | 57 |
58 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

59 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

60 | More 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
69 |
70 |

Horses

71 | 72 |
73 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

74 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

75 | More 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 |
84 |
85 |

Alpacas

86 | 87 |
88 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

89 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Obcaecati quos corrupti ratione a aliquam est exercitationem, magni architecto dignissimos distinctio rem eligendi vitae tempora unde? Accusamus quod ut soluta voluptatibus.

90 | More 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 |
99 |
100 | 101 |
102 | 137 | 146 |
147 |
148 |

© 2021 Amazing Company. Made with ❤️

149 |
150 | 151 | 152 | 153 | -------------------------------------------------------------------------------- /docs/a11y-testing/photos/alpaca.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/a11y-testing/photos/alpaca.jpg -------------------------------------------------------------------------------- /docs/a11y-testing/photos/cat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/a11y-testing/photos/cat.jpg -------------------------------------------------------------------------------- /docs/a11y-testing/photos/deer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/a11y-testing/photos/deer.jpg -------------------------------------------------------------------------------- /docs/a11y-testing/photos/horse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/a11y-testing/photos/horse.jpg -------------------------------------------------------------------------------- /docs/a11y-testing/photos/sheep.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/a11y-testing/photos/sheep.jpg -------------------------------------------------------------------------------- /docs/a11y-testing/photos/socke.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/a11y-testing/photos/socke.jpg -------------------------------------------------------------------------------- /docs/a11y-testing/photos/unicorns.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/a11y-testing/photos/unicorns.jpg -------------------------------------------------------------------------------- /docs/badges/badges-contrast.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Testing all badges in DevTools for contrast issues 8 | 99 | 100 | 101 |
102 |

Light theme

103 |
    104 |
  • Panel
  • 105 |
  • Drawer
  • 106 |
  • Appearance
  • 107 |
  • Console
  • 108 |
  • Debugger
  • 109 |
  • Elements
  • 110 |
  • Global
  • 111 |
  • Grid
  • 112 |
  • Help
  • 113 |
  • Mobile
  • 114 |
  • Navigation
  • 115 |
  • Network
  • 116 |
  • Performance
  • 117 |
  • Rendering
  • 118 |
  • Resources
  • 119 |
  • Screenshot
  • 120 |
  • Settings
  • 121 |
122 |
123 | 124 |
125 |

Dark theme

126 |
    127 |
  • Panel
  • 128 |
  • Drawer
  • 129 |
  • Appearance
  • 130 |
  • Console
  • 131 |
  • Debugger
  • 132 |
  • Elements
  • 133 |
  • Global
  • 134 |
  • Grid
  • 135 |
  • Help
  • 136 |
  • Mobile
  • 137 |
  • Navigation
  • 138 |
  • Network
  • 139 |
  • Performance
  • 140 |
  • Rendering
  • 141 |
  • Resources
  • 142 |
  • Screenshot
  • 143 |
  • Settings
  • 144 |
145 |
146 | 147 | 148 | 192 | 193 | 194 | -------------------------------------------------------------------------------- /docs/bugs/list-as-table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Outline as table? 7 | 8 | 9 |
    10 |
  1. 11 |
    12 |
    13 |
    <!DOCTYPE html>
    1. <html dir=​"ltr" lang=​"en">
        1. <body style=​"margin:​ 0;​">
            1. <script defer=​"defer" src=​"/​bundle.js"></script>
              1. </body>
              2. </html>
              14 | 15 | -------------------------------------------------------------------------------- /docs/console/demostyles.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 3 | color: #fff; 4 | background: #111; 5 | } 6 | 7 | code { 8 | background: #ccc; 9 | color: #000; 10 | padding: 2px 5px; 11 | display: inline-block; 12 | } 13 | body script { 14 | display: block; 15 | padding: 5px 10px; 16 | background: #000; 17 | white-space: pre; 18 | font-family: monospace; 19 | line-height: 1.5; 20 | padding-bottom: calc(1em + 10px); 21 | } 22 | script::before { 23 | content: 'Source Code'; 24 | color:lime; 25 | } 26 | table { 27 | border: 1px solid #fff; 28 | border-collapse: collapse; 29 | } 30 | td,th { 31 | padding: 2px 5px; 32 | border: 1px solid #fff; 33 | } -------------------------------------------------------------------------------- /docs/console/dom-examples.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Interacting with the DOM 8 | 92 | 93 | 94 |

              Interacting with the DOM

              95 |
              96 | 97 | 98 | 99 |
              100 | 101 |
              102 | 111 |
              112 |
              113 |

              Section 1

              114 |

              Lorem ipsum dolor sit, amet consectetur adipisicing elit. Facilis, expedita omnis dolore facere alias, in harum similique reprehenderit minima cupiditate temporibus. Porro nesciunt, maxime suscipit quam explicabo molestiae fugiat nulla?

              115 |
              116 |
              117 |

              Section 2

              118 |

              Provident iusto mollitia quasi doloremque, qui eligendi nesciunt est, hic adipisci, totam animi voluptatum consequuntur odio omnis ullam autem debitis dolorem aliquam natus. Magni aut amet natus atque, ex at!

              119 |
              120 |
              121 |

              Section 3

              122 |

              Assumenda perspiciatis vitae quos, quibusdam, repellendus, deserunt officia alias reprehenderit reiciendis labore quae veritatis? Numquam dolorem exercitationem ipsam! Facilis natus architecto optio ut impedit nihil officia labore nisi excepturi dicta.

              123 |
              124 |
              125 |

              Section 4

              126 |

              Nihil odit doloribus beatae neque nulla. Perspiciatis earum quidem fuga! Quibusdam, quam sed necessitatibus quidem architecto assumenda cupiditate esse aspernatur. Obcaecati, explicabo suscipit aliquid fuga laudantium deserunt nesciunt ullam voluptas.

              127 |
              128 |
              129 |

              Section 5

              130 |

              Non aspernatur ipsam enim ducimus inventore! Aliquid, est unde. Impedit esse eaque amet! Nostrum sequi quae porro ipsa eligendi quo voluptatum! Minus vel facere quas, quae maiores a numquam rem?

              131 |
              132 |
              133 |
              134 | 135 | 163 | 164 | -------------------------------------------------------------------------------- /docs/console/error-assert.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Creating error reports and assertions in Console 8 | 9 | 10 | 11 | 12 |

              I've reported a few issues 😳

              13 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              14 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              15 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /docs/console/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | JavaScript error reported in the Console tool 8 | 9 | 10 | 11 | 12 |

              Something doesn't work 🤨

              13 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              14 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              15 | 19 | 20 | -------------------------------------------------------------------------------- /docs/console/favicon_io/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/console/favicon_io/android-chrome-192x192.png -------------------------------------------------------------------------------- /docs/console/favicon_io/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/console/favicon_io/android-chrome-512x512.png -------------------------------------------------------------------------------- /docs/console/favicon_io/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/console/favicon_io/apple-touch-icon.png -------------------------------------------------------------------------------- /docs/console/favicon_io/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/console/favicon_io/favicon-16x16.png -------------------------------------------------------------------------------- /docs/console/favicon_io/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/console/favicon_io/favicon-32x32.png -------------------------------------------------------------------------------- /docs/console/favicon_io/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/console/favicon_io/favicon.ico -------------------------------------------------------------------------------- /docs/console/favicon_io/site.webmanifest: -------------------------------------------------------------------------------- 1 | {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} -------------------------------------------------------------------------------- /docs/console/logging-demo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Console messages examples: log, info, error and warn 8 | 9 | 10 | 11 | 12 |

              Console demos: log, info, error, warn

              13 | 14 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              15 | 16 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              17 | 18 | 43 | 44 | -------------------------------------------------------------------------------- /docs/console/logging-examples.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Console messages examples: log, info, error and warn 8 | 9 | 10 | 11 | 12 |

              Console demos: Log, info, error, warn

              13 | 14 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              15 | 16 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              17 | 18 | 28 | 29 | -------------------------------------------------------------------------------- /docs/console/logging-types.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Console messages examples: logging different types 8 | 9 | 10 | 11 | 12 |

              Console demos: Logging different types

              13 | 14 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              15 | 16 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              17 | 18 | 32 | 33 | -------------------------------------------------------------------------------- /docs/console/logging-with-groups.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Console messages examples: grouping logs 8 | 9 | 10 | 11 | 12 |

              Console demos: Grouping logs

              13 | 14 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              15 | 16 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              17 | 39 | 40 | -------------------------------------------------------------------------------- /docs/console/logging-with-specifiers.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Console messages examples: Logging with specifiers 8 | 9 | 10 | 11 | 12 |

              Console demos: Logging with specifiers

              13 | 14 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              15 | 16 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              17 | 18 | 32 | 33 | -------------------------------------------------------------------------------- /docs/console/logging-with-table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Console messages examples: Using table 8 | 9 | 10 | 11 | 12 |

              Console demos: Using table

              13 | 14 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              15 | 16 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              17 | 18 | 42 | 43 | -------------------------------------------------------------------------------- /docs/console/mousemove-no-log.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Mouse movement without logging 8 | 9 | 10 | 11 | 12 |

              Console demos: no logging

              13 | 14 |

              There is nothing to see here, you need to open the Developer Tools and set up live expressions for x and y.

              15 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              16 |

              Then move your mouse around the screen.

              17 | 25 | 26 | -------------------------------------------------------------------------------- /docs/console/mousemove.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Console messages examples: Using table 8 | 9 | 10 | 11 | 12 |

              Console demos: Logging lots of information

              13 | 14 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              15 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              16 |

              Then move your mouse around the screen. Uncheck the following to stop logging.

              17 |

              18 | 29 | 30 | -------------------------------------------------------------------------------- /docs/console/network-error-fixed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Fixed network error reported in Console 8 | 9 | 10 | 11 | 12 |

              Everything works 😃

              13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
              NumberTitleState
              Loading…
              21 | 22 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /docs/console/network-error-reported.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Network error reporting in Console and UI 8 | 9 | 10 | 11 | 12 |

              Something doesn't work 🤨

              13 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              14 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
              NumberTitleState
              Loading…
              24 | 25 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /docs/console/network-error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Network error reported in Console 8 | 9 | 10 | 11 | 12 |

              Something doesn't work 🤨

              13 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              14 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
              NumberTitleState
              Loading…
              24 | 25 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /docs/console/trace.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Creating traces in Console 8 | 9 | 10 | 11 | 12 |

              I've logged a trace 🪜

              13 |

              There is nothing to see here, you need to open the Developer Tools and check the console for the output.

              14 |

              Select Control+Shift+J (Windows, Linux) or Command+Option+J (macOS).

              15 | 16 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docs/inspector/inspector-demo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Inspector Demonstration 8 | 9 | 10 | 11 |

              Inspect Demo

              12 |
              13 |
              14 |
              15 |
              16 |
              17 |
              18 |
              Bad Contrast
              19 |
              20 |
              21 | 29 |
              30 |
              31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /docs/inspector/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 2em; 3 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 4 | } 5 | h1 { text-align: right; } 6 | 7 | .wrapper { 8 | display: grid; 9 | grid-gap: 10px; 10 | grid-template-columns: auto 250px 250px; 11 | background-color: #fff; 12 | color: #444; 13 | } 14 | .box { 15 | background-color: #444; 16 | color: #fff; 17 | border-radius: 5px; 18 | padding: .5em; 19 | font-size: 150%; 20 | } 21 | .x { 22 | grid-column: 1; 23 | grid-row: 1 / span 3; 24 | } 25 | .a { grid-column: 2;} 26 | .b { 27 | grid-column: 3 ; 28 | grid-row: 1 / span 3; 29 | } 30 | .c { 31 | grid-column: 2 ; 32 | grid-row: 1 ; 33 | pointer-events: none; 34 | } 35 | .d { 36 | grid-column: 2 ; 37 | grid-row: 3 ; 38 | } 39 | nav ul { 40 | display: flex; 41 | list-style-type: none; 42 | margin: 0; 43 | padding: .2em .5em; 44 | flex-direction: column; 45 | gap: .5em; 46 | } 47 | nav ul li { 48 | flex: 1; 49 | } 50 | nav a { 51 | text-decoration: none; 52 | color: #fff; 53 | background: green; 54 | display: block; 55 | padding: .2em; 56 | text-align: left; 57 | } 58 | .d .button { 59 | color: #ccc; 60 | font-size: .8em; 61 | background: #999; 62 | text-align: center; 63 | } 64 | button { 65 | font-family: inherit; 66 | font-size: .8em; 67 | display:block; 68 | margin: 0 auto; 69 | } 70 | -------------------------------------------------------------------------------- /docs/whats-new/89/favicon_io/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/whats-new/89/favicon_io/android-chrome-192x192.png -------------------------------------------------------------------------------- /docs/whats-new/89/favicon_io/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/whats-new/89/favicon_io/android-chrome-512x512.png -------------------------------------------------------------------------------- /docs/whats-new/89/favicon_io/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/whats-new/89/favicon_io/apple-touch-icon.png -------------------------------------------------------------------------------- /docs/whats-new/89/favicon_io/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/whats-new/89/favicon_io/favicon-16x16.png -------------------------------------------------------------------------------- /docs/whats-new/89/favicon_io/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/whats-new/89/favicon_io/favicon-32x32.png -------------------------------------------------------------------------------- /docs/whats-new/89/favicon_io/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftEdge/DevToolsSamples/3c306c54162d607b659957d54eacb8cfd8e49738/docs/whats-new/89/favicon_io/favicon.ico -------------------------------------------------------------------------------- /docs/whats-new/89/favicon_io/site.webmanifest: -------------------------------------------------------------------------------- 1 | {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} -------------------------------------------------------------------------------- /docs/whats-new/89/target-css-demo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CSS :target demo for What's New in DevTools (Microsoft Edge 89) 6 | 7 | 41 | 42 | 43 |

              How to use: Each of these sections have an ID and a CSS target state associated defined them. You can try it by using the forced state functionality of developer tools.

              44 |

              Select an element using the element picker, activate the "force element state" button labelled ":hov" and select the ":target" checkbox

              45 | 46 |
              47 | Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dignissimos ullam error debitis beatae iure ab corrupti voluptates asperiores, facere doloremque dolorum, ratione delectus suscipit libero perspiciatis non odio rem vero! 48 |
              49 |
              50 | Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dignissimos ullam error debitis beatae iure ab corrupti voluptates asperiores, facere doloremque dolorum, ratione delectus suscipit libero perspiciatis non odio rem vero! 51 |
              52 |
              53 | Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dignissimos ullam error debitis beatae iure ab corrupti voluptates asperiores, facere doloremque dolorum, ratione delectus suscipit libero perspiciatis non odio rem vero! 54 |
              55 | 56 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Devtools Samples 7 | 8 | 9 |

              Devtools Samples

              10 | 11 | 12 | --------------------------------------------------------------------------------