Skip to content

Commit

Permalink
Fix broken tests related to Edge 15 bugs with CSS Custom properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Sep 20, 2017
1 parent 89bbec5 commit 4666f0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@

// chrome 49 has semi-working css vars, check if box-shadow works
// safari 9.1 has a recalc bug: https://bugs.webkit.org/show_bug.cgi?id=155782
// Edge 15: custom properties used in ::before and ::after will also be used in the parent element
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12414257/
settings.hasNativeCSSProperties =
(!navigator.userAgent.match('AppleWebKit/601') && window.CSS
(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/) && window.CSS
&& CSS.supports && CSS.supports('box-shadow', '0 0 0 var(--foo)'));

settings.useNativeCSSProperties = settings.hasNativeCSSProperties &&
Expand Down

0 comments on commit 4666f0b

Please sign in to comment.