Closed
Bug 227695
Opened 21 years ago
Closed 15 years ago
Incorrect serialization of font shorthand when it's set to a system font
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 475214
People
(Reporter: bzbarsky, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
111 bytes,
text/html
|
Details |
"font: icon" is serialized as "font-family: icon; font-style: ; font-variant: ; font-weight: ; font-size: ; line-height: ; font-size-adjust: ; font-stretch: ;" which is pretty bogus...
Reporter | ||
Comment 1•21 years ago
|
||
It doesn't look like we ever serialize to the 'font' shorthand, at least from the looks of nsCSSDeclaration::ToString.
Reporter | ||
Comment 3•21 years ago
|
||
Right. And for cases when the "font" value is not a generic, that's fine -- it produces valid CSS equivalent to the original shorthand. However, due to the way we store generic-only values in the data struct (by setting blank nsCSSValues for all the other sub-properties at http://lxr.mozilla.org/seamonkey/source/content/html/style/src/nsCSSParser.cpp#5040) this case actually breaks roundtripping quite badly... The easiest solution is probably to start serializing to the font shorthand. :(
Reporter | ||
Comment 4•19 years ago
|
||
*** Bug 281388 has been marked as a duplicate of this bug. ***
Summary: Incorrect serialization of font shorthand when it's set to a generic → Incorrect serialization of font shorthand when it's set to a system font
Comment 5•19 years ago
|
||
Is this distinguishable from bug 216456 ?
Reporter | ||
Comment 6•19 years ago
|
||
> Is this distinguishable from bug 216456 ?
Yes. This bug is about serialization, that bug is about computed style. They're not the same at all.
Blocks: 377731
Depends on: 377947
Assignee: dbaron → nobody
QA Contact: ian → style-system
Depends on: 376075
This was fixed by http://hg.mozilla.org/mozilla-central/rev/768c8c967b0d .
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•