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

Cover changing content targetting :has-slotted and :has-slotted(...) #48317

Merged
merged 7 commits into from
Sep 30, 2024

Conversation

Westbrook
Copy link
Contributor

@keithamus these are much more complicated for me to compile in my brain, but I'm pretty confident this covers content swapping for the various cases in question here.

Comment on lines 42 to 56
test.innerHTML = ' ';
styles = getComputedStyle(target);
assert_equals(styles.getPropertyValue('color'), blue);
test.replaceChildren();;
styles = getComputedStyle(target);
assert_equals(styles.getPropertyValue('color'), green);
const div = document.createElement('div');
test.append(div);
styles = getComputedStyle(target);
assert_equals(styles.getPropertyValue('color'), fuchsia);
const node = document.createTextNode(' ');
test.replaceChildren(node);
styles = getComputedStyle(target);
assert_equals(styles.getPropertyValue('color'), blue);
test.innerHTML = '';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now with more diverse DOM insertion/update APIs.

@@ -0,0 +1,63 @@
<!DOCTYPE HTML>
Copy link
Contributor

@keithamus keithamus Sep 23, 2024

Choose a reason for hiding this comment

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

Need to rename these files to .tentative.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done and done.

@Westbrook
Copy link
Contributor Author

Is the "wpt-chrome-dev-stability" job telling me I've added tests that fail in Chrome? It talks about "flakes", but they fail regularly, as expected, which leaves me unsure what else is needed to get this green.

Thoughts?

Copy link
Contributor

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

Looks like a good basis for us to continue with. Let's merge and refine.

@keithamus keithamus merged commit d3ec111 into web-platform-tests:master Sep 30, 2024
18 of 19 checks passed
@Westbrook Westbrook deleted the has-slotted-changing branch September 30, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants