File tree 2 files changed +0
-35
lines changed
2 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,6 @@ class Processor {
94
94
return displayGrid || gridTemplate || gridGap
95
95
} )
96
96
}
97
- function insideFlex ( decl ) {
98
- return decl . parent . some ( node => {
99
- return node . prop === 'display' && / ( i n l i n e - ) ? f l e x / . test ( node . value )
100
- } )
101
- }
102
97
103
98
let gridPrefixes =
104
99
this . gridStatus ( css , result ) &&
@@ -147,17 +142,6 @@ class Processor {
147
142
{ node : decl }
148
143
)
149
144
}
150
- } else if (
151
- / ^ ( a l i g n | j u s t i f y | p l a c e ) - ( i t e m s | c o n t e n t ) $ / . test ( prop ) &&
152
- insideFlex ( decl )
153
- ) {
154
- if ( value === 'start' || value === 'end' ) {
155
- result . warn (
156
- `${ value } value has mixed support, consider using ` +
157
- `flex-${ value } instead` ,
158
- { node : decl }
159
- )
160
- }
161
145
} else if ( prop === 'text-decoration-skip' && value === 'ink' ) {
162
146
result . warn (
163
147
'Replace text-decoration-skip: ink to ' +
Original file line number Diff line number Diff line change @@ -903,25 +903,6 @@ test('warns on old flexbox display', () => {
903
903
)
904
904
} )
905
905
906
- test ( 'warns on mixed support usage' , ( ) => {
907
- let css = 'a { display: flex; align-content: start; justify-content: end; }'
908
- let result = postcss ( [
909
- autoprefixer ( {
910
- overrideBrowserslist : [ 'IE 11' ]
911
- } )
912
- ] ) . process ( css )
913
- equal ( result . css , css )
914
- equal (
915
- result . warnings ( ) . map ( i => i . toString ( ) ) ,
916
- [
917
- 'autoprefixer: <css input>:1:20: start value has mixed support, ' +
918
- 'consider using flex-start instead' ,
919
- 'autoprefixer: <css input>:1:42: end value has mixed support, ' +
920
- 'consider using flex-end instead'
921
- ]
922
- )
923
- } )
924
-
925
906
test ( 'supports intrinsic sizing' , ( ) => {
926
907
let input = read ( 'intrinsic' )
927
908
let output = read ( 'intrinsic.out' )
You can’t perform that action at this time.
0 commit comments