File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ var config = {
45
45
// IE8 (fails only in testing env - window.window === window gives false)
46
46
'tests/core/tools#test_clone_Window' : 'env.ie && env.version == 8' ,
47
47
48
- // Safari (#11111)
49
- 'tests/core/dom/range/enlarge#test_enlarge_element12' : 'env.safari' ,
50
-
51
48
// Safari (#11980)
52
49
'tests/core/editable/keystrokes/delbackspacequirks/collapsed#test backspace #2' : 'env.safari' ,
53
50
'tests/core/editable/keystrokes/delbackspacequirks/collapsed#test backspace #3' : 'env.safari' ,
Original file line number Diff line number Diff line change @@ -1069,11 +1069,14 @@ CKEDITOR.dom.range = function( root ) {
1069
1069
1070
1070
isWhiteSpace = / [ \s \ufeff ] $ / . test ( siblingText ) ;
1071
1071
} else {
1072
+ // #12221 (Chrome) plus #11111 (Safari).
1073
+ var offsetWidth0 = CKEDITOR . env . webkit ? 1 : 0 ;
1074
+
1072
1075
// If this is a visible element.
1073
1076
// We need to check for the bookmark attribute because IE insists on
1074
1077
// rendering the display:none nodes we use for bookmarks. (#3363)
1075
1078
// Line-breaks (br) are rendered with zero width, which we don't want to include. (#7041)
1076
- if ( ( sibling . $ . offsetWidth > 0 || excludeBrs && sibling . is ( 'br' ) ) && ! sibling . data ( 'cke-bookmark' ) ) {
1079
+ if ( ( sibling . $ . offsetWidth > offsetWidth0 || excludeBrs && sibling . is ( 'br' ) ) && ! sibling . data ( 'cke-bookmark' ) ) {
1077
1080
// We'll accept it only if we need
1078
1081
// whitespace, and this is an inline
1079
1082
// element with whitespace only.
You can’t perform that action at this time.
0 commit comments