Closed
Bug 262560
Opened 20 years ago
Closed 16 years ago
switching alternate stylesheets & table with collapsed borders model, cell borders don't re-appear.
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ralphf, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Win98; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Win98; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Scenario is where HTML page has (a) table with border-collapse: collapse; (b)
two alternate stylesheets, one with no cell borders and the other with cell
borders.
When switching from the alternate stylesheet with no cell borders to the
stylesheet with cell borders, the table borders are not restored.
This doesn't seem to happen with every test case, but where it happens, it
happens consistently. [I'll need to upload a simple test case to demonstrate.]
Reproducible: Always
Steps to Reproduce:
1. In the test case, view the page and note the cells have 2px black borders.
2. Switch to the alternate stylesheet "No Cell Border".
Note that the cells now have no borders.
3. Switch back to the stylesheet "Cell Border".
Note that the cell borders are not restored on the top table,
only on the bottom table.
Actual Results:
The 2px cell borders were not restored on the top table.
To restore the cell borders on the top table, you need to
reload the page.
Expected Results:
When switching from stylesheet "No Cell Border" to stylesheet "Cell Border",
the 2px cell borders should be restored on the top table.
To demonstrate the bug, extract the 3 files "test_case.html",
"stylesheet_border.css" and "stylesheet_noborder.css" into the same directory.
Open the file "test_case.html" in Firefox (0.10.1).
The 2 tables have cell borders, but after changing to the alternate stylesheet
and changing back again, the top table will not have a cell border.
How does this bug differ from 258377, do you really need the AltCSS or will the
issue also show up when you modify it with Javascript?
In reply to Bernd's question...
I am uploading a fairly literal conversion of the original
test case (which used AltCSS) into a test case which uses
Javascript and no AltCSS.
When modifying the style with Javascript, the results are
different to the AltCSS case (but show other problems).
1. When using Javascript, the cell borders are restored.
That is, the problem described in this bug report
does not seem to occur when modifying the style with
Javascript instead of with AltCSS.
2. When using Javascript, the cell borders are not
all removed in the alternate "No Cell Border" style.
Only the table with style "border-collapse: collapse"
has this problem. It appears that changing the border-style
to none via Javascript does not update the display.
DOM inspector shows the border-style has been changed.
(Using border-style hidden in place of none still seemed
to show the same problem.)
This problem does not occur when using the AltCSS
test case.
fixed by the checkin for bug 258377
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•