revert 3cf32048: Chrome 49+ XML viewer works with styles under <html>
This commit is contained in:
parent
684f445957
commit
8efe4b806b
|
@ -189,14 +189,6 @@ function applyStyles(styles) {
|
||||||
doExposeIframes(styles.exposeIframes);
|
doExposeIframes(styles.exposeIframes);
|
||||||
delete styles.exposeIframes;
|
delete styles.exposeIframes;
|
||||||
}
|
}
|
||||||
if (document.head
|
|
||||||
&& document.head.firstChild
|
|
||||||
&& document.head.firstChild.id === 'xml-viewer-style') {
|
|
||||||
// when site response is application/xml Chrome displays our style elements
|
|
||||||
// under document.documentElement as plain text so we need to move them into HEAD
|
|
||||||
// which is already autogenerated at this moment
|
|
||||||
ROOT = document.head;
|
|
||||||
}
|
|
||||||
if (styles.needTransitionPatch) {
|
if (styles.needTransitionPatch) {
|
||||||
// CSS transition bug workaround: since we insert styles asynchronously,
|
// CSS transition bug workaround: since we insert styles asynchronously,
|
||||||
// the browsers, especially Firefox, may apply all transitions on page load
|
// the browsers, especially Firefox, may apply all transitions on page load
|
||||||
|
|
Loading…
Reference in New Issue
Block a user