TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

2014 CSS Report: Examining how CSS is being used in the wild

56 pointsby andrewbaronover 10 years ago

7 comments

mrdrozdovover 10 years ago
<i>Highest z-index was an astonishing 999999999999999999999999999 or 9.99e26. With a default key repeat on OS X, this would take 3 seconds of holding down 9 to type. If you took that many pieces of paper at .05mm thick, the stack would reach from Earth to the Sun 10 trillion times. The worst part about this large of a z-index is that a number that high will overflow and not work in the expected manner anyhow. The lowest was a more reasonable -999999.​</i><p>FWIW, ​max z-index that is cross-browser safe is: 16777271
评论 #8858349 未加载
leeoniyaover 10 years ago
imo, flex-box and evangelism of box-sizing border-box have been the best things since CSS3 selectors and transforms&#x2F;transitions.<p>i only wish that &lt;col&gt; elements could propagate style rules as if they were parents of all the related td&#x2F;th cells. there&#x27;s still no way to specify text-align and font-* on entire columns easily, which is just silly.
评论 #8859303 未加载
nevirover 10 years ago
Also see Chrome&#x27;s statistics on CSS (and other web tech) usage: <a href="https://www.chromestatus.com/metrics/css/popularity" rel="nofollow">https:&#x2F;&#x2F;www.chromestatus.com&#x2F;metrics&#x2F;css&#x2F;popularity</a>
andrewbaronover 10 years ago
Out of 79 <i>valid</i> style properties (not counting vendor prefixes) the author found 372 in use. ¯\_(ツ)_&#x2F;¯
WhitneyLandover 10 years ago
I wish Apple would add a SASS&#x2F;CSS compiler into XCode for native UI. I know there are a couple side projects for this but if it were baked in it could really take off.<p>Besides the potential of sharing across platforms, it would be one less system for layout and styles that had to be learned.
freshyillover 10 years ago
A few things that stuck out:<p>* `content` is in the top 5 properties?<p>* Glad to see nobody else uses two colons on pseudo selectors.<p>* I can&#x27;t believe how rare rgb color usage is! 0.4%? hsl I can believe.<p>* I&#x27;d be interested to see how many sites use `!important` (the correct number in a style sheet is zero).
评论 #8859360 未加载
评论 #8859649 未加载
评论 #8859424 未加载
AlexMcPover 10 years ago
Hey OP here, I still have the data around if anyone has further questions to investigate.
评论 #8859720 未加载
评论 #8859280 未加载