Skip to content

Commit f0632b5

Browse files
committed
[css-pseudo] highlight examples
1 parent 255a02e commit f0632b5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

css-pseudo/Overview.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -744,21 +744,23 @@ Overlapping Pseudo-element Interactions</h2>
744744
The following CSS and HTML example
745745
illustrates how overlapping pseudo-elements interact:
746746

747-
<pre>
747+
<xmp class="lang-html">
748+
<style>
748749
p { color: red; font-size: 12pt }
749750
p::first-letter { color: green; font-size: 200% }
750751
p::first-line { color: blue }
752+
</style>
751753

752-
&lt;P&gt;Some text that ends up on two lines&lt;/P&gt;
753-
</pre>
754+
<p>Some text that ends up on two lines</p>
755+
</xmp>
754756

755757
The first letter of each P element will be green with a font size of ’24pt'.
756758
The rest of the first formatted line will be blue
757759
while the rest of the paragraph will be red.
758760

759761
Assuming that a line break will occur before the word "ends",
760762
the <a>fictional tag sequence</a> for this fragment might be:
761-
<xmp>
763+
<xmp class="lang-html">
762764
<p>
763765
<p::first-line>
764766
<p::first-letter>

0 commit comments

Comments
 (0)