-
Notifications
You must be signed in to change notification settings - Fork 306
The rule for nested lists is no longer necessary #243
Copy link
Copy link
Open
Description
The rule "Remove the margin on nested lists in Chrome, Edge, and Safari" appears in sanitize.css:
Lines 73 to 79 in 09f98b4
| /** | |
| * Remove the margin on nested lists in Chrome, Edge, and Safari. | |
| */ | |
| :where(dl, ol, ul) :where(dl, ol, ul) { | |
| margin: 0; | |
| } |
Since Chromium and WebKit already have that rule in their UA stylesheets, I think it can be removed.
- Chromium fixed it 1 year ago: https://github.com/chromium/chromium/blob/0fa7607bb96dc68c2d08d9920ce5da6bc4d3287a/third_party/blink/renderer/core/html/resources/html.css#L358-L365
- WebKit fixed it 3 years ago: https://github.com/WebKit/WebKit/blob/b524a4ebf3a70a7b6409c55db9eae74800721dc7/Source/WebCore/css/html.css#L308-L315
Also mentioned in csstools/normalize.css#27.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels