-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query metrics: Chapter 2. CSS #83
Comments
I've created a new table https://bigquery.cloud.google.com/table/httparchive:almanac.parsed_css containing a JSON object for each parsed CSS resource, for example: {
"type": "stylesheet",
"stylesheet": {
"rules": [
{
"type": "rule",
"selectors": [
".tparrows:before"
],
"declarations": [
{
"type": "declaration",
"property": "line-height",
"value": "normal",
"position": {
"start": {
"line": 3,
"column": 5
},
"end": {
"line": 3,
"column": 24
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 5,
"column": 2
}
}
}
],
"parsingErrors": []
}
} Queries for this chapter that depend on specific style values should reference this table. |
I've started analyzing these metrics. I'll be saving the results to this sheet. @una @argyleink I'd appreciate if you could follow along with the sheet to make sure that the results align with your intuition/expectations or if there's anything that needs to be scrutinized further. I can let you know when it's complete. |
A couple of questions about the metrics:
@keyframes slidein {
from {
margin-left: 100%;
width: 300%;
}
to {
margin-left: 0%;
width: 100%;
}
} |
that animation code hurts to look at, it's like every no no in 1 animation lol i'd count that as 1. it's one @Keyframe animation with 2 steps |
Thanks! BTW I copied it from the MDN example :) https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes |
just submitted a wiki patch to fix that code sample you referenced 👍 |
Another question:
For these metrics, do you have a list of libraries/utilities and/or know a way to detect them? https://www.wappalyzer.com/categories/web-frameworks includes stuff like Bootstrap. Are there any other Wappalyzer detections we could leverage for these? |
CSS FrameworksYou have stateofcss Reset Utilities |
Here are a couple more resources: |
Thanks @nucliweb! |
By the way, do you know about Project Wallace? Here are the Open Source Tools |
What do you think of adding the APIs of Paint API and Typed OM of CSS Houdini as a metric? They are two active APIs in Chrome It may be interesting to know if there are implementation and its trend |
I think that would be really interesting but I would be very surprised if
there is any use in production considering chrome is the only browser to
support.
…On Fri, Aug 23, 2019 at 10:46 AM Joan León ***@***.***> wrote:
What do you think of adding the APIs of Paint API
<https://drafts.css-houdini.org/css-paint-api/> and Typed OM
<https://drafts.css-houdini.org/css-typed-om/> of *CSS Houdini* as a
metric?
They are two active APIs in Chrome
👉🏼 Is Houdini ready yet‽ <https://ishoudinireadyyet.com/>
It may be interesting to know if there are implementation and its trend
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#83?email_source=notifications&email_token=AAM5L3HMK53SGNSA5PR2WJTQF7Z6DA5CNFSM4IGHVY7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5ANRSA#issuecomment-524343496>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM5L3A66BFZPRCMX3M2YDTQF7Z6DANCNFSM4IGHVY7A>
.
|
I have found an awesome project with CSS Houdini in production 👉🏼Extra.css 🤪 We can add CSS Houdini on Almanac 2020 😊 |
Btw, @una, the inspiration to add CSS Houdini as a metric I was have after reading Chrome Image Lazy Loading - Sites Already Using it on Week 1! |
Paint API is used in 7 (!!) stylesheets: #standardSQL
SELECT
client, page, url, REGEXP_EXTRACT(body, '(?i)((?:background|border)-image:\\s*paint\\([^;}]+)')
FROM
`httparchive.almanac.summary_response_bodies`
WHERE
(firstHtml OR type = 'css') AND
REGEXP_CONTAINS(body, '(?i)(background|border)-image:\\s*paint\\(')
ORDER BY
client, page, url
Such small adoption itself might be noteworthy. Especially as a benchmark against future measurements. Not sure how to detect Typed OM. |
Typed OMTo detecting Typed OM, you can find in Javascript context:
SampleSample from Working with the new CSS Typed Object Model
|
Added metrics 02_10 and 02_11 to the results sheet. I was only able to match 3 reset utilities, but Wappalyzer already includes many of the libraries so we're fortunate to have good coverage there. I wasn't able to write queries for these last two metrics: 02.21 Minified vs unminified @una @argyleink PTAL at the results and LMK if anything jumps out. This should be ready to go for you to start writing. |
fascinating information! |
READ ME!
All of the metrics in the table below have been marked as
Able To Query
during the metrics triage. The analyst assigned to each metric is expected to write the corresponding query and submit a PR to have it reviewed and added to the repo.In order to stay on schedule and have the data ready for authors, please have all metrics reviewed and merged by August 5.
Assignments
--
, % of sites@import
@supports
@keyframes
declared per siteChecklist of metrics to be merged
@import @supports
@keyframes
declared per siteThe text was updated successfully, but these errors were encountered: