Closed Bug 61244 Opened 24 years ago Closed 23 years ago

[NAMESPACE]CSS files with no default stylesheet are causing styling of elements in unknown namespaces

Categories

(Core Graveyard :: Skinability, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.6

People

(Reporter: hand, Assigned: shliang)

References

()

Details

Attachments

(2 files)

From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; COM+ 1.0.2204)
BuildID:    2000112620

Namespaces which Mozilla aren't suppose to recognise have styles.

Reproducible: Always
Steps to Reproduce:
no steps to reproduce

Actual Results:  Because unrecognized namespaces have styles, some elements in 
arbitrary namespaces such as <s:button xmlns:s="something"> appear as buttons.

Expected Results:  They should not be styled at all.  default CSS styles should 
not pollute all namespaces.

see attachment
Looks like we'll need to specify an xul namespace by default for all CSS 
files.  I can do this if you want...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Will that conflict with other namespaces?  eg. HTML/MathML?
Reassigned to Marc like bug 53796
Assignee: pierre → attinasi
Summary: Unrecognised namespaces have styles → [NAMESPACE]Unrecognised namespaces have styles
Target Milestone: --- → mozilla0.9
I believe that is is actually a dup of bug 53796. The problem is that we are not
assigning the default namespace to some of the rules in ua.css, so they are
applying to elements in all namespaces.

*** This bug has been marked as a duplicate of 53796 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Netscape's standard compliance QA team reorganised itself once again, so taking 
remaining non-tables style bugs. Sorry about the spam. I tried to get this done 
directly at the database level, but apparently that is "not easy because of the 
shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
Reopening, this is not the same issue, since pseudos are not involved.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
OK, I probably misunderstood it then. I'll look again.
Status: REOPENED → ASSIGNED
OK, I really misunderstood! 

So, is it because the XUL css files have no default namespace that the rules in 
them are applied to arbitrary namespaces? Then I think we need to take Blake up 
on his offer (from last December) to set the default namespace in all of the XUL 
css files. Blake, David, Ian? Does this sound right?
attinasi: Certainly *sounds* right, assuming that the XUL CSS files are in fact 
lacking the relevant @namespace rules.
This looks like a skin-specific problem. When I use the Modern skin (which has 
default namespaces applied consistently) there is not styling of the buttons in 
the testcase. When I use the Classic skin I get the button styling in the 
testcase, probably because there is no default namespace in the css files for 
the classic skin.

* bring up testcase in Mozilla with Classic skin - note the button styling
* change to Modern skin - note the 'buttons' no longer get styled like buttons

I'm not sure what to do with this: I don't feel comfortable banging on skin 
files and I don't think there is anything 'wrong' in the style engine here... 
Should the skin owners take this and fix their css files?
Updating summary and reassigning to skinability (not sure if that is correct 
component, but the problem is in skin CSS files).
Assignee: attinasi → ben
Status: ASSIGNED → NEW
Component: Style System → Skinability
QA Contact: ian → blakeross
Summary: [NAMESPACE]Unrecognised namespaces have styles → [NAMESPACE]CSS files with no default stylesheet are causing styling of elements in unknown namespaces
Blake asked me last week why I added the default namespace to every CSS file in
the Modern theme recently, and this is the reason why.  I'll take this bug and
do the same to Classic.
Assignee: ben → hewitt
Severity: major → normal
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9 → ---
Mass reassigning some of my theme bugs to Shuehan.
Assignee: hewitt → shliang
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
Blocks: 105174
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: