A style observer attribute for an element to resemble another

UNCONFIRMED
Unassigned

Status

()

Core
XUL
--
enhancement
UNCONFIRMED
10 years ago
10 years ago

People

(Reporter: Jehan, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
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.
You need to log in before you can comment on or make changes to this bug.