mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Added removeOverride() in rendition.themes to remove a css property in rendition.themes._overrides
This commit is contained in:
parent
d9c2559b21
commit
0acc4234aa
2 changed files with 12 additions and 0 deletions
|
@ -261,6 +261,8 @@ class Contents {
|
|||
|
||||
if (value) {
|
||||
content.style.setProperty(property, value, priority ? "important" : "");
|
||||
} else {
|
||||
content.style.removeProperty(property);
|
||||
}
|
||||
|
||||
return this.window.getComputedStyle(content)[property];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue