Debian Codegraph @

closure-library/closure/goog/debug/devcss/devcss_test_dom.html

raw
1 <!--
2 Copyright 2017 The Closure Library Authors. All Rights Reserved.
3
4 Use of this source code is governed by the Apache License, Version 2.0.
5 See the COPYING file for details.
6 -->
7 <style>
8 @import "devcss_test_import_1.css";
9
10 .css-style-1 {
11 background-color: rgb(173,216,230); /* lightblue */
12 padding: 10px;
13 }
14 .css-style-2 {
15 display: block;
16 background-color: transparent;
17 margin-top: 1px;
18 margin-left: 1px;
19 padding: 10px;
20 }
21 .css-style-3 {
22 background-color: orange;
23 padding: 10px;
24 }
25
26 .compound1.compound2 {
27 -goog-ie6-selector: ".compound1_compound2";
28 background-color: rgb(255,192,203); /* aka pink */
29 }
30
31 .USERAGENT-OPERA .css-style-2,
32 .USERAGENT-GECKO .css-style-2,
33 .USERAGENT-MOBILE .css-style-2 {
34 background-color: rgb(255,192,203); /* aka pink */
35 }
36
37 .USERAGENT-OPERA .css-style-2,
38 .USERAGENT-WEBKIT-GTE255 .css-style-2,
39 .USERAGENT-MOBILE .css-style-2 {
40 margin-top: 20px;
41 }
42
43 .USERAGENT-OPERA .css-style-2,
44 .USERAGENT-WEBKIT-LTE200 .css-style-2,
45 .USERAGENT-MOBILE .css-style-2 {
46 margin-left: 15px;
47 }
48 .USERAGENT-GECKO #devcss-gecko-1,
49 .USERAGENT-GECKO #devcss-gecko-2 {
50 background-color: rgb(255,192,203); /* aka pink */
51 }
52 .USERAGENT-IE-8 #devcss-ie8-1,
53 .USERAGENT-IE-8 #devcss-ie8-2 {
54 background-color: rgb(255,192,203); /* aka pink */
55 }
56 #devcss-test-ie6 {
57 background-color: purple;
58 }
59 .USERAGENT-IE-6 #devcss-test-ie6 {
60 background-color: rgb(255,192,203); /* aka pink */
61 }
62
63 @keyframes spin {
64 0% {
65 @mixin transform(rotate(0deg));
66 }
67 100% {
68 @mixin transform(rotate(360deg));
69 }
70 }
71 </style>
72 <style>
73 @import "devcss_test_import_2.css";
74 </style>
75 <div class="css-style-2" id="devcss-test-2">
76 <ul>
77 <li>
78 Should end up background-color:rgb(255, 192, 203) aka pink.
79 </li>
80 <li>
81 Should end up with margin-top: 20px; margin-left: 15px;
82 </li>
83 </ul>
84 </div>
85 <br>
86 <br>
87 <div id="devcss-test-ie6">
88 <ul>
89 <li>
90 Should end up background-color:rgb(255, 192, 203) aka pink, not black or purple.
91 </li>
92 </ul>
93 </div>
94 <!--
95 TODO(user): Re-enable if we ever come up with a way to make imports
96 work.
97 <div id="devcss-test-importfixer-1" class="css-style-3">
98 <ul>
99 <li>
100 Should end up yellow from the first import of
101 devcss_test_import_2.css, overriding the previous orange setting and
102 ignoring the second import of devcss_test_import_1.css which would set
103 it grey.
104 </li>
105 </ul>
106 </div>
107 <div id="devcss-test-importfixer-2" class="css-style-1">
108 <ul>
109 <li>
110 Should end up lightblue, which is a revert back to the setting in this
111 test file, after disabling the second import of
112 devcss_test_import_1.css
113 </li>
114 </ul>
115 </div>
116 -->
117 <br>
118 <br>
119 <div id="devcss-ie8-1">
120 This element should be pink for IE8.
121 </div>
122 <div id="devcss-ie8-2">
123 This element should also be pink for IE8.
124 </div>
125 <br>
126 <br>
127 <div id="devcss-gecko-1">
128 This element should be pink for Gecko.
129 </div>
130 <div id="devcss-gecko-2">
131 This element should also be pink for Gecko.
132 </div>
133 <br>
134 <br>
135 <div class="compound1" id="devcss-test-compound1">
136 This (class="compound1") should have no bg.
137 </div>
138 <div class="compound2" id="devcss-test-compound2">
139 This (class="compound2") should have no bg.
140 </div>
141 <div class="compound1 compound2 compound1_compound2" id="devcss-test-compound1-2">
142 This (class="compound1 compound2 compound1_compound2") should have
143 a pink bg for IE6.
144 </div>
145 <br>
146 <br>
147 <input class="ie6-1 ie6-2" id="devcss-test-combined1" type="hidden">
148 <input class="ie6-3 ie6-1 ie6-2" id="devcss-test-combined2" type="hidden">
149 <input class="ie6-1" id="devcss-test-notcombined1" type="hidden">
150 <input class="ie6-2" id="devcss-test-notcombined2" type="hidden">
151 <input class="ie6-3" id="devcss-test-notcombined3" type="hidden">
152 </input>
153 </input>
154 </input>
155 </input>
156 </input>
157 </br>
158 </br>
159 </br>
160 </br>
161 </br>
162 </br>
163 </br>
164 </br>
165 </br>
166 </br>