summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 16:56:46 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 16:56:46 +0100
commit449246d881bc452f91b366ad94f87fc8b199bbb7 (patch)
treeb727b6cc84d7f9055b637bc4477bf89bbdc8815d /src/css.cc
parentdfc9e510aedb52375da02a8776259d21ecf14587 (diff)
compute relative values
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/css.cc b/src/css.cc
index 9bb6c355..69925529 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -149,7 +149,7 @@ void CssContext::addRule (CssRule *rule, CssPrimaryOrder order) {
void CssContext::buildUserAgentStyle () {
char *cssBuf =
"body {background-color: 0xdcd1ba; font-family: helvetica; color: black;"
-// " margin-left: 5px; margin-top: 5px; margin-bottom: 5px; margin-right: 5px;"
+ " margin-left: 5px; margin-top: 5px; margin-bottom: 5px; margin-right: 5px;"
" }"
":link {color: blue; text-decoration: underline; cursor: pointer; } "
":visited {color: green; text-decoration: underline; cursor: pointer; } "
@@ -159,6 +159,16 @@ void CssContext::buildUserAgentStyle () {
"h4 {font-weight: bold} ";
a_Css_parse (this, cssBuf, strlen (cssBuf), 0, CSS_ORIGIN_USER_AGENT);
+
+ char buf[10000];
+
+ FILE *fp = fopen ("/tmp/style.css", "r");
+ if (fp) {
+ fread (buf, 1, sizeof (buf), fp);
+
+ a_Css_parse (this, buf, strlen (buf), 0, CSS_ORIGIN_AUTHOR);
+
+ }
}
void CssContext::buildUserStyle () {