зеркало из https://github.com/mozilla/gecko-dev.git
5aafe1d979
This adds support for #rgba and #rrggbbaa colors to CSS. This feature is specified in https://drafts.csswg.org/css-color-4/#hex-notation . This adds new types to nsCSSValue so that we can serialize the syntax that was specified, as we do for other distinctions in how colors are specified. It does not change the behavior of the hashless color quirk, which continues to support only 3 and 6 digit colors as specified in https://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk (step 4). This changes property_database.js to remove various uses of 4 and 8 digit colors as invalid values. It then adds them in slightly fewer places as valid values, but more thoroughly testing both initial and non-initial values on 'color'. It marks two canvas tests explicitly testing this feature as no longer known to fail by removing their .ini files. Finally, it adjusts the web platform test testing the hashless color quirk to no longer treat 4 and 8 digit colors with hashes as invalid values. Removing the relevant test items seems like the right thing since they're in a section where 3 and 6 digit colors were skipped but other lengths were tested. Modifying this imported test is OK since: <jgraham> dbaron: Commit the change you want to m-c, it is (semi-)automatically upstreamed every so often (typically about once a week) MozReview-Commit-ID: IFq4HxaRkil |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |