fix logic
[personal-kdelibs.git] / khtml / css / presentational.css
blob586bf5c28d37e72dfe3026c72303ac2fef174c9f
1 /*
2 * The default presentational attributes' styles used by khtml to render HTML pages
3 * (cf. CSS 2.1 - 6.4.4)
4 * Copyright 2007 Germain Garand (germain@ebooksfrance.org)
6 * Konqueror/khtml relies on the existence of this style sheet for
7 * rendering. Do not remove or modify this file unless you know
8 * what you are doing.
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
27 pre[wrap], listing[wrap] {
28 white-space: pre-wrap
31 table[rules="groups"] > tbody,
32 table[rules="groups"] > thead,
33 table[rules="groups"] > tfoot {
34 border-top-width: thin;
35 border-bottom-width: thin;
36 border-top-style: solid;
37 border-bottom-style: solid;
40 table[rules="groups"] > colgroup {
41 border-left-width: thin;
42 border-right-width: thin;
43 border-left-style: solid;
44 border-right-style: solid;
47 table[border] > tbody > tr > td,
48 table[border] > tbody > tr > th,
49 table[border] > thead > tr > td,
50 table[border] > thead > tr > th,
51 table[border] > tfoot > tr > td,
52 table[border] > tfoot > tr > th,
53 table[border] > tr > td,
54 table[border] > tr > th {
55 border-style: inset;
56 border-width: thin;
59 table[bordercolor] > tbody > tr > td,
60 table[bordercolor] > tbody > tr > th,
61 table[bordercolor] > thead > tr > td,
62 table[bordercolor] > thead > tr > th,
63 table[bordercolor] > tfoot > tr > td,
64 table[bordercolor] > tfoot > tr > th,
65 table[bordercolor] > tr > td,
66 table[bordercolor] > tr > th {
67 border-style: solid;
70 table[border="0"] > tbody > tr > td,
71 table[border="0"] > tbody > tr > th,
72 table[border="0"] > thead > tr > td,
73 table[border="0"] > thead > tr > th,
74 table[border="0"] > tfoot > tr > td,
75 table[border="0"] > tfoot > tr > th,
76 table[border="0"] > tr > td,
77 table[border="0"] > tr > th {
78 /* Do not attempt to avoid this declaration by appending a :not() to the table[border] selectors
79 * That would increase its specificity, breaking proper cascade.
81 border-style: none;
84 table[rules] > tbody > tr > td,
85 table[rules] > tbody > tr > th,
86 table[rules] > thead > tr > td,
87 table[rules] > thead > tr > th,
88 table[rules] > tfoot > tr > td,
89 table[rules] > tfoot > tr > th,
90 table[rules] > tr > td,
91 table[rules] > tr > th {
92 border-style: none;
95 table[rules="all"] > tbody > tr > td,
96 table[rules="all"] > tbody > tr > th,
97 table[rules="all"] > thead > tr > td,
98 table[rules="all"] > thead > tr > th,
99 table[rules="all"] > tfoot > tr > td,
100 table[rules="all"] > tfoot > tr > th,
101 table[rules="all"] > tr > td,
102 table[rules="all"] > tr > th {
103 border-width: thin;
104 border-style: solid;
107 table[rules="cols"] > tbody > tr > td,
108 table[rules="cols"] > tbody > tr > th,
109 table[rules="cols"] > thead > tr > td,
110 table[rules="cols"] > thead > tr > th,
111 table[rules="cols"] > tfoot > tr > td,
112 table[rules="cols"] > tfoot > tr > th,
113 table[rules="cols"] > tr > td,
114 table[rules="cols"] > tr > th {
115 border-left-width: thin;
116 border-right-width: thin;
117 border-left-style: solid;
118 border-right-style: solid;
121 table[rules="rows"] > tbody > tr > td,
122 table[rules="rows"] > tbody > tr > th,
123 table[rules="rows"] > thead > tr > td,
124 table[rules="rows"] > thead > tr > th,
125 table[rules="rows"] > tfoot > tr > td,
126 table[rules="rows"] > tfoot > tr > th,
127 table[rules="rows"] > tr > td,
128 table[rules="rows"] > tr > th {
129 border-top-width: thin;
130 border-bottom-width: thin;
131 border-top-style: solid;
132 border-bottom-style: solid;
135 table[rules]:not([rules="none"]){
136 /* FIXME: enabling border-collapse when 'rules' attribute is defined matches
137 * current Mozilla/Opera but is not standard.
139 border-collapse: collapse;
142 table[align="center"] {
143 margin-left: auto;
144 margin-right: auto;
147 table[align="left"] {
148 float: -khtml-left;
151 table[align="right"] {
152 float: -khtml-right;
155 dl[compact] > dt {
156 display: compact;