summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/empty.html
diff options
context:
space:
mode:
Diffstat (limited to 'Base/res/html/misc/empty.html')
-rw-r--r--Base/res/html/misc/empty.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/Base/res/html/misc/empty.html b/Base/res/html/misc/empty.html
new file mode 100644
index 0000000000..dbdfe62a6a
--- /dev/null
+++ b/Base/res/html/misc/empty.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+<title>:empty test</title>
+<style>
+.box {
+ background-color: pink;
+ height: 80px;
+ width: 80px;
+}
+
+.box:empty {
+ background-color: lime;
+}
+</style>
+</head>
+<body>
+<div class="box"><!-- I will be lime. --></div>
+<div class="box">I will be pink.</div>
+<div class="box">
+ <!-- I will be pink in older browsers because of the whitespace around this comment. -->
+</div>
+<div class="box">
+ <p><!-- I will be pink in all browsers because of the non-collapsible whitespace and elements around this comment. --></p>
+</div>
+</body>
+</html>