Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit ba0fb4b

Browse files
estelleJosh-Cena
andauthored
move citation out of blockquote per spec (#2806)
Co-authored-by: Joshua Chen <[email protected]>
1 parent 0dc424e commit ba0fb4b

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<blockquote cite="https://www.huxley.net/bnw/four.html">
2-
<p>Words can be like X-rays, if you use them properly—they’ll go through anything. You read and you’re pierced.</p>
3-
<footer>—Aldous Huxley, <cite>Brave New World</cite></footer>
4-
</blockquote>
1+
<div>
2+
<blockquote cite="https://www.huxley.net/bnw/four.html">
3+
<p>Words can be like X-rays, if you use them properly—they’ll go through anything. You read and you’re pierced.</p>
4+
</blockquote>
5+
<p>—Aldous Huxley, <cite>Brave New World</cite></p>
6+
</div>
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
blockquote {
2-
margin: 0;
3-
}
4-
5-
blockquote p {
1+
div:has(> blockquote) {
2+
background-color: #ededed;
3+
margin: 10px auto;
64
padding: 15px;
7-
background: #eee;
85
border-radius: 5px;
96
}
107

@@ -15,3 +12,7 @@ blockquote p::before {
1512
blockquote p::after {
1613
content: '\201D';
1714
}
15+
16+
blockquote + p {
17+
text-align: right;
18+
}

0 commit comments

Comments
 (0)