Closed Bug 121025 Opened 24 years ago Closed 24 years ago

[BIZARRE]-moz-opacity doesn't work if declared after a <link>ed stylesheet

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rbs, Assigned: dbaron)

Details

(Keywords: css-moz, testcase)

Attachments

(3 files)

When adding a background effect on the MathML demo of <mfrac>, I noted that to get '-moz-opacity' to work, I had to declare its CSS _before_ the alternate stylesheets. If I move the <style>...</style> block _after_ the <link>s, I still get the blue border, but -moz-opacity doesn't work anymore. <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [ <!ENTITY mathml "http://www.w3.org/1998/Math/MathML"> ]> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>MathML Demo: &lt;mfrac&gt; - fractions</title> <style type="text/css"> [class="background"] { background-image: url(http://www.mozilla.org/images/mozilla-banner.gif); border: 1px solid blue; -moz-opacity: 0.3; } [class="foreground"] { -moz-opacity: 100; } </style> <link rel="stylesheet" title="TeX" href="tex.css"/> <link rel="alternate stylesheet" title="Mathematica" href=mathematica.css"/> </head> [...] And this shows a combination with a background image at a desired opacity <math xmlns="&mathml;" mode="display" class="background"> <mrow class="foreground"> [...] </mrow> </math> [...] </body> </html>
The link to the MathML demo of <mfrac> is: http://www.mozilla.org/projects/mathml/demo/mfrac.xhtml And a screenshot of the rendering with -moz-opacity can be seen at: http://bugzilla.mozilla.org/attachment.cgi?id=65420&action=view
If it was anyone except you filing the bug, I would immediately say it was invalid! :-) Could you attach two test cases, one showing it working and one showing it not working, with the absolute minimum of changes between the two?
>I would immediately say it was invalid! you could ship with lots of bugs if you are so quick... Anyway, since the bug don't ring any similar bells, let me attach the testcases since I have them ready (but they are XHTML + MathML). The differences between the two is just that the working testcase has: '<style>...</style> <link />' while the non-working testcase has: '<link /> <style>...</style>'
Attached file testcase - ok
Attached file testcase - bad
Memory corruption? Any other bright ideas?
Attached file Simpler test case
Wow this is really weird. Here is a simpler test case (no MathML). Remove the PI at the top and it works. Even just making that stylesheet a non-alternate stylesheet makes it work. What a peculiar bug. And it only seems to affect -moz-opacity (not that I tried all the other properties, but I did try several).
Could also be an uninitialized variable somewhere.
Summary: -moz-opacity doesn't work if declared after a <link>ed stylesheet → [BIZARRE]-moz-opacity doesn't work if declared after a <link>ed stylesheet
Worksforme. Perhaps some ReResolve bug somewhere?
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: