From f5c5f44e87010504442d13bb73527d24cd388f20 Mon Sep 17 00:00:00 2001 From: Dmitrij Podabed Date: Wed, 1 May 2019 10:31:35 +0300 Subject: [PATCH 1/3] Combine 'template' and '[hidden]' declarations --- normalize.css | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/normalize.css b/normalize.css index 192eb9ce4..e547728bc 100644 --- a/normalize.css +++ b/normalize.css @@ -336,14 +336,7 @@ summary { * Add the correct display in IE 10+. */ -template { - display: none; -} - -/** - * Add the correct display in IE 10. - */ - +template, [hidden] { display: none; } From f0a2fe794d7ff43fab6b7a30c6c1ecf8160ce57d Mon Sep 17 00:00:00 2001 From: Dmitrij Podabed Date: Wed, 1 May 2019 10:35:49 +0300 Subject: [PATCH 2/3] Combine 'main' and 'details' declarations --- normalize.css | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/normalize.css b/normalize.css index e547728bc..cd1ae6b0f 100644 --- a/normalize.css +++ b/normalize.css @@ -25,10 +25,12 @@ body { } /** - * Render the `main` element consistently in IE. + * 1. Render the `main` element consistently in IE. + * 2. Add the correct display in Edge, IE 10+, and Firefox. */ -main { +main, /* 1 */ +details { /* 2 */ display: block; } @@ -313,14 +315,6 @@ textarea { /* Interactive ========================================================================== */ -/* - * Add the correct display in Edge, IE 10+, and Firefox. - */ - -details { - display: block; -} - /* * Add the correct display in all browsers. */ From ecceaab925a55ac5b853223be3d75fe8b8c1fa7e Mon Sep 17 00:00:00 2001 From: Dmitrij Podabed Date: Wed, 1 May 2019 10:44:34 +0300 Subject: [PATCH 3/3] Combine 'button, input' and 'hr' declarations --- normalize.css | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/normalize.css b/normalize.css index cd1ae6b0f..a0270f5db 100644 --- a/normalize.css +++ b/normalize.css @@ -48,14 +48,22 @@ h1 { ========================================================================== */ /** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. + * Show the overflow in IE. + */ + +button, +input, +hr { + overflow: visible; +} + +/** + * Add the correct box sizing in Firefox. */ hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ + box-sizing: content-box; + height: 0; } /** @@ -170,16 +178,6 @@ textarea { margin: 0; /* 2 */ } -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - /** * Remove the inheritance of text transform in Edge, Firefox, and IE. * 1. Remove the inheritance of text transform in Firefox.