Open Bug 468384 Opened 16 years ago Updated 2 years ago

A style observer attribute for an element to resemble another

Categories

(Core :: XUL, enhancement)

x86
Linux
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: jehan, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111415 Mandriva/1.9.0.4-0.1mdv2009.0 (2009.0) Firefox/3.0.4
Build Identifier: 

I was thinking it would be a good idea to have some kind of "style observer". The idea is similar to the observer/broadcaster except that it would copy the style instead of the attributes.

I saw the "class" attribute but it seems not powerful enough. But maybe it exists somewhere else. Then I have not found this feature...
Thanks.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



And to understand my proposition better, it has been inspired by the bug461899 I encountered. My only workaround currently would be to use a "button" element with a popup attribute, instead of a "menu" element inside another menu. But I would like my button's style being completely similar to a menu element.
So something like <button style="menu" /> would be great.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.