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

[docs] Additional information about the method getStyleProperty and property style #6858

Open
Aleksey28 opened this issue Feb 8, 2022 · 0 comments
Labels
AREA: docs An issue related to the product documentation. TYPE: enhancement The accepted proposal for future implementation.

Comments

@Aleksey28
Copy link
Collaborator

What is your Scenario?

There is some misunderstanding about the method getStyleProperty in the documentation. It's written that 'the computed value of the CSS' with the link on method getComputedStyle. But if we use properties of two or more words in the 'camelCase' format like 'background Color' as with method getComputedStyle, we'll get the undefined value.

Documentation link: https://testcafe.io/documentation/402670/reference/test-api/domnodestate#members-specific-to-element-nodes

image
image

What are you suggesting?

It's needed to note in the documentation, that we should use names in the 'kebab-case' format.

Discussion link: https://teams.microsoft.com/l/message/19:[email protected]/1644226835582?tenantId=e4d60396-9352-4ae8-b84c-e69244584fa4&groupId=f74b7d18-34a4-4c78-b7d5-b56e55ce3236&parentMessageId=1644226835582&teamName=Teams%20Collaborations&channelName=TestCafe&createdTime=1644226835582

What alternatives have you considered?

No response

Additional context

No response

@Aleksey28 Aleksey28 added TYPE: enhancement The accepted proposal for future implementation. AREA: docs An issue related to the product documentation. labels Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AREA: docs An issue related to the product documentation. TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

1 participant