Skip to content

Commit

Permalink
Remove text-transform reset (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn authored Aug 9, 2024
1 parent e458766 commit e1eeb41
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 15 deletions.
9 changes: 0 additions & 9 deletions modern-normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,6 @@ textarea {
margin: 0; /* 2 */
}

/**
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
text-transform: none;
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/chrome/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test('Remove the margin in Firefox and Safari.', async t => {
.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');
});

test('Remove the inheritance of text transform in Firefox.', async t => {
test('Text transform should not be inherited.', async t => {
await t
.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')
.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/chrome/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test('Remove the margin in Firefox and Safari.', async t => {
.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');
});

test('Remove the inheritance of text transform in Firefox.', async t => {
test('Text transform should not be inherited.', async t => {
await t
.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')
.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/firefox/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test('Remove the margin in Firefox and Safari.', async t => {
.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');
});

test('Remove the inheritance of text transform in Firefox.', async t => {
test('Text transform should not be inherited.', async t => {
await t
.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')
.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/firefox/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test('Remove the margin in Firefox and Safari.', async t => {
.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');
});

test('Remove the inheritance of text transform in Firefox.', async t => {
test('Text transform should not be inherited.', async t => {
await t
.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')
.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/safari/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ test('Remove the margin in Firefox and Safari.', async t => {
.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');
});

test('Remove the inheritance of text transform in Firefox.', async t => {
test('Text transform should not be inherited.', async t => {
await t
.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')
.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/safari/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ test('Remove the margin in Firefox and Safari.', async t => {
.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).notEql('0px');
});

test('Remove the inheritance of text transform in Firefox.', async t => {
test('Text transform should not be inherited.', async t => {
await t
.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')
.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');
Expand Down

0 comments on commit e1eeb41

Please sign in to comment.