Closed
Bug 254053
Opened 21 years ago
Closed 21 years ago
CSS rendered differently when linked as alternate stylesheet
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: berna.bleeker, Assigned: bernd_mozilla)
References
()
Details
(Keywords: testcase)
Attachments
(3 files, 1 obsolete file)
|
98 bytes,
text/css
|
Details | |
|
640 bytes,
text/html
|
Details | |
|
2.18 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
The same stylesheet is rendered differently when it's linked as an alternate
stylesheet. (I've noticed it only with table borders, so far.) See the URL for
an illustration.
Reproducible: Always
Steps to Reproduce:
1. Make an HTML file with a table.
2. Link 2 stylesheets to it, like this:
<link rel="stylesheet" type="text/css" title="orange" href="orange.css">
<link rel="alternate stylesheet" type="text/css" title="red" href="red.css">
3. Load the page. Choose the alternate stylesheet with the button on the status
bar. See what happens.
4. Copy the HTML file.
5. Link the same 2 stylesheets to it, but in reverse order, like this:
<link rel="stylesheet" type="text/css" title="red" href="red.css">
<link rel="alternate stylesheet" type="text/css" title="orange"
href="orange.css">
6. Load the page. Choose the alternate stylesheet with the button on the status
bar. See what happens.
Actual Results:
The same table with the same CSS is rendered differently when the CSS is linked
as an alternate stylesheet.
Expected Results:
The page should be rendered the same when the CSS is linked as an alternate
stylesheet.
I'm using the Pinball theme.
Updated•21 years ago
|
Assignee: firefox → dbaron
Component: General → Style System (CSS)
Product: Firefox → Browser
QA Contact: firefox.general → ian
Version: unspecified → 1.7 Branch
| Reporter | ||
Comment 1•21 years ago
|
||
When I use the standard theme or Noia, I can't see the bug because I can't
choose an alternate stylesheet--the status bar icon isn't there!
Updated•21 years ago
|
Version: 1.7 Branch → 1.0 Branch
Version: 1.0 Branch → Other Branch
No, you don't get the stylesheet switcher when you're on a frameset containing
the page with the alternate stylesheets. Changing URL appropriately.
Also, what's wrong? It looks fine to me.
| Reporter | ||
Comment 3•21 years ago
|
||
1. Sorry, I hadn't realized the redirection service puts my page in a frame.
2. Yes, the test pages look OK when they're first loaded; the problem occurs
when you switch stylesheets. I've updated the explanation on the pages to
(hopefully) make them more clear. The problem still occurs in 0.9.3.
Comment 4•21 years ago
|
||
Over to tables; that looks like incremental reflow problems with collapsed borders.
Assignee: dbaron → nobody
Component: Style System (CSS) → Layout: Tables
QA Contact: ian → core.layout.tables
Comment 5•21 years ago
|
||
stylesheet for testcase
Comment 6•21 years ago
|
||
this loads the previous attachment as the default stylesheet and then uses DOM
to switch the styles. The effect is similar to what happens when switching
style sheets.
there should be an inner black 1px dotted border and an outer solid 1px red
border.
with linux trunk 2004090707, the red border is only on the top, left and right.
the black border is only on the bottom and is 4 pixels.
Comment 7•21 years ago
|
||
Comment on attachment 158167 [details]
testcase
this appears to be a different bug. This testcase renders ok until very
recently, while the original testcase had problems all the way back to 1.0.
I filed bug 258377 for this testcase.
Attachment #158167 -
Attachment is obsolete: true
Attachment #158167 -
Attachment mime type: text/plain → text/html
Comment 8•21 years ago
|
||
testcase with two stylesheets via data: urls.
orange is: "table { border-collapse: collapse; border-bottom: 4px solid; }"
red is: "table { border: red 1px dotted; }"
after switching to the red stylesheet, Mozilla displays only a bottom border as
a think red dotted line.
Comment 9•21 years ago
|
||
confirmed with linux trunk 2004090707
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
Version: Other Branch → Trunk
| Assignee | ||
Comment 10•21 years ago
|
||
I believe we do not reframe, but we should.
| Assignee | ||
Comment 11•21 years ago
|
||
Attachment #158279 -
Flags: superreview+
Attachment #158279 -
Flags: review+
| Assignee | ||
Comment 12•21 years ago
|
||
note: the comments there should be updated before checkin
| Assignee | ||
Comment 13•21 years ago
|
||
fix checked in
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 14•21 years ago
|
||
*** Bug 258166 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•