Skip to content

Commit

Permalink
Add CSS Isolation talk
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFoDy committed Sep 19, 2023
1 parent 0154c77 commit 8a847f8
Show file tree
Hide file tree
Showing 439 changed files with 13,394 additions and 11,463 deletions.
28 changes: 28 additions & 0 deletions css-isolation/demos/property.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<style>
@property --color-text {
syntax: "<color>";
inherits: false;
initial-value: red;
}

body {
background-color: transparent;
font-size: 24px;
}

* {
color: var(--color-text);
}

.text {
--color-text: yellow;
}
</style>

<div class="card">
Parent Card
<p class="text">
Text of P
<span>Span inside of P</span>
</p>
</p>
Loading

0 comments on commit 8a847f8

Please sign in to comment.