servo/components/atoms
Bastien Orivel 05c4e08d58 Add a sanitize_value implementation for the color input
I had to change the test a little bit to avoid some failures due to
color and text both having a sanitizedValue which was making the test
use the first assertion instead of the second one in some cases.

The sanitize_value implementation is pretty simple, we iterate over the
content and checks that the content is 7 characters long, that the first
character is a `#` and then that all the following characters are
hexadecimal. If all those requirements are met, we lowercase the
content, otherwise we put `#000000` in it.
2017-11-22 22:36:21 +01:00
..
build.rs Use env::var_os to read paths from the environment 2017-10-20 09:03:21 -07:00
Cargo.toml Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
lib.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
static_atoms.txt Add a sanitize_value implementation for the color input 2017-11-22 22:36:21 +01:00