Closed Bug 219903 Opened 21 years ago Closed 20 years ago

-moz-initial value reads back as initial

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8alpha6

People

(Reporter: neil, Assigned: dbaron)

Details

(Keywords: css-moz, css3, Whiteboard: [patch])

Attachments

(1 file)

If you set (e.g.) style="font-size: -moz-initial;" on an element the style reads
back as "font-size: initial;" so if you try to concatenate a style the setting
is lost completely as Mozilla does not understand a setting of "initial". This
also affects the style property of HTML elements e.g. a setting of
document.body.style.fontSize = "-moz-initial"; reads back as "initial".
There's another bug on this, somewhere.  I think the 'initial' proposal is
stable enough that we should just change everything to 'initial'.  The problem
is that we have 'initial' in some places and '-moz-initial' in others.
I wouldn't object to just using 'initial' everywhere. Aspects of the proposal,
or related proposals, are still in flux, though (e.g. the recent 'default'
discussion) so I'm not sure exactly _how_ stable 'initial' is.
Keywords: css-moz, css3
OS: Windows 2000 → All
Hardware: PC → All
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [patch]
Target Milestone: --- → mozilla1.8alpha6
Attachment #167875 - Flags: superreview?(bzbarsky)
Attachment #167875 - Flags: review?(bzbarsky)
Comment on attachment 167875 [details] [diff] [review]
patch

r+sr=bzbarsky
Attachment #167875 - Flags: superreview?(bzbarsky)
Attachment #167875 - Flags: superreview+
Attachment #167875 - Flags: review?(bzbarsky)
Attachment #167875 - Flags: review+
Fix checked in to trunk, 2004-12-04 14:10 -0800.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: