Open
Bug 219374
Opened 21 years ago
Updated 2 years ago
always canonicalise colors, not only for non-keywords
Categories
(Core :: DOM: CSS Object Model, defect, P5)
Tracking
()
NEW
People
(Reporter: ian, Unassigned)
References
()
Details
At the moment, we canonicalise most color values. For instance: If the sheets says... In the DOM we return... #00F rgb(0, 0, 255) #0000FF rgb(0, 0, 255) rgb(0,0,255) rgb(0, 0, 255) rgb(0%, 0%, 100%) rgb(0, 0, 255) However, if the sheet says: color: red ...then we return 'red' as the value in the DOM. We should fix this since according to bz, it would speed up style resolution (at the moment the color name is converted to the RGB triple on every style resolve instead of being converted at parse time). It would also ensure interoperability with Opera, which will be standardising on the rgb() canonicalisation. Testcase: http://www.hixie.ch/tests/adhoc/dom/css/canonicalization/001.html Our spec: http://www.damowmow.com/playground/canon.txt This broke out of bug 110762.
Comment 1•21 years ago
|
||
Note that the speedup for style resolution will be pretty small (and not measurable with our tools, really), since the table lookup involved is pretty fast.
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: ian → general
QA Contact: general → style-system
Comment 2•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•