Warning, /frameworks/khtml/src/css/presentational.css is written in an unsupported language. File is not indexed.

0001 /*
0002  * The default presentational attributes' styles used by khtml to render HTML pages
0003  * (cf. CSS 2.1 - 6.4.4)
0004  * Copyright 2007 Germain Garand (germain@ebooksfrance.org)
0005  *
0006  * Konqueror/khtml relies on the existence of this style sheet for
0007  * rendering. Do not remove or modify this file unless you know
0008  * what you are doing.
0009  *
0010  * This library is free software; you can redistribute it and/or
0011  * modify it under the terms of the GNU Library General Public
0012  * License as published by the Free Software Foundation; either
0013  * version 2 of the License, or (at your option) any later version.
0014  *
0015  * This library is distributed in the hope that it will be useful,
0016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0018  * Library General Public License for more details.
0019  *
0020  * You should have received a copy of the GNU Library General Public License
0021  * along with this library; see the file COPYING.LIB.  If not, write to
0022  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0023  * Boston, MA 02110-1301, USA.
0024  *
0025  */
0026 
0027 pre[wrap], listing[wrap] {
0028     white-space: pre-wrap
0029 }
0030 
0031 table[rules="groups"] > tbody, 
0032 table[rules="groups"] > thead, 
0033 table[rules="groups"] > tfoot {
0034     border-top-width: thin;
0035     border-bottom-width: thin;
0036     border-top-style: solid;
0037     border-bottom-style: solid;
0038 }
0039 
0040 table[rules="groups"] > colgroup {
0041     border-left-width: thin;
0042     border-right-width: thin;
0043     border-left-style: solid;
0044     border-right-style: solid;
0045 }
0046 
0047 table[border] > tbody > tr > td,
0048 table[border] > tbody > tr > th,
0049 table[border] > thead > tr > td,
0050 table[border] > thead > tr > th,
0051 table[border] > tfoot > tr > td,
0052 table[border] > tfoot > tr > th,
0053 table[border] > tr > td,
0054 table[border] > tr > th {
0055     border-style: inset;
0056     border-width: thin;
0057 }
0058 
0059 table[bordercolor] > tbody > tr > td,
0060 table[bordercolor] > tbody > tr > th,
0061 table[bordercolor] > thead > tr > td,
0062 table[bordercolor] > thead > tr > th,
0063 table[bordercolor] > tfoot > tr > td,
0064 table[bordercolor] > tfoot > tr > th,
0065 table[bordercolor] > tr > td,
0066 table[bordercolor] > tr > th {
0067     border-style: solid;
0068 }
0069 
0070 table[border="0"] > tbody > tr > td,
0071 table[border="0"] > tbody > tr > th,
0072 table[border="0"] > thead > tr > td,
0073 table[border="0"] > thead > tr > th,
0074 table[border="0"] > tfoot > tr > td,
0075 table[border="0"] > tfoot > tr > th,
0076 table[border="0"] > tr > td,
0077 table[border="0"] > tr > th {
0078    /* Do not attempt to avoid this declaration by appending a :not() to the table[border] selectors
0079     * That would increase its specificity, breaking proper cascade.
0080     */
0081     border-style: none;
0082 }
0083 
0084 table[rules] > tbody > tr > td,
0085 table[rules] > tbody > tr > th,
0086 table[rules] > thead > tr > td,
0087 table[rules] > thead > tr > th,
0088 table[rules] > tfoot > tr > td,
0089 table[rules] > tfoot > tr > th,
0090 table[rules] > tr > td,
0091 table[rules] > tr > th {
0092     border-style: none;
0093 }
0094 
0095 table[rules="all"] > tbody > tr > td,
0096 table[rules="all"] > tbody > tr > th,
0097 table[rules="all"] > thead > tr > td,
0098 table[rules="all"] > thead > tr > th,
0099 table[rules="all"] > tfoot > tr > td,
0100 table[rules="all"] > tfoot > tr > th,
0101 table[rules="all"] > tr > td,
0102 table[rules="all"] > tr > th {
0103     border-width: thin;
0104     border-style: solid;
0105 }
0106 
0107 table[rules="cols"] > tbody > tr > td, 
0108 table[rules="cols"] > tbody > tr > th, 
0109 table[rules="cols"] > thead > tr > td, 
0110 table[rules="cols"] > thead > tr > th,
0111 table[rules="cols"] > tfoot > tr > td,
0112 table[rules="cols"] > tfoot > tr > th,
0113 table[rules="cols"] > tr > td,
0114 table[rules="cols"] > tr > th {
0115     border-left-width: thin;
0116     border-right-width: thin;
0117     border-left-style: solid;
0118     border-right-style: solid;
0119 } 
0120 
0121 table[rules="rows"] > tbody > tr > td,
0122 table[rules="rows"] > tbody > tr > th,
0123 table[rules="rows"] > thead > tr > td,
0124 table[rules="rows"] > thead > tr > th,
0125 table[rules="rows"] > tfoot > tr > td,
0126 table[rules="rows"] > tfoot > tr > th,
0127 table[rules="rows"] > tr > td,
0128 table[rules="rows"] > tr > th {
0129     border-top-width: thin;
0130     border-bottom-width: thin;
0131     border-top-style: solid;
0132     border-bottom-style: solid;
0133 }
0134 
0135 table[rules]:not([rules="none"]){
0136     /* FIXME: enabling border-collapse when 'rules' attribute is defined matches
0137      * current Mozilla/Opera but is not standard.
0138      */
0139     border-collapse: collapse;
0140 }
0141 
0142 table[align="center"] {
0143         margin-left: auto;
0144         margin-right: auto;
0145 }
0146 
0147 table[align="left"] {
0148         float: -khtml-left;
0149 }
0150 
0151 table[align="right"] {
0152         float: -khtml-right;
0153 }
0154 
0155 dl[compact] > dt {
0156         display: compact;
0157 }