Skip to content

Commit fe7bae4

Browse files
committed
Remove end→flex-end warning
1 parent 5f6f362 commit fe7bae4

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

lib/processor.js

-16
Original file line numberDiff line numberDiff 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' && /(inline-)?flex/.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-
/^(align|justify|place)-(items|content)$/.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 ' +

test/autoprefixer.test.js

-19
Original file line numberDiff line numberDiff 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-
925906
test('supports intrinsic sizing', () => {
926907
let input = read('intrinsic')
927908
let output = read('intrinsic.out')

0 commit comments

Comments
 (0)