We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f199a26 commit 6c3d5efCopy full SHA for 6c3d5ef
3 files changed
firefox-contribution/public/img/cpp_logo.png
45.1 KB
firefox-contribution/public/img/rust-lang-logo-black.png
108 KB
firefox-contribution/slides.md
@@ -101,14 +101,14 @@ layout: two-cols-header
101
102
::left::
103
104
-```ts
105
-`
106
-<!-- html $0 -->
+```html
+<!-- $0 -->
107
<div style="--foo: var(--bar) ;">
108
<p>children</p>
109
</div>
110
+```
111
+```ts
112
const pattern1 = $0.style.getPropertyValue("--foo");
113
const pattern2 = window.getComputedStyle($0).getPropertyValue("--foo");
114
const pattern3 = window.getComputedStyle($0.children[0]).getPropertyValue("--foo");
0 commit comments