[Bug 211942] New: firefox css layout ignored
https://bugzilla.novell.com/show_bug.cgi?id=211942 Summary: firefox css layout ignored Product: SUSE Linux 10.1 Version: Final Platform: x86 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Firefox AssignedTo: bnc-team-mozilla@forge.provo.novell.com ReportedBy: jengelh@gmx.de QAContact: qa@suse.de I was of the impression that tag attributes would override any toplevel definitions (such as CSS stylesheets), but this does not seem to be the case. Is this a bug? See the attached file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211942 ------- Comment #1 from jengelh@gmx.de 2006-10-12 09:24 MST ------- Created an attachment (id=101333) --> (https://bugzilla.novell.com/attachment.cgi?id=101333&action=view) testcase -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211942 rocallahan@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #2 from rocallahan@novell.com 2006-10-15 20:19 MST ------- CSS requires author sheet properties to override attributes. See http://www.w3.org/TR/REC-CSS2/cascade.html#q12 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211942 ------- Comment #3 from jengelh@gmx.de 2006-10-18 05:11 MST ------- But even if I took away the valign attribute (the non-CSS presentational hint) the <style> would take precedence over <td style>, which would seem to go against 6.4.3 of the link you posted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211942 jengelh@gmx.de changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #101333|0 |1 is obsolete| | ------- Comment #4 from jengelh@gmx.de 2006-12-13 11:43 MST ------- Created an attachment (id=109608) --> (https://bugzilla.novell.com/attachment.cgi?id=109608&action=view) testcase So when only using CSS, how come the class="center" does not override? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211942 ------- Comment #5 from suse-beta@cboltz.de 2006-12-13 17:15 MST ------- hmm, your testcase is a bit broken ;-) td table.allright { text-align: right; } should probably be table.allright td {...} And if you are still able to reproduce this bug, you should reopen it ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211942 jengelh@gmx.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Comment #6 from jengelh@gmx.de 2006-12-14 00:05 MST ------- With "table.allright td" it does not work (last cell's text is not centerd) either. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211942 rocallahan@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Comment #7 from rocallahan@novell.com 2006-12-14 14:38 MST ------- Firefox is correct. See http://www.w3.org/TR/CSS21/cascade.html#specificity The specificity of "table.allright td { text-align: right; }" is 0-1-1-0. The specificity of ".center { text-align: center; }" is 0-1-0-0. So the first rule wins. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211942
Jan Engelhardt
participants (1)
-
bugzilla_noreply@novell.com