diff --git a/README.md b/README.md index 5961bc0..ee41d75 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ This Readme lists all top-level source code directories. Below, the demos (samp | Warning when animating a CSS property that requires layout | Illustrates the **Issues** and **Elements** tools warning when CSS properties that require layout are animated. Used for [Edit animation and transition timings with the Easing Editor](https://learn.microsoft.com/microsoft-edge/devtools/css/reference#edit-animation-and-transition-timings-with-the-easing-editor) in _CSS features reference_. | [/devtools-animated-property-issue/](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-animated-property-issue) | [Animated CSS property demo](https://microsoftedge.github.io/Demos/devtools-animated-property-issue/) | | Console panel demo pages | Used for [Console overview](https://learn.microsoft.com/microsoft-edge/devtools/console/), [Log messages in the Console tool](https://learn.microsoft.com/microsoft-edge/devtools/console/console-log), and [Fix JavaScript errors reported in the Console](https://learn.microsoft.com/microsoft-edge/devtools/console/console-debug-javascript). | [/devtools-console/](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-console) | [DevTools Console panel demo pages](https://microsoftedge.github.io/Demos/devtools-console/) | | Interact with the DOM using the Console | Used for [Interact with the DOM using the Console](https://learn.microsoft.com/microsoft-edge/devtools/console/console-dom-interaction). | [/devtools-console-dom-interactions/](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-console-dom-interactions) | [Interact with the DOM using the Console](https://microsoftedge.github.io/Demos/devtools-console-dom-interactions/) demo | +| Debug CSS container queries | Used for [Inspect and debug CSS container queries](https://learn.microsoft.com/microsoft-edge/devtools/css/container-queries). | [/devtools-container-queries/](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-container-queries) | [Debug CSS container queries](https://microsoftedge.github.io/Demos/devtools-container-queries/) demo | | Contrast bug fix | Used for [Improving contrast in Microsoft Edge DevTools: A bugfix case study](https://blogs.windows.com/msedgedev/2021/06/15/improving-contrast-in-microsoft-edge-devtools-a-bugfix-case-study/). | [/devtools-contrast-bugfix/](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-contrast-bugfix) | [Testing all badges in DevTools for contrast issues](https://microsoftedge.github.io/Demos/devtools-contrast-bugfix/) demo | | Crash Analyzer tool demo | Used for [Enter a stack trace in the Crash analyzer tool](https://learn.microsoft.com/microsoft-edge/devtools/crash-analyzer/#enter-a-stack-trace-in-the-crash-analyzer-tool) in _Crash analyzer tool_. | [/devtools-crash-analyzer/](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-crash-analyzer) | [Readme](https://github.com/MicrosoftEdge/Demos/blob/main/devtools-crash-analyzer/README.md) | | CSS Examples | Used for [Get started viewing and changing CSS](https://learn.microsoft.com/microsoft-edge/devtools/css/). | [/devtools-css-get-started/](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-css-get-started) | [CSS Examples](https://microsoftedge.github.io/Demos/devtools-css-get-started/) demo | diff --git a/devtools-container-queries/README.md b/devtools-container-queries/README.md new file mode 100644 index 0000000..0aea2e8 --- /dev/null +++ b/devtools-container-queries/README.md @@ -0,0 +1,5 @@ +# Debug CSS container queries + +➡️ Open the demo: **[Debug CSS container queries](https://microsoftedge.github.io/Demos/devtools-container-queries/)** ⬅️ + +For instructions, see [Inspect and debug CSS container queries](https://learn.microsoft.com/microsoft-edge/devtools/css/container-queries). diff --git a/devtools-container-queries/index.html b/devtools-container-queries/index.html index 7406d20..a029491 100644 --- a/devtools-container-queries/index.html +++ b/devtools-container-queries/index.html @@ -96,11 +96,11 @@
The <div> element with the black border below is a CSS container which uses the container-name: named-container-a; CSS property. The card element in it uses a @container query to change its background to green when it is inside a container named named-container-a.
To inspect the name-only container query in DevTools:
-@container query is displayed, showing the CSS rule that's applying the green background, and a link to the container element is displayed: →named-container-a.The <div> element with the black border below is a CSS container of type inline-size because it uses the container-type: inline-size; CSS property. The card element in it uses a @container query to change its background to different colors depending on the size of its container. Resize the container by using the handle in the bottom-right corner of the container, and observe the card's background change.
To inspect the inline-size container query in DevTools:
-@container query is displayed, showing the CSS rule that's applying the green background, and a link to the container element is displayed: →div#inline-size-container.inline-size-container is selected, and an inline-size badge is displayed next to it.inline-size-container is selected, and an inline-size badge is displayed next to it.The <div> element with the black border below is a CSS container which uses the container-name: named-container-b; CSS property. The card element in it uses a @container style() query to change its background to different colors depending on the value of its container's --foo custom property. The container changes the value of --foo over time by using a CSS animation. Observe the card's background change.
To inspect the style container query in DevTools:
-@container style() query is displayed, showing the CSS rule that's applying the current background color.