Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The default value for border-style does not match the documented default value. #22

Open
zhyupe opened this issue Oct 18, 2018 · 1 comment

Comments

@zhyupe
Copy link

zhyupe commented Oct 18, 2018

In the document, default value for border-style:

border-style: values solid | dashed | dotted, default value solid
border-left-style: values solid | dashed | dotted, default value solid
border-top-style: values solid | dashed | dotted, default value solid
border-right-style: values solid | dashed | dotted, default value solid
border-bottom-style: values solid | dashed | dotted, default value solid

But according to lib/validator.js, border-style is defined as genEnumValidator(['dotted', 'dashed', 'solid']), and the ENUM_VALIDATOR treats the first value as default value. Therefore, when border-style: dotted is used, the following notice will show up:

NOTE: property value `dotted` is the DEFAULT value for `border-style` (could be removed)
@accelerator-feng
Copy link

I also have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants