Closed Bug 104229 Opened 23 years ago Closed 23 years ago

table loses colors (css) when changing font-size for monospace font family

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: markus, Assigned: dbaron)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

I have a table which uses css to display a backgound color. Open the Prefs
dialog, go to fonts, change the font-size, click ok, backgound-colors become white.
could you pls attach the sample html file, or point us to the url, where this
happens? thx!
-> Style System.  There's a related bug about bgcolor not changing on pages
opened prior to making the pref change in the prefs dialog.
Assignee: sgehani → dbaron
Component: Preferences → Style System
QA Contact: sairuh → ian
Added a url.
seeing this on current linux (2001-11-16-08)
Status: UNCONFIRMED → NEW
Ever confirmed: true
A simplified testcase would be nice.  Does this only happen when the
background-color is specified on the TR?  On some other element?
bgcolor is specified through external stylesheet.
On which element?  TD?  TR?
Attached file Minimal testcase
Just load the testcase and then open preferences and change the font (or
text/background color).  Notice how the background on the <tr> goes away but
that on the <div> stays...
Looks like this is an issue with quirks mode style resolution for tables...
Backgrounds on inner table elements work very differently in quirks and strict
mode.  In strict mode, the frames draw the background, but in quirks mode, we have:

/* Quirk: make sure backgrounds are inherited in tables */
td, th, tr {
  background: inherit;
}

in quirks.css and only the cell frames draw the backgrounds.
Keywords: testcase
*** Bug 115224 has been marked as a duplicate of this bug. ***
Is this still a problem?
This now works fine for me (I _did_ see the problem with the testcases I posted
when I posted them).  Markus, are you still seeing this problem?
i don't see the problem with 2002021421 on linux.
thanks for fixing.
This worksforme...
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: