diff options
Diffstat (limited to 'thcolor/builtin.py')
-rw-r--r-- | thcolor/builtin.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/thcolor/builtin.py b/thcolor/builtin.py index b42f6a4..229a746 100644 --- a/thcolor/builtin.py +++ b/thcolor/builtin.py @@ -8,16 +8,16 @@ from typing import Union as _Union from .angles import Angle as _Angle -from .decoders import ( - MetaColorDecoder as _MetaColorDecoder, - alias as _alias, fallback as _fallback, -) from .colors import ( CMYKColor as _CMYKColor, Color as _Color, HSLColor as _HSLColor, HSVColor as _HSVColor, HWBColor as _HWBColor, LABColor as _LABColor, LCHColor as _LCHColor, SRGBColor as _SRGBColor, XYZColor as _XYZColor, YIQColor as _YIQColor, YUVColor as _YUVColor, ) +from .decoders import ( + MetaColorDecoder as _MetaColorDecoder, + alias as _alias, fallback as _fallback, +) from .utils import factor as _factor __all__ = [ @@ -51,6 +51,8 @@ class CSS1ColorDecoder(_MetaColorDecoder): See `<https://www.w3.org/TR/CSS1/>`_ for more information. """ + __defaults_to_netscape_color__ = True + black = _rgb('#000000') silver = _rgb('#c0c0c0') gray = _rgb('#808080') @@ -497,7 +499,7 @@ class DefaultColorDecoder(CSS4ColorDecoder): This method is actually compatibility with w3color.js. NCols are managed directly without the function, so - the function just needs to return the color. + the function only needs to return the color. """ return color |