Debian Codegraph @

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

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