browser/devtools/styleinspector/test/doc_pseudoelement.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!-- Any copyright is dedicated to the Public Domain.
michael@0 2 http://creativecommons.org/publicdomain/zero/1.0/ -->
michael@0 3 <html>
michael@0 4 <head>
michael@0 5 <style>
michael@0 6
michael@0 7 body {
michael@0 8 color: #333;
michael@0 9 }
michael@0 10
michael@0 11 .box {
michael@0 12 float:left;
michael@0 13 width: 128px;
michael@0 14 height: 128px;
michael@0 15 background: #ddd;
michael@0 16 padding: 32px;
michael@0 17 margin: 32px;
michael@0 18 position:relative;
michael@0 19 }
michael@0 20
michael@0 21 * {
michael@0 22 cursor: default;
michael@0 23 }
michael@0 24
michael@0 25 nothing {
michael@0 26 cursor: pointer;
michael@0 27 }
michael@0 28
michael@0 29 p::-moz-selection {
michael@0 30 color: white;
michael@0 31 background: black;
michael@0 32 }
michael@0 33 p::selection {
michael@0 34 color: white;
michael@0 35 background: black;
michael@0 36 }
michael@0 37
michael@0 38 p:first-line {
michael@0 39 background: blue;
michael@0 40 }
michael@0 41 p:first-letter {
michael@0 42 color: red;
michael@0 43 font-size: 130%;
michael@0 44 }
michael@0 45
michael@0 46 .box:before {
michael@0 47 background: green;
michael@0 48 content: " ";
michael@0 49 position: absolute;
michael@0 50 height:32px;
michael@0 51 width:32px;
michael@0 52 }
michael@0 53
michael@0 54 .box:after {
michael@0 55 background: red;
michael@0 56 content: " ";
michael@0 57 position: absolute;
michael@0 58 border-radius: 50%;
michael@0 59 height:32px;
michael@0 60 width:32px;
michael@0 61 top: 50%;
michael@0 62 left: 50%;
michael@0 63 margin-top: -16px;
michael@0 64 margin-left: -16px;
michael@0 65 }
michael@0 66
michael@0 67 .topleft:before {
michael@0 68 top:0;
michael@0 69 left:0;
michael@0 70 }
michael@0 71
michael@0 72 .topright:before {
michael@0 73 top:0;
michael@0 74 right:0;
michael@0 75 }
michael@0 76
michael@0 77 .bottomright:before {
michael@0 78 bottom:10px;
michael@0 79 right:10px;
michael@0 80 color: red;
michael@0 81 }
michael@0 82
michael@0 83 .bottomright:before {
michael@0 84 bottom:0;
michael@0 85 right:0;
michael@0 86 }
michael@0 87
michael@0 88 .bottomleft:before {
michael@0 89 bottom:0;
michael@0 90 left:0;
michael@0 91 }
michael@0 92
michael@0 93 </style>
michael@0 94 </head>
michael@0 95 <body>
michael@0 96 <h1>ruleview pseudoelement($("test"));</h1>
michael@0 97
michael@0 98 <div id="topleft" class="box topleft">
michael@0 99 <p>Top Left<br />Position</p>
michael@0 100 </div>
michael@0 101
michael@0 102 <div id="topright" class="box topright">
michael@0 103 <p>Top Right<br />Position</p>
michael@0 104 </div>
michael@0 105
michael@0 106 <div id="bottomright" class="box bottomright">
michael@0 107 <p>Bottom Right<br />Position</p>
michael@0 108 </div>
michael@0 109
michael@0 110 <div id="bottomleft" class="box bottomleft">
michael@0 111 <p>Bottom Left<br />Position</p>
michael@0 112 </div>
michael@0 113
michael@0 114 </body>
michael@0 115 </html>

mercurial