File tree Expand file tree Collapse file tree 8 files changed +36
-8
lines changed Expand file tree Collapse file tree 8 files changed +36
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changes to CSS Blank Pseudo
2
2
3
+ ### Unreleased
4
+
5
+ - Fix: assign global browser polyfill to ` window ` , ` self ` or a blank object.
6
+
3
7
### 4.1.0 (July 30, 2022)
4
8
5
9
- Added: ` disablePolyfillReadyClass ` plugin option to prevent ` .js-blank-pseudo ` from being added.
Original file line number Diff line number Diff line change 1
- /* global self */
1
+ /* global self,window */
2
2
import { default as cssBlankPseudoInit } from './browser' ;
3
- self . cssBlankPseudoInit = cssBlankPseudoInit ;
3
+
4
+ ( function ( global ) {
5
+ global . cssBlankPseudoInit = cssBlankPseudoInit ;
6
+ } ( 'object' === typeof window && window || 'object' === typeof self && self || { } ) ) ;
Original file line number Diff line number Diff line change 1
1
# Changes to CSS Has Pseudo
2
2
3
+ ### Unreleased
4
+
5
+ - Fix: assign global browser polyfill to ` window ` , ` self ` or a blank object.
6
+
3
7
### 4.0.0 (July 8, 2022)
4
8
5
9
[ Read the full changelog] ( https://github.com/csstools/postcss-plugins/wiki/PostCSS-Preset-Env-8 )
Original file line number Diff line number Diff line change 1
- /* global self */
1
+ /* global self,window */
2
2
import { default as cssHasPseudo } from './browser' ;
3
- self . cssHasPseudo = cssHasPseudo ;
3
+
4
+ ( function ( global ) {
5
+ global . cssHasPseudo = cssHasPseudo ;
6
+ } ( 'object' === typeof window && window || 'object' === typeof self && self || { } ) ) ;
Original file line number Diff line number Diff line change 1
1
# Changes to Prefers Color Scheme
2
2
3
+ ### Unreleased
4
+
5
+ - Fix: assign global browser polyfill to ` window ` , ` self ` or a blank object.
6
+
3
7
### 7.0.0 (July 8, 2022)
4
8
5
9
[ Read the full changelog] ( https://github.com/csstools/postcss-plugins/wiki/PostCSS-Preset-Env-8 )
Original file line number Diff line number Diff line change 1
- /* global self */
1
+ /* global self,window */
2
2
import { default as prefersColorSchemeInit } from './browser' ;
3
- self . prefersColorSchemeInit = prefersColorSchemeInit ;
3
+
4
+ ( function ( global ) {
5
+ global . prefersColorSchemeInit = prefersColorSchemeInit ;
6
+ } ( 'object' === typeof window && window || 'object' === typeof self && self || { } ) ) ;
Original file line number Diff line number Diff line change 1
1
# Changes to PostCSS Focus Within
2
2
3
+ ### Unreleased
4
+
5
+ - Fix: assign global browser polyfill to ` window ` , ` self ` or a blank object.
6
+
3
7
### 6.1.0 (July 30, 2022)
4
8
5
9
- Added: ` disablePolyfillReadyClass ` plugin option to prevent ` .js-focus-within ` from being added.
Original file line number Diff line number Diff line change 1
- /* global self */
1
+ /* global self,window */
2
2
import { default as focusWithinInit } from './browser' ;
3
- self . focusWithinInit = focusWithinInit ;
3
+
4
+ ( function ( global ) {
5
+ global . focusWithinInit = focusWithinInit ;
6
+ } ( 'object' === typeof window && window || 'object' === typeof self && self || { } ) ) ;
You can’t perform that action at this time.
0 commit comments