-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some simple cascade layer tests
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>03 Cascade Element Attachment</title> | ||
<style type="text/css"> | ||
p#one {color: red;} | ||
p#two {color: green: !important;} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<p id="one" style="color: green;"> | ||
This is a paragraph with an ID of one. | ||
</p> | ||
<p id="two" style="color: red !important;"> | ||
This is a paragraph with an ID of two. | ||
</p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>03 Cascade Layers</title> | ||
<style type="text/css"> | ||
@layer page { | ||
h1 {color: maroon;} | ||
p {margin-top: 0;} | ||
} | ||
|
||
@layer site { | ||
body {font-size: 1.1rem;} | ||
h1 {color: orange;} | ||
p {margin-top: 0.5em;} | ||
} | ||
|
||
p {margin-top: 1em;} | ||
|
||
@layer site, component, page; | ||
</style> | ||
</head> | ||
<body> | ||
|
||
|
||
<h1>This is an H1</h1> | ||
<p> | ||
This is a paragraph. | ||
</p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters