Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions lib/hacks/text-decoration.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/prefixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ let hackFlexDirection = require('./hacks/flex-direction')
let hackImageRendering = require('./hacks/image-rendering')
let hackBackdropFilter = require('./hacks/backdrop-filter')
let hackBackgroundClip = require('./hacks/background-clip')
let hackTextDecoration = require('./hacks/text-decoration')
let hackJustifyContent = require('./hacks/justify-content')
let hackBackgroundSize = require('./hacks/background-size')
let hackGridRowColumn = require('./hacks/grid-row-column')
Expand Down Expand Up @@ -105,7 +104,6 @@ Declaration.hack(hackFlexDirection)
Declaration.hack(hackImageRendering)
Declaration.hack(hackBackdropFilter)
Declaration.hack(hackBackgroundClip)
Declaration.hack(hackTextDecoration)
Declaration.hack(hackJustifyContent)
Declaration.hack(hackBackgroundSize)
Declaration.hack(hackGridRowColumn)
Expand Down
3 changes: 3 additions & 0 deletions test/autoprefixer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1139,8 +1139,11 @@ test('add prefix for backface-visibility for Safari 9', () => {

test('supports text-decoration', () => {
let input = read('text-decoration')
let output = read('text-decoration.out')
let instance = prefixer('text-decoration')
let result = postcss([instance]).process(input)

equal(universalizer(result.css), universalizer(output))
equal(
result.warnings().map(i => i.toString()),
[
Expand Down
8 changes: 6 additions & 2 deletions test/cases/text-decoration.out.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
}

.old {
text-decoration: underline;
-webkit-text-decoration: underline;
-moz-text-decoration: underline;
text-decoration: underline;
}

.global {
text-decoration: unset;
-webkit-text-decoration: unset;
-moz-text-decoration: unset;
text-decoration: unset;
}

.skip {
Expand Down