From 42c631d3ce060a436512bed5aca80cd9573417fb Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 10 Aug 2024 01:07:04 +0200 Subject: [PATCH] Remove `
` declarations (#75) --- modern-normalize.css | 15 --------------- test/acceptance/chrome/rules.ts | 2 +- test/acceptance/chrome/validation.ts | 2 +- test/acceptance/firefox/rules.ts | 2 +- test/acceptance/firefox/validation.ts | 2 +- test/acceptance/safari/rules.ts | 2 +- test/acceptance/safari/validation.ts | 2 +- 7 files changed, 6 insertions(+), 21 deletions(-) diff --git a/modern-normalize.css b/modern-normalize.css index ba77c8c..e5fac80 100644 --- a/modern-normalize.css +++ b/modern-normalize.css @@ -40,21 +40,6 @@ body { margin: 0; /* Remove the margin in all browsers. */ } -/* -Grouping content -================ -*/ - -/** -1. Add the correct height in Firefox. -2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) -*/ - -hr { - height: 0; /* 1 */ - color: inherit; /* 2 */ -} - /* Text-level semantics ==================== diff --git a/test/acceptance/chrome/rules.ts b/test/acceptance/chrome/rules.ts index f57644d..2f87ad1 100644 --- a/test/acceptance/chrome/rules.ts +++ b/test/acceptance/chrome/rules.ts @@ -37,7 +37,7 @@ test('Improve consistency of default fonts in all browsers.', async t => { .expect(Selector('body').getStyleProperty('font-family')).eql(`system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"`); }); -test('Add the correct height in Firefox.', async t => { +test('
should be the correct height.', async t => { await t .expect(Selector('hr[data-test--hr]').getStyleProperty('height')).eql('2px'); }); diff --git a/test/acceptance/chrome/validation.ts b/test/acceptance/chrome/validation.ts index bbf4b13..705ea23 100644 --- a/test/acceptance/chrome/validation.ts +++ b/test/acceptance/chrome/validation.ts @@ -37,7 +37,7 @@ test('Improve consistency of default fonts in all browsers.', async t => { .expect(Selector('body').getStyleProperty('font-family')).notEql('system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"'); }); -test('Add the correct height in Firefox.', async t => { +test('
should be the correct height.', async t => { await t .expect(Selector('hr[data-test--hr]').getStyleProperty('height')).notEql('2px'); }); diff --git a/test/acceptance/firefox/rules.ts b/test/acceptance/firefox/rules.ts index b1d3702..d7ef00a 100644 --- a/test/acceptance/firefox/rules.ts +++ b/test/acceptance/firefox/rules.ts @@ -37,7 +37,7 @@ test('Improve consistency of default fonts in all browsers.', async t => { .expect(Selector('body').getStyleProperty('font-family')).eql(`system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"`); }); -test('Add the correct height in Firefox.', async t => { +test('
should be the correct height.', async t => { await t .expect(Selector('hr[data-test--hr]').getStyleProperty('height')).eql('2px'); }); diff --git a/test/acceptance/firefox/validation.ts b/test/acceptance/firefox/validation.ts index 3971799..54cbd63 100644 --- a/test/acceptance/firefox/validation.ts +++ b/test/acceptance/firefox/validation.ts @@ -37,7 +37,7 @@ test('Improve consistency of default fonts in all browsers.', async t => { .expect(Selector('body').getStyleProperty('font-family')).notEql('system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"'); }); -test('Add the correct height in Firefox.', async t => { +test('
should be the correct height.', async t => { await t .expect(Selector('hr[data-test--hr]').getStyleProperty('height')).notEql('2px'); }); diff --git a/test/acceptance/safari/rules.ts b/test/acceptance/safari/rules.ts index 6c2826f..35175d9 100644 --- a/test/acceptance/safari/rules.ts +++ b/test/acceptance/safari/rules.ts @@ -38,7 +38,7 @@ test('Improve consistency of default fonts in all browsers.', async t => { .expect(Selector('body').getStyleProperty('font-family')).eql(`system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"`); }); -test('Add the correct height in Firefox.', async t => { +test('
should be the correct height.', async t => { await t .expect(Selector('hr[data-test--hr]').getStyleProperty('height')).eql('2px'); }); diff --git a/test/acceptance/safari/validation.ts b/test/acceptance/safari/validation.ts index 5e28757..58c465b 100644 --- a/test/acceptance/safari/validation.ts +++ b/test/acceptance/safari/validation.ts @@ -38,7 +38,7 @@ test('Improve consistency of default fonts in all browsers.', async t => { .expect(Selector('body').getStyleProperty('font-family')).notEql('system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"'); }); -test('Add the correct height in Firefox.', async t => { +test('
should be the correct height.', async t => { await t .expect(Selector('hr[data-test--hr]').getStyleProperty('height')).notEql('2px'); });