Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

修复:webkit浏览器里加粗和删除线同时作用于一段文字时,无法直接取消删除线的问题 #3242

Open
wants to merge 1 commit into
base: dev-1.5.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions _src/core/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1622,14 +1622,18 @@ var domUtils = (dom.domUtils = {
try {
var value =
domUtils.getStyle(element, styleName) ||
(window.getComputedStyle
browser.webkit && styleName === 'text-decoration'
? domUtils
.getWindow(element)
.getComputedStyle(element, "")
.getPropertyValue(styleName)
: (element.currentStyle || element.style)[
utils.cssStyleToDomStyle(styleName)
]);
.getComputedStyle(element)['webkitTextDecorationsInEffect']
: (window.getComputedStyle
? domUtils
.getWindow(element)
.getComputedStyle(element, "")
.getPropertyValue(styleName)
: (element.currentStyle || element.style)[
utils.cssStyleToDomStyle(styleName)
]);
} catch (e) {
return "";
}
Expand Down