-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cover changing content targetting :has-slotted and :has-slotted(...) #48317
Conversation
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 = ''; |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done and done.
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? |
4537185
to
a554454
Compare
a554454
to
0c500da
Compare
There was a problem hiding this 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 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.