Comments (5)
@yuheiy, yes to what @abhishekrawat22 has written. ๐
It might be good to update this comment from "Remove" to "Prevent". It is a browser normalization (which basically means "bug fix" in this project) because table { text-indent: 0 }
ships in Firefox, and it shipped in Internet Explorer. However, now that Firefox is the minority, we should either file bugs with WebKit and Chrome; or do the opposite, normalize Firefox in this project and file a bug with Mozilla.
https://searchfox.org/mozilla-central/source/layout/style/res/html.css#269 (see also resource://gre-resources/html.css
in Firefox itself)
from sanitize.css.
@abhishekrawat22 @jonathantneal Thank you for the explanation.
This is just my opinion, but it seems more natural to normalize Firefox. This is because that property is inherited by default.
from sanitize.css.
If you will see in the browser its default value is initial
which itself refers to the default value. But default value can be changed in the parent. So declaring text-indent: 0
will keep us on safe side.
from sanitize.css.
Here's what I found out after investigating again:
- Chrome: the
initial
value is set, so it is not inherited. https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/html/resources/html.css#278 - Firefox: the
0
value is set, so it is not inherited. https://searchfox.org/mozilla-central/source/layout/style/res/html.css#269 - Safari:
text-indent
is not declared, so it is inherited. https://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css#L220
It seems that inherited is in the minority.
from sanitize.css.
Well, thatโs fun. Very well, 0
it stays, after all.
from sanitize.css.
Related Issues (20)
- sanitize.css adds an extra dotted outline to focused buttons in Firefox HOT 1
- Pedantic colon placement HOT 1
- list-style-type:none for <ol> ? HOT 2
- Should set `cursor: pointer` on the `[aria-controls]` elements? HOT 3
- Accessibility fix: Allow iOS browsers to auto-scale fonts based on user preference HOT 7
- Other npm packages have references pages.css HOT 5
- zero-width space is consuming space in Safari
- Video captions to match body font family HOT 2
- iOS 15 brings up some new default styles HOT 1
- Pseudo-class :where()? HOT 4
- Text cursor not showing on paragraphs
- `nav li::before` breaks flexbox lists
- Touch-action is not in the stylesheet
- Add svg to assets.css
- Is this project alive/maintained? HOT 1
- Update README.md
- Consider removing opinionated tab-size
- Background transparency issue with iframe elements
- Update rule for nested lists in `sanitize.css`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanitize.css.