This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
https://drafts.csswg.org/cssom-1/#serializing-css-values [[ Should author specified values be normalized for case? Or should original case be preserved? ]] Filing for bookkeeping.
cssstyledeclaration-csstext.html allows both results as of <https://github.com/w3c/csswg-test/pull/964>; should be updated once the spec is decided.
Quick test: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4830 * WebKit, Blink, Edge 13: log: rgb(255, 0, 0) log: red * Gecko: log: rgb(255, 0, 0) log: ReD So two things: * rgb() syntax is normalized everywhere; the exact author-specified input is not preserved. * Color keywords are lowercased everywhere except Gecko. I suggest Gecko should change.