Commit Graph
2 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez 8d05c9b9e8 Bug 1737455 - Don't clear adoptedStyleSheets when adopting from a template document to its owner or vice versa. r=edgar
See https://github.com/WICG/construct-stylesheets/issues/133, which is
where this change was discussed (and then made to Chromium apparently).

I filed https://github.com/w3c/csswg-drafts/issues/7229 to put some
actual spec text here. Also, tweak the wpt which is supposed to test so
that it fails without this change.

Differential Revision: https://phabricator.services.mozilla.com/D144564
2022-04-26 17:31:23 +00:00
Rakina Zata Amni 371e6ff24d Bug 1674712 [wpt PR 26080] - Don't clear adoptedStyleSheets when moving shadow root between document <-> template, a=testonly
Automatic update from web-platform-tests
Don't clear adoptedStyleSheets when moving shadow root between document <-> template

As discussed in https://github.com/WICG/construct-stylesheets/issues/133,
it should be safe to keep the adoptedStyleSheets when the shadow root
is moved between a document and a <template> within that document. We
should still clear the adoptedStyleSheets when moving a shadow root
between documents outside of that case (e.g. between iframes).
I2S: https://groups.google.com/a/chromium.org/g/blink-dev/c/W5-EGUySQgc/m/HxrySSpsBAAJ

Bug: 1111864
Change-Id: I803e75e6339f9228289188e4ed7d3f14c6e2432c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2464519
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Rakina Zata Amni <[email protected]>
Cr-Commit-Position: refs/heads/master@{#822999}

--

wpt-commits: 36a5c51e57ac8808bbaf52dd495783fd926b7547
wpt-pr: 26080
2020-11-04 10:10:18 +00:00