Skip to content

Commit 6aa781b

Browse files
committed
7.0.2
1 parent df1f5a7 commit 6aa781b

3 files changed

Lines changed: 42 additions & 20 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changes to sanitize.css
22

3+
### 7.0.2 (September 4, 2018)
4+
5+
- Restore form control margin normalizations in Firefox
6+
- Re-order a few rules (opinionated)
7+
38
### 7.0.1 (August 25, 2018)
49

510
- Support the 4-space tab width in Firefox (opinionated)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sanitize.css",
3-
"version": "7.0.1",
3+
"version": "7.0.2",
44
"description": "A best-practices CSS foundation",
55
"author": "Jonathan Neal <[email protected]>",
66
"contributors": [

sanitize.css

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! sanitize.css v7.0.1 | CC0 License | github.com/csstools/sanitize.css */
1+
/*! sanitize.css v7.0.2 | CC0 License | github.com/csstools/sanitize.css */
22

33
/* Document
44
* ========================================================================== */
@@ -279,26 +279,26 @@ table {
279279
* ========================================================================== */
280280

281281
/**
282-
* Remove the margin in Safari.
282+
* Inherit styling in all browsers (opinionated).
283283
*/
284284

285285
button,
286286
input,
287-
select {
288-
margin: 0;
287+
select,
288+
textarea {
289+
font-family: inherit;
290+
font-size: inherit;
291+
line-height: inherit;
289292
}
290293

291294
/**
292-
* Inherit styling in all browsers (opinionated).
295+
* Remove the margin in Safari.
293296
*/
294297

295298
button,
296299
input,
297-
select,
298-
textarea {
299-
font-family: inherit;
300-
font-size: inherit;
301-
line-height: inherit;
300+
select {
301+
margin: 0;
302302
}
303303

304304
/**
@@ -389,15 +389,6 @@ textarea {
389389
padding: 0;
390390
}
391391

392-
/**
393-
* Correct the cursor style of increment and decrement buttons in Safari.
394-
*/
395-
396-
::-webkit-inner-spin-button,
397-
::-webkit-outer-spin-button {
398-
height: auto;
399-
}
400-
401392
/**
402393
* 1. Correct the odd appearance in Chrome and Safari.
403394
* 2. Correct the outline style in Safari.
@@ -408,6 +399,15 @@ textarea {
408399
outline-offset: -2px; /* 2 */
409400
}
410401

402+
/**
403+
* Correct the cursor style of increment and decrement buttons in Safari.
404+
*/
405+
406+
::-webkit-inner-spin-button,
407+
::-webkit-outer-spin-button {
408+
height: auto;
409+
}
410+
411411
/**
412412
* Correct the text style of placeholders in Chrome, Edge, and Safari.
413413
*/
@@ -435,6 +435,23 @@ textarea {
435435
font: inherit; /* 2 */
436436
}
437437

438+
/**
439+
* Remove the inner border and padding of focus outlines in Firefox.
440+
*/
441+
442+
::-moz-focus-inner {
443+
border-style: none;
444+
padding: 0;
445+
}
446+
447+
/**
448+
* Restore the focus outline styles unset by the previous rule in Firefox.
449+
*/
450+
451+
:-moz-focusring {
452+
outline: 1px dotted ButtonText;
453+
}
454+
438455
/* Interactive
439456
* ========================================================================== */
440457

0 commit comments

Comments
 (0)