~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/layout/html/tests/table/bugs/bug12012.css

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 
2
/* ***** BEGIN LICENSE BLOCK *****
 
3
 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
 
4
 *
 
5
 * The contents of this file are subject to the Netscape Public License
 
6
 * Version 1.1 (the "License"); you may not use this file except in
 
7
 * compliance with the License. You may obtain a copy of the License at
 
8
 * http://www.mozilla.org/NPL/
 
9
 *
 
10
 * Software distributed under the License is distributed on an "AS IS" basis,
 
11
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
12
 * for the specific language governing rights and limitations under the
 
13
 * License.
 
14
 *
 
15
 * The Original Code is mozilla.org code.
 
16
 *
 
17
 * The Initial Developer of the Original Code is 
 
18
 * Netscape Communications Corporation.
 
19
 * Portions created by the Initial Developer are Copyright (C) 1998
 
20
 * the Initial Developer. All Rights Reserved.
 
21
 *
 
22
 * Contributor(s):
 
23
 *
 
24
 * Alternatively, the contents of this file may be used under the terms of
 
25
 * either the GNU General Public License Version 2 or later (the "GPL"), or 
 
26
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
27
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
28
 * of those above. If you wish to allow use of your version of this file only
 
29
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
30
 * use your version of this file under the terms of the NPL, indicate your
 
31
 * decision by deleting the provisions above and replace them with the notice
 
32
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
33
 * the provisions above, a recipient may use your version of this file under
 
34
 * the terms of any one of the NPL, the GPL or the LGPL.
 
35
 *
 
36
 * ***** END LICENSE BLOCK ***** */
 
37
 
 
38
/*
 
39
 * WINDOWS
 
40
 */
 
41
 
 
42
window {
 
43
        background: #FF9; /* pale yellow */
 
44
        color: black;
 
45
        }
 
46
 
 
47
/* only does anything for calendar */
 
48
table { width: 100%; }
 
49
 
 
50
box#tabs { padding: 1px; }
 
51
/*  crash in 
 
52
#0  0x40b20926 in nsSelectControlFrame::SetProperty ()
 
53
#1  0x40ade441 in nsHTMLSelectElement::SetSelectedIndex ()
 
54
#2  0x403d30cf in NS_NewScriptHTMLScriptElement ()
 
55
#3  0x40446433 in js_SetProperty ()
 
56
box#main { overflow: scroll; }
 
57
 
 
58
box#main { overflow: auto; }
 
59
*/
 
60
 
 
61
/* XXX Interesting... */
 
62
/* window { overflow: scroll; } */
 
63
 
 
64
window[debug] { background: yellow; }
 
65
window[debug] box { background: red; }
 
66
window[debug] div { background: green; }
 
67
 
 
68
/* XXX: Bug: Problems - increases height; should center the table  - happens
 
69
if any margin is auto */
 
70
table {
 
71
        /* margin: 0 auto; */
 
72
        }
 
73
 
 
74
td, th {
 
75
        line-height: 1;
 
76
        padding: 0;
 
77
        }
 
78
 
 
79
/* XXX Doesn't work: */
 
80
box#outer { overflow: scroll; }
 
81
 
 
82
/*
 
83
 * BUTTONS AND TABS: Used in schedule and pick windows.
 
84
 */
 
85
 
 
86
/*
 
87
#ApptTable { overflow: scroll; }
 
88
*/
 
89
 
 
90
button, td[class~="button"], td[class~="tab"] {
 
91
        text-align: center;
 
92
        vertical-align: middle;
 
93
        cursor: pointer;
 
94
        border: 1px outset #FF9;
 
95
        padding: 1px;
 
96
        color: black;
 
97
        background: #FF9;
 
98
        }
 
99
 
 
100
td[class~="button"]:active, td[class~="tab"]:active {
 
101
        border-style: inset;
 
102
        padding: 2px 0px 0px 2px;
 
103
        background: #fc3;
 
104
        }
 
105
 
 
106
td[class~="tab"][class~="disable"] {
 
107
        color: #888;
 
108
        }
 
109
 
 
110
td[class~="tab"][class~="disable"]:active {
 
111
        /* back to default */
 
112
        background: #FF9;
 
113
        }
 
114
 
 
115
td[id="DateOutput"], td[id="MonthOutput"] {
 
116
        vertical-align: middle;
 
117
        text-align: center;
 
118
        font-weight: bold;
 
119
        }
 
120
 
 
121
/*
 
122
 * SCHEDULE LIST
 
123
 */
 
124
 
 
125
/* XXX XUL Bug?? tr[id] without the tbody matches the row in the thead too */
 
126
table[class~="data"] tbody[id="ApptTable"] tr {
 
127
        cursor: pointer;
 
128
        }
 
129
 
 
130
/* Problem with bug 5693
 
131
table[class~="data"] tbody#ApptTable tr:hover {
 
132
        background: #ff0;
 
133
        text-decoration: underline; /* really a nonstandard use */
 
134
        }
 
135
*/
 
136
 
 
137
table[class~="data"] th, table[class~="data"] td {
 
138
        text-align: left;
 
139
        vertical-align: baseline;
 
140
        }
 
141
 
 
142
/*
 
143
 * EVENT ADDER
 
144
 */
 
145
 
 
146
table#add th {
 
147
        text-align: right;
 
148
        font-weight: bold;
 
149
        }
 
150
 
 
151
table#add th:after {
 
152
        content: ":";
 
153
        }
 
154
 
 
155
/*
 
156
 * DATE PICKER
 
157
 */
 
158
 
 
159
/* the numbers in the calendar, including those below */
 
160
 
 
161
td[class~="caldate"] {
 
162
        cursor: pointer;
 
163
        text-align: center;
 
164
        border: 1px solid transparent;
 
165
        }
 
166
 
 
167
/* the number in the calendar for the date now being shown (overrides above) */
 
168
 
 
169
td[class~="caldate"][class~="nowshowing"] {
 
170
        background: #f90;
 
171
        color: black;
 
172
        }
 
173
 
 
174
/* the number in the calendar for today's date (overrides above) */
 
175
 
 
176
td[class~="caldate"][class~="today"] {
 
177
        border: 1px solid black;
 
178
        /* font-weight: bold; */
 
179
        }