You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now I believe it can't happen, but the spec draft here would allow sharing a mutable MediaList across multiple sheets. Is this desired? Would cloning the MediaList in the constructor be better?
The text was updated successfully, but these errors were encountered:
We previously implemented constructable CSSStyleSheet synchronously,
but discussions in WICG/construct-stylesheets#2
have gravitated away from that and we are now interested in asynchronous
creation of CSSStyleSheet, but also provide synchronous constructor that
only result in an empty sheet.
This CL changed the constructors to not accept CSS text. This also
changes part of the constructor where we process passed MediaList
data to copy the given MediaList instead of using the same instance
to avoid introducing the concept of mutable MediaLists.
See: WICG/construct-stylesheets#13
CL for promise-based API: crrev.com/c/1126754
Bug: 807560
Change-Id: I0aeb052b63e45d81fc46cde3052f3d134afa16fa
Reviewed-on: https://chromium-review.googlesource.com/1126898
Reviewed-by: Fergal Daly <[email protected]>
Reviewed-by: Hayato Ito <[email protected]>
Reviewed-by: Takayoshi Kochi <[email protected]>
Commit-Queue: Rakina Zata Amni <[email protected]>
Cr-Commit-Position: refs/heads/master@{#573233}
Right now I believe it can't happen, but the spec draft here would allow sharing a mutable MediaList across multiple sheets. Is this desired? Would cloning the MediaList in the constructor be better?
The text was updated successfully, but these errors were encountered: