@anthony_ricaud @yoavweiss It sounds like you’d be better served by a browser extension for a complex-ish setup like this.
@sid_vishnoi @kennethrohde @dandclark1 You can `try…catch` a dynamic import assertion to check if the type is supported:
“`js
const type = ‘foo’;
try {
await import(‘./foo.json’, {
assert: { type }
});
} catch (err) {
if (https://t.co/C3OTM
Using CSS Module Scripts to import stylesheets https://t.co/qzWWYCYCVK, by @dandclark1.
“`js
import sheet from ‘./styles.css’ assert { type: ‘css’ };
document.adoptedStyleSheets = [sheet];
shadowRoot.adoptedStyleSheets = [sheet];
“`
@Gian_albert02 @ChromiumDev You can always file a new.crbug.com.
@Gian_albert02 @ChromiumDev That’s the UI of the @brave browser. You’re tweeting to Chrome.
@pepelsbey_ The problem with toggles is that you’re actively fighting the browser if you choose a theme different than the system theme; there is just no way around it. FWIW, my toggle supports both approaches, the `class` attribute or the `link[media]` a
@Gian_albert02 @ChromiumDev This is the tabs overview that you have chosen to fill with new tabs. In the general case this overview looks different. 😃
RT @ChromiumDev: Help @tomayac by answering a short (promised!) survey 🔋 about his efforts to reboot the 🔶 Network Information API: https:/…