Bug
1742880 [wpt PR 31737] - Convert adoptedStyleSheets to use ObservableArray, a=testonly
Automatic update from web-platform-tests
Convert adoptedStyleSheets to use ObservableArray
This CL converts adoptedStyleSheets from a FrozenArray to the
new ObservableArray. This is per the new spec [1]. It should be
backwards compatible, and will allow mutation of adoptedStyleSheets
in place using regular array methods like .push():
document.adoptedStyleSheets = [sheet1, sheet2];
document.adoptedStyleSheets.push(sheet);
...etc...
Intent to ship:
https://groups.google.com/a/chromium.org/g/blink-dev/c/8p7QvGn3Ezo
[1] https://drafts.csswg.org/cssom/#extensions-to-the-document-or-shadow-root-interface
Bug:
1201744
Bug:
1236777
Change-Id: Iacbf66a38c0abd477b5628224c97bec9f8a317e4
Cq-Do-Not-Cancel-Tryjobs: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
3270424
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#950808}
--
wpt-commits:
2889c3f819d785f853858029984fd1f1fcc14e12
wpt-pr: 31737