WebCore/css/mathml.css
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 @namespace "http://www.w3.org/1998/Math/MathML";
       
     2 
       
     3 math {
       
     4     font-family: Symbol, "Times New Roman";
       
     5     display: inline-block;
       
     6     padding: 0px;
       
     7     margin: 0px;
       
     8     text-align: left;
       
     9     vertical-align: baseline;
       
    10     line-height: 1.0;
       
    11     padding-left: 1px;
       
    12     padding-right: 1px;
       
    13 }
       
    14 
       
    15 math[display="block"] {
       
    16     display: block;
       
    17     page-break-inside: avoid;
       
    18     margin-bottom: 1em;
       
    19 }
       
    20 
       
    21 math > * {
       
    22     vertical-align: baseline;
       
    23 }
       
    24 
       
    25 mrow, mfenced {
       
    26     display: inline-block;
       
    27     white-space: nowrap;
       
    28     padding-left: 1px;
       
    29     padding-right: 1px;
       
    30 }
       
    31 
       
    32 mi{
       
    33     font-style: italic;
       
    34     padding-right: 0.1em;
       
    35 }
       
    36 
       
    37 mi + mrow {
       
    38     margin-left: 0.1em;
       
    39 }
       
    40 
       
    41 mfrac {
       
    42     display: inline-block;
       
    43 }
       
    44 
       
    45 msub, msup {
       
    46     display: inline-block;
       
    47     vertical-align: baseline;
       
    48 }
       
    49 
       
    50 msub > * + * {
       
    51     vertical-align: sub;
       
    52     font-size: 0.75em;
       
    53 }
       
    54 
       
    55 msup > * + * {
       
    56     vertical-align: super;
       
    57     font-size: 0.75em;
       
    58 }
       
    59 
       
    60 msubsup {
       
    61     display: inline-block;
       
    62     vertical-align: baseline;
       
    63 }
       
    64 
       
    65 msubsup > * {
       
    66     margin: 0px;
       
    67     padding: 0px;
       
    68 }
       
    69 
       
    70 msubsup > * + * {
       
    71     font-size: 0.75em;
       
    72 }
       
    73 
       
    74 munder, mover, munderover {
       
    75     display: inline-block;
       
    76     vertical-align: baseline;
       
    77 }
       
    78 
       
    79 munderover > * + *, mover > * + *, munder > * + * {
       
    80     font-size: 0.75em;
       
    81 }
       
    82 
       
    83 mo, mn, mi, mtext {
       
    84     padding: 0px;
       
    85     margin: 0px;
       
    86 }
       
    87 
       
    88 mo {
       
    89     display: inline-block;
       
    90 }
       
    91 
       
    92 math > mo, mrow > mo, mfenced > mo {
       
    93     padding-left: 0.05em;
       
    94     padding-right: 0.05em;
       
    95 }
       
    96 
       
    97 math[mathsize="small"], mstyle[mathsize="small"], mo[mathsize="small"], mn[mathsize="small"], mi[mathsize="small"], mtext[mathsize="small"], mspace[mathsize="small"], ms[mathsize="small"]{
       
    98     font-size: 0.75em;
       
    99 }
       
   100 
       
   101 math[mathsize="normal"], mstyle[mathsize="normal"], mo[mathsize="normal"], mn[mathsize="normal"], mi[mathsize="normal"], mtext[mathsize="normal"], mspace[mathsize="normal"], ms[mathsize="normal"]{
       
   102     font-size: 1em;
       
   103 }
       
   104 
       
   105 math[mathsize="big"], mstyle[mathsize="big"], mo[mathsize="big"], mn[mathsize="big"], mi[mathsize="big"], mtext[mathsize="big"], mspace[mathsize="big"], ms[mathsize="big"]{
       
   106     font-size: 1.5em;
       
   107 }
       
   108  
       
   109 annotation, annotation-xml {
       
   110     display:none;
       
   111 }
       
   112 
       
   113 mphantom {
       
   114     visibility: hidden;
       
   115 }
       
   116 merror {
       
   117     outline: solid thin red;
       
   118 }
       
   119 
       
   120 msqrt {
       
   121     display: inline-block;
       
   122     padding-top: 0.2em;
       
   123     padding-left: 0.75em;
       
   124 }
       
   125 
       
   126 mroot {
       
   127     display: inline-block;
       
   128     position: relative;
       
   129     padding-top: 0.2em;
       
   130     padding-left: 0.2em;
       
   131 }
       
   132 
       
   133 mroot > * + * {
       
   134     font-size: 0.75em;
       
   135     vertical-align: bottom;
       
   136     position: absolute;
       
   137     left: 0px;
       
   138     padding-right: 0.4em;
       
   139     padding-left: 0.2em;
       
   140     padding-bottom: 0.2em;
       
   141 }
       
   142 
       
   143 mroot > * + mrow, mroot > * + mfenced {
       
   144     padding-bottom: 0.4em;
       
   145 }
       
   146 
       
   147 mtable {
       
   148     display: inline-table;
       
   149     text-align: center;
       
   150     vertical-align: -40%;
       
   151 }
       
   152 mtr {
       
   153     display: table-row;
       
   154 }
       
   155 mtd {
       
   156     display: table-cell;
       
   157     padding: 0 0.5ex;
       
   158 }
       
   159 
       
   160 mtable[columnalign="left"], mtr[columnalign="left"], mtd[columnalign="left"] {
       
   161     text-align: left;
       
   162 }
       
   163 
       
   164 mtable[columnalign="right"], mtr[columnalign="right"], mtd[columnalign="right"] {
       
   165     text-align: right;
       
   166 }
       
   167 mtable[rowalign="top"] mtd, mtable mtr[rowalign="top"] mtd, mtable mtr mtd[rowalign="top"] {
       
   168     vertical-align: top;
       
   169 }
       
   170 mtable[rowalign="bottom"] mtd, mtable mtr[rowalign="bottom"] mtd, mtable mtr mtd[rowalign="bottom"] {
       
   171     vertical-align: bottom;
       
   172 }
       
   173 mtable[rowalign="center"] mtd, mtable mtr[rowalign="center"] mtd, mtable mtr mtd[rowalign="center"] {
       
   174     vertical-align: middle;
       
   175 }
       
   176 mtable[frame="solid"] {
       
   177     border: solid thin;
       
   178 }
       
   179 mtable[frame="dashed"] {
       
   180     border: dashed thin;
       
   181 }
       
   182 mtable[rowlines="solid"], mtable[rowlines="dashed"], mtable[columnlines="solid"], mtable[columnlines="dashed"] {
       
   183     border-collapse: collapse;
       
   184 }
       
   185 mtable[rowlines="solid"] > mtr + mtr {
       
   186     border-top: solid thin;
       
   187 }
       
   188 mtable[rowlines="dashed"] > mtr + mtr {
       
   189     border-top: dashed thin;
       
   190 }
       
   191 mtable[columnlines="solid"] > mtr > mtd + mtd {
       
   192     border-left: solid thin;
       
   193 }
       
   194 mtable[columnlines="dashed"] > mtr > mtd + mtd {
       
   195     border-left: dashed thin;
       
   196 }
       
   197 
       
   198 mspace[linebreak="newline"] {
       
   199     display: block;
       
   200 }