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

Fix error on logical border shorthand properties #561

Merged
merged 1 commit into from Nov 26, 2019

Conversation

MurakamiShinyu
Copy link
Member

Problem:

"TypeError: Cannot read property 'visit' of undefined" occurs when logical border shorthand property is used.
e.g. border-inline-start: 1px solid causes this error.

When none of <border-width>, <border-style>, <border-color> is omitted,
e.g. border-inline-start: 1px solid blue, this error does not happen.

This error happens because default value definition of logical border properties is missing in src/resources/validation.txt.
The problem existed since PR #443 "Support CSS Logical Properties".

**Problem:**

"TypeError: Cannot read property 'visit' of undefined" occurs when logical border shorthand property is used.
e.g. `border-inline-start: 1px solid` causes this error.

When none of `<border-width>`, `<border-style>`, `<border-color>` is omitted,
e.g. `border-inline-start: 1px solid blue`, this error does not happen.

This error happens because default value definition of logical border properties is missing in src/resources/validation.txt.
The problem existed since PR #443 "Support CSS Logical Properties".
@MurakamiShinyu MurakamiShinyu self-assigned this Nov 26, 2019
@MurakamiShinyu MurakamiShinyu merged commit a5e0b68 into master Nov 26, 2019
@MurakamiShinyu MurakamiShinyu deleted the fix-logical-border-shorthand branch November 26, 2019 13:55
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

Successfully merging this pull request may close these issues.

None yet

1 participant