/*
 * MathML CSS Stylesheet
 * copyright (c) 1998  L. David Baron
 */

math	{
	display: inline;
	font-style: normal;
	}

math *	{
	display: inline;
	margin: 0;
	border-style: none;
	padding: 0;
	}

/* Mark errors in elements with specific content models */

 {
    text-decoration: blink;
	color: red;
	}

/* And undo them when things are right... */

{
	text-decoration: none;
	color: inherit;
	}

math[mode="inline"]	{
	display: inline;
	}

math[mode="display"]	{
	display: block;
	margin: 0.5em auto;  /* only acts if assigned a width */
	text-align: center;
	/* MORE HERE? */
	}

/* How to handle?:
 * fontsize, fontweight, fontstyle, fontfamily, color, background
 */

math mi	{
	font-style: italic;
	}

math mspace	{
	display: inline;
	/* width:  HOW DO WE DO THIS? */
	/* height: HOW DO WE DO THIS? */
	}

math mtext:before	{
	content: "&ldquo;";
	}

math mtext:after	{
	content: "&rdquo;";
	}

math mfrac	{
	display: inline-table;
	}

math mfrac > *	{
	display: table-row; /* This is OK according to CSS2, sec 17.2.1 */
	}

math mfrac > *:first-child	{
	padding-bottom: .1em;
	border-bottom-style: solid;
	border-bottom-width: thin; /* DEAL WITH linethickness on mfrac */
	}
	
math mfrac > *:first-child + *	{
	padding-top: .1em;
	}

math msqrt:before, math mroot:before	{
	content: "&#x221a;";
	  /* see http://charts.unicode.org/Unicode.charts/normal/U2200.html */
	}

math msqrt, math mroot	{
	padding-top: .1em;
	border-top-style: solid;
	border-top-width: thin;
	}

math mroot	{
	position: relative;
	padding-left: 1em; /* This is bad */
	}

math mroot > *:first-child	{
	font-size: smaller;
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1.2em; /* This is bad */
	} 

