Closed
Bug 25425
Opened 26 years ago
Closed 26 years ago
changing document.bgcolor creates borders
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: p.may.1, Assigned: attinasi)
References
()
Details
Attachments
(1 file)
514 bytes,
text/html
|
Details |
This page consists as an image nested inside two tables. Upon load, a Jscript
function ('CheckState()') checks for a cookie storing the current state and sets
on if there is no cookie. The JScript function 'stateSwap()' toggles between
two states and stores the current state in a cookie. Two properties are changed
between states: the image src switches between an on/off image, and the
document.bgColor switches between white and grey.
2 bugs:
Changing states creates a border around the tables and image. This border does
not appear when the code initializes with checkState().
After a state change, the bgcolor only fills the outermost table -- not the
entire document space.
To be more clear about bug #2, extra space in the browser window not filled by
content doesn't not change when you change states. Also, when you switch to an
overlapping window and switch back, the overlapped area is the correct color
when focus returns to the browser (though any part still visible on the screen
stays the wrong color.) Bug #2 warrants another report?
Summary: document.bgcolor creates borders → changing document.bgcolor creates borders
Comment 2•26 years ago
|
||
There are two separate bugs described here. In the future, I'd recommend that
separate bugs be split into separate bug reports:
Problem 1 - I believe this is a style system issue. Presumably the table layout
and painting code consults the table's style context about the existence of a
border. The fact that a style change at the viewport level (the
document.bgcolor) results in a style change at the table level sounds like a bug
in the style system. Cc:ing Kevin McClusky because I heard he's seeing a similar
problem somewhere else.
Problem 2 - A DUP of bug 1886, which, judging from its number, has been around
for quite a while. The bug author doesn't need to file a separate bug for this,
but should probably mention this test case in the comments for bug 1886.
Assignee: vidur → attinasi
Comment 3•26 years ago
|
||
This looks like it is probably a dup of bug 13693 which also results in borders
being drawn around table cells.
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•26 years ago
|
||
Assignee | ||
Comment 7•26 years ago
|
||
Checking for border width > 0 before setting the border style to
NS_STYLE_BORDER_STYLE_BG_INSET. The problem was that the border was specified
with a width of 0, so the check for a border attribute with a Pixel-unit was
insufficient for determining if the cell should have a border style.
f=nsHTMLTableElement r=karnaze
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 10•26 years ago
|
||
*** Bug 18664 has been marked as a duplicate of this bug. ***
Comment 11•26 years ago
|
||
*** Bug 27815 has been marked as a duplicate of this bug. ***
Comment 12•26 years ago
|
||
I still see the border on Win-95. I tested it with 2000-02-14-09.
Reopening bug.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 13•26 years ago
|
||
I double-checked it with chrisd on Win95 and NT and it is fine. We used the 2/13
and 2/14 builds, pulled from Mozilla.org. Please check it again. Thanks.
Comment 14•26 years ago
|
||
Marc, I checked it again and I can still see it on windows-95.
One thing I want to make sure, border here we are talking about si some dotted
line we see around the image right ?
Assignee | ||
Comment 15•26 years ago
|
||
The dotted-line is the focus indicator. The borde was a sloid line around ALL of
the cells (not just the image). I'm guessing then that the bug is indeed fixed.
Please verify.
Comment 16•26 years ago
|
||
You are right Marc.
Sorry I reopened it with wrong thing in mind.
Marking fixed, and verified.
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•