Skip to content

Commit b661ec0

Browse files
committed
chore: add example for style containment for quotes
1 parent 6d62d08 commit b661ec0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
File renamed without changes.

contain/contain-style-quotes.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Float interference</title>
6+
<style>
7+
body {
8+
quotes: "«" "»" "‹" "›";
9+
}
10+
.open-quote:before {
11+
content: open-quote;
12+
}
13+
14+
.close-quote:after {
15+
content: close-quote;
16+
}
17+
</style>
18+
</head>
19+
<body>
20+
<span class="open-quote">
21+
outer
22+
<span style="contain: style">
23+
<span class="open-quote"> inner </span>
24+
</span>
25+
</span>
26+
<span class="close-quote"> close </span>
27+
</body>
28+
</html>

0 commit comments

Comments
 (0)