-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call SetNeedsAssignmentRecalc in HTMLSlotElement::ChildrenChanged
Bug: 1184357 Change-Id: Id9e804e5762ac6c40ba1be0620401d219d6f4d90 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2734104 Commit-Queue: Joey Arhar <jarhar@chromium.org> Reviewed-by: Mason Freed <masonfreed@chromium.org> Cr-Commit-Position: refs/heads/master@{#859652}
- Loading branch information
1 parent
d329287
commit 3f7c402
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
third_party/blink/web_tests/external/wpt/dom/slot-recalc-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!DOCTYPE html> | ||
<div> | ||
<p>there should be more text below this</p> | ||
<p>PASS if this text is visible</p> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
third_party/blink/web_tests/external/wpt/dom/slot-recalc.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1184357"> | ||
|
||
<link rel="match" href="/dom/slot-recalc-ref.html"> | ||
|
||
<body> | ||
<script> | ||
const host = document.createElement('div'); | ||
document.body.appendChild(host); | ||
const root = host.attachShadow({mode: 'open'}); | ||
|
||
const slot = document.createElement('slot'); | ||
slot.innerHTML = `<p>there should be more text below this</p>`; | ||
root.appendChild(slot); | ||
|
||
onload = () => { | ||
const shouldBeVisible = document.createElement('p'); | ||
shouldBeVisible.textContent = 'PASS if this text is visible'; | ||
slot.appendChild(shouldBeVisible); | ||
}; | ||
</script> |