mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Stop polyfilling the CSS calc
functionality
At this point in time, all browsers that we support have native support for CSS variables; please see https://developer.mozilla.org/en-US/docs/Web/CSS/calc()#browser_compatibility and https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support We can also remove the hack introduced back in PR 11567, which was only necessary to work-around an IE 11 specific bug.
This commit is contained in:
parent
079dea2274
commit
502fd7c80d
4 changed files with 2 additions and 31 deletions
|
@ -244,12 +244,12 @@ select {
|
|||
}
|
||||
html[dir="ltr"] #sidebarContainer {
|
||||
transition-property: left;
|
||||
left: calc(0px - var(--sidebar-width));
|
||||
left: calc(-1 * var(--sidebar-width));
|
||||
border-right: var(--doorhanger-border-color-whcm);
|
||||
}
|
||||
html[dir="rtl"] #sidebarContainer {
|
||||
transition-property: right;
|
||||
right: calc(0px - var(--sidebar-width));
|
||||
right: calc(-1 * var(--sidebar-width));
|
||||
border-left: var(--doorhanger-border-color-whcm);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue