Closed Bug 241234 Opened 21 years ago Closed 10 years ago

Serialization of margin and padding is too verbose

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: glazou, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted)

Serialization of margin-top: 0px; margin-left: 0px; padding-top: 0px; padding-left: 0px; results in margin-top: 0px; margin-left-value: 0px; margin-left-ltr-source: physical; margin-left-rtl-source: physical; padding-top: 0px; padding-left-value: 0px; padding-left-ltr-source: physical; padding-left-rtl-source: physical; That's very bad for Composer and Nvu...
See bug 74880 comment 66 and bug 74880 comment 67. I still feel that we need a better serialization and shorthand architecture in general... :(
Keywords: helpwanted
Blocks: 247816
Assignee: dbaron → nobody
QA Contact: ian → style-system
Border styles are very similar. Setting a shorthand border (e.g. "border: 1px solid black;") expands to 33 properties: border-top-width border-right-width-value border-right-width-ltr-source border-right-width-rtl-source border-bottom-width border-left-width-value border-left-width-ltr-source border-left-width-rtl-source border-top-style border-right-style-value border-right-style-ltr-source border-right-style-rtl-source border-bottom-style border-left-style-value border-left-style-ltr-source border-left-style-rtl-source border-top-color border-right-color-value border-right-color-ltr-source border-right-color-rtl-source border-bottom-color border-left-color-value border-left-color-ltr-source border-left-color-rtl-source -moz-border-top-colors -moz-border-right-colors -moz-border-bottom-colors -moz-border-left-colors border-image-source border-image-slice border-image-width border-image-outset border-image-repeat
This will be fixed by bug 649142.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.