marcomachadosantos / gwt-chronoscope

Automatically exported from code.google.com/p/gwt-chronoscope
GNU Lesser General Public License v2.1
0 stars 0 forks source link

General CSS styles set by gviz api (e.g. "a" and "body") #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a simple html page and include: <script
src="http://api.timepedia.org/gviz/"></script> OR open
http://timepedia.org/chronoscope/docs/gviz/
2. load the page in FF with Firebug
3. open the HTML tab in Firebug and find the html > head > style element
4. It includes styles such as:

body{font-family:Arial ,
sans-serif;font-size:small;color:black;margin:0px;border:0px;padding:0px;backgro
und:#fff;direction:ltr;}

table td{font-family:Arial , sans-serif;font-size:small;}

a{font-family:Arial , sans-serif;font-size:small;color:#00a;}

It looks like these styles were added dynamically by chronoscope.

Setting styles so generally for "a", "body", and "table" is undesired. They
should be specific to the graph (e.g. , but they instead interfere with
imported style sheets).

I am using js only together with the google viz js api. I am not compiling
from GWT.

Original issue reported on code.google.com by brockjud...@gmail.com on 8 Dec 2008 at 12:16

Attachments:

GoogleCodeExporter commented 8 years ago
I believe the worst of the CSS leakage was resolved a while ago, although some 
more tightening of the CSS targeting might be worth it, although UiBinder 
support shouldn't be too far off.

Original comment by timepedia@gmail.com on 20 Aug 2010 at 8:55