Imagine you want to debug the disappearing result. CSS :hover and :focus don't work, because you need page focus. Use the "Keep page focused" settings in DevTools to emulate a focused page.
+ + + +From 9f40034c29a0c9e12ec368669a829fdbc9f062e4 Mon Sep 17 00:00:00 2001 From: Michael Hoffman <45407486+mikehoffms@users.noreply.github.com> Date: Wed, 13 May 2026 12:29:21 -0700 Subject: [PATCH 01/15] at-rules-at-scope --- at-rules-at-scope/README.md | 5 +++++ at-rules-at-scope/index.html | 11 +++++++++++ at-rules-at-scope/styles.css | 20 ++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 at-rules-at-scope/README.md create mode 100644 at-rules-at-scope/index.html create mode 100644 at-rules-at-scope/styles.css diff --git a/at-rules-at-scope/README.md b/at-rules-at-scope/README.md new file mode 100644 index 00000000..672dae07 --- /dev/null +++ b/at-rules-at-scope/README.md @@ -0,0 +1,5 @@ +# View `@scope` at-rules + +➡️ **[View `@scope` at-rules](https://microsoftedge.github.io/Demos/at-rules-at-scope/)** ⬅️ + +For instructions, see [View `@scope` at-rules](https://learn.microsoft.com/microsoft-edge/devtools/css/reference#view-scope-at-rules) in _CSS features reference_. diff --git a/at-rules-at-scope/index.html b/at-rules-at-scope/index.html new file mode 100644 index 00000000..3f38803d --- /dev/null +++ b/at-rules-at-scope/index.html @@ -0,0 +1,11 @@ + +
+I'm just a piece of text.
+I'm the text that lives on a card.
+I'm just a piece of text.
+I'm the text that lives on a card.
+I'm just a piece of text.
+I'm the text that lives on a card.
+I'm just a piece of text.
-I'm the text that lives on a card.
-old colors
+new colors
diff --git a/at-rules-font-palette-values/styles.css b/at-rules-font-palette-values/styles.css index 61e81434..ad7df2d0 100644 --- a/at-rules-font-palette-values/styles.css +++ b/at-rules-font-palette-values/styles.css @@ -1,20 +1,14 @@ -@scope (.card) { - p { - background-color: plum; - } -} +@import url(https://fonts.googleapis.com/css2?family=Foldit:wght@700); p { - width: max-content; - background-color: aquamarine; + font-family: 'Foldit'; + font-size: 2rem; } -.card { - box-shadow: 0 10px 10px 0 rgba(0,0,0,0.2); - border-style: groove; - transition: 0.3s; - border-radius: 10px; - padding: 0px 16px; +@font-palette-values --New { + font-family: 'Foldit'; + override-colors: + 0 gold, + 1 red; } -body { - width: max-content; - font-family: 'Google Sans', sans-serif; +.new { + font-palette: --New; } diff --git a/at-rules-position-try/index.html b/at-rules-position-try/index.html index 3f38803d..31adcdd2 100644 --- a/at-rules-position-try/index.html +++ b/at-rules-position-try/index.html @@ -4,8 +4,20 @@ -I'm just a piece of text.
-I'm the text that lives on a card.
-Imagine you want to debug the disappearing result. CSS :hover and :focus don't work, because you need page focus. Use the "Keep page focused" settings in DevTools to emulate a focused page.
+ + + +When focus is in the input text box below, a message is displayed next to the box. + To inspect the message, use Emulate a focused page in DevTools.
+ ++ +
+ + + + + + + \ No newline at end of file diff --git a/focus/index.html b/focus/index.html deleted file mode 100644 index c816b1d8..00000000 --- a/focus/index.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Imagine you want to debug the disappearing result. CSS :hover and :focus don't work, because you need page focus. Use the "Keep page focused" settings in DevTools to emulate a focused page.
- - - -