File tree 3 files changed +11
-2
lines changed
packages/dom-export/src/lib
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @codeimage/dom-export " : patch
3
+ ---
4
+
5
+ fix: disable box-shadow rendering on ios/safari
Original file line number Diff line number Diff line change 1
- import { isIOS } from '@solid-primitives/platform' ;
1
+ import { isIOS , isSafari } from '@solid-primitives/platform' ;
2
2
import { clonePseudoElements } from './clonePseudoElements' ;
3
3
import { copyFont , copyUserComputedStyleFast } from './cloneStyle' ;
4
4
import { getBlobFromURL } from './getBlobFromURL' ;
@@ -119,7 +119,7 @@ function cloneCSSStyle<T extends HTMLElement>(
119
119
}
120
120
121
121
const boxShadow = sourceStyle . getPropertyValue ( 'boxShadow' ) ;
122
- if ( boxShadow !== 'none' && isIOS ) {
122
+ if ( boxShadow !== 'none' && ( isIOS || isSafari ) ) {
123
123
clonedNode . setAttribute (
124
124
'style' ,
125
125
`${ clonedNode . getAttribute ( 'style' ) } ;box-shadow:none!important;` ,
Original file line number Diff line number Diff line change
1
+ import { isIOS , isSafari } from '@solid-primitives/platform' ;
1
2
import { toArray , uuid } from './util' ;
2
3
3
4
type Pseudo = ':before' | ':after' ;
@@ -24,6 +25,9 @@ function getPseudoElementStyle(
24
25
style : CSSStyleDeclaration ,
25
26
) : Text {
26
27
const selector = `.${ className } :${ pseudo } ` ;
28
+ if ( isIOS || isSafari ) {
29
+ style . boxShadow = 'unset' ;
30
+ }
27
31
const cssText = style . cssText
28
32
? formatCSSText ( style )
29
33
: formatCSSProperties ( style ) ;
You can’t perform that action at this time.
0 commit comments