Open Bug 503223 Opened 16 years ago Updated 3 years ago

SeaMonkey is reading the Opera Hacks in my CSS files

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect

Tracking

()

UNCONFIRMED

People

(Reporter: macha_wasi, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1pre) Gecko/20090627 SeaMonkey/2.0b1pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1pre) Gecko/20090627 SeaMonkey/2.0b1pre For example, my CSS file contains the following which is being read and applied by SeaMonkey: /* Opera Hacks */ @media all and (min-width:0px) { head~body .clsDivAd50Hdr2{line-height:15pt;} .clsDivAd50Hdr3{line-height:15pt;} } FireFox is handling my CSS file correctly (i.e. it is ignoring the above hack for Opera). Above the Opera Hacks, I have the following in my CSS file: .clsDivAd50Hdr2{clear:left;line-height:12pt;padding-left:2px;width:223px;} .clsDivAd50Hdr3{float:right;line-height:12pt;padding-right:2px;text-align:right;width:138px;} Hence, because SeaMonkey is reading the Opera Hacks it is making the line-height higher than I want it to. Reproducible: Always Steps to Reproduce: See Details Actual Results: See Details Expected Results: See Details
Firefox handles this properly (i.e. it applies the rules), it's not really a hack since it's valid CSS and Gecko 1.9.1 (Firefox 3.5, SeaMonkey, etc.) supports Media Queries.
INVALID per comment #1 - this is valid CSS and both Firefox 3.5 and SeaMonkey 2 render them as they should per the CSS specs.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
I removed the Space between the "and" and the "(" of "and (min-width:0px)" and SeaMonkey and FireFox 3.5 now ignore the @media CSS. However, I have only just noticed that the problem I am seeing with the line-height setting is that SeaMonkey/FireFox 3.5 and Opera 9.64 apply the measurement differently when you are using a Minimum Font Size of 20. I have noticed that the number of pixels from the border of the DIV to the top of the letters in SeaMonkey/FireFox 3.5 is greater than that in Opera 9.64. And similarly, the spacing created below the letters is different.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
In any case, that's not a SeaMonkey-specific bug, but a question of CSS layout.
Component: General → Style System (CSS)
Product: SeaMonkey → Core
QA Contact: general → style-system
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.