• Robert Knight's avatar
    Switch to using `<link>` elements for stylesheets in shadow DOM · 1d2eaf68
    Robert Knight authored
    When Shadow DOM was first considered for use in the client `<link
    rel="stylesheet">` was not widely supported as a way to load external styles into
    shadow roots. This was resolved in the spec in https://github.com/whatwg/html/pull/1572
    and has now long been supported by all browsers.
    
    Using `<link>` simplifies the code and also avoids a possible problem with sites
    that have a strict CSP policy that disallows inline styles. In the
    browser extension context a `<link>` can still work in that scenario as long as the
    stylesheet is loaded from a `chrome-extension://` URL.
    1d2eaf68
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
plugin Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
annotation-sync.js Loading commit data...
delegator.js Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.js Loading commit data...
highlighter.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
notebook.js Loading commit data...
pdf-sidebar.js Loading commit data...
pdfjs-rendering-states.js Loading commit data...
range-util.js Loading commit data...
selection-observer.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.js Loading commit data...
toolbar.js Loading commit data...