From 8600da50ff3f46d81dd4feea2caaa26e86575e74 Mon Sep 17 00:00:00 2001 From: "timeless%mac.com" Date: Wed, 18 Apr 2001 02:54:41 +0000 Subject: [PATCH] fix Bugzilla Bug 62678 View source uses background from prefs and hardcoded text color fix by bzbarsky@mit.edu r=timeless, sr=attinasi git-svn-id: svn://10.0.0.236/trunk@92634 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/document/src/viewsource.css | 5 ++++- mozilla/layout/style/viewsource.css | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/document/src/viewsource.css b/mozilla/layout/html/document/src/viewsource.css index f5f0b58ba8a..2c66f273e05 100644 --- a/mozilla/layout/html/document/src/viewsource.css +++ b/mozilla/layout/html/document/src/viewsource.css @@ -22,10 +22,13 @@ @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ +html { + background-color: window; +} .viewsource { font-family: monospace; font-weight: normal; - color: black; + color: windowtext; white-space: pre; font-size: 12px; padding-top: 8px; diff --git a/mozilla/layout/style/viewsource.css b/mozilla/layout/style/viewsource.css index f5f0b58ba8a..2c66f273e05 100644 --- a/mozilla/layout/style/viewsource.css +++ b/mozilla/layout/style/viewsource.css @@ -22,10 +22,13 @@ @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */ +html { + background-color: window; +} .viewsource { font-family: monospace; font-weight: normal; - color: black; + color: windowtext; white-space: pre; font-size: 12px; padding-top: 8px;