Skip to content

HTML: Test default styles for 'appearance' - #18591

Merged
zcorpan merged 1 commit into
masterfrom
zcorpan/html-appearance
Aug 21, 2019
Merged

zcorpan merged 1 commit into
masterfrom
zcorpan/html-appearance

Conversation

@zcorpan

@zcorpan zcorpan commented Aug 21, 2019

Copy link
Copy Markdown
Member

for (const att in attributes) {
elm.setAttribute(att, attributes[att]);
}
document.body.appendChild(elm);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also have an assertAppearance before this line?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that would test more the details of how getComputedStyle works for elements not in the document, than appearance UA style. So I would prefer to have such a test separate.

@zcorpan

zcorpan commented Aug 21, 2019

Copy link
Copy Markdown
Member Author

Thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants