File tree Expand file tree Collapse file tree 2 files changed +0
-35
lines changed Expand file tree Collapse file tree 2 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,6 @@ class Processor {
9494 return displayGrid || gridTemplate || gridGap
9595 } )
9696 }
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- }
10297
10398 let gridPrefixes =
10499 this . gridStatus ( css , result ) &&
@@ -147,17 +142,6 @@ class Processor {
147142 { node : decl }
148143 )
149144 }
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- }
161145 } else if ( prop === 'text-decoration-skip' && value === 'ink' ) {
162146 result . warn (
163147 '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', () => {
903903 )
904904} )
905905
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-
925906test ( 'supports intrinsic sizing' , ( ) => {
926907 let input = read ( 'intrinsic' )
927908 let output = read ( 'intrinsic.out' )
You can’t perform that action at this time.
0 commit comments