forked from cypress-io/cypress-example-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (33 loc) · 752 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<head>
<style>
#printable {
display: none;
}
#pseudo-hover span {
display: none;
}
#pseudo-hover:hover span {
display: block;
}
@media print {
#printable {
display: block;
}
#not-in-printable {
display: none;
}
}
</style>
</head>
<body>
<div id="not-in-printable">not visible if print media query is activated</div>
<div id="printable">
<h1>This is displayed only in "print" mode</h1>
</div>
<div id="pseudo-hover">
<h1>Hover over this element</h1>
<span>Display only on hover</span>
</div>
</body>
</html>