
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
[css-counter-styles] Additive algorithm shouldn't divide by 0 Β· Issue #5784 Β· w3c/csswg-drafts
Description:
Not sure if I'm missing something, but consider <style> @counter-style foo { system: additive; additive-symbols: 0 β; } </style> <li value="1" style="list-style: f...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Video & Online Content
- Graphic Design
Content Management System {π}
What CMS is github.com built with?
Github.com relies on WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
weight, tabatkins, style, tuple, loirooriol, additive, current, counter, commented, algorithm, symbol, greater, sign, csscounterstyles, closed, foo, additivesymbols, tuples, infinite, added, edits, member, projects, issue, counterstyle, system, styleliststyle, list, fine, append, floor, times, nan, guess, loop, fallback, contributor, author, make, commenter, assert, skip, navigation, pull, requests, actions, security, shouldnt, divide, insideli,
Topics {βοΈ}
fallback counter style type projects chromium stop iterating comment metadata assignees valid 'additive-symbols' counter style projects milestone counter symbol removed agenda+ algorithm returns resolution / edits additive-symbols foo inside current tuple current tuple / current tuple additive tuple list-style style purposes counter fallback territory infinite infinite infinite insertions //drafts csswg elements left symbol list algorithm pretty wrong great reason web compat impl difficulties sufficient reason custom symbol properly fall milestone relationships weight multiplied previous step 0-weight entries spec works early-exit final assertion github loop ended make sense assert failed additive weight tuple 0-weight tuple dice
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- Should we just skip over 0-weight entries, or call them invalid?
- So the algorithm is asking to append β infinite times?
- Value = 1 - 0*β = 1 - NaN = NaN, I guess?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:[css-counter-styles] Additive algorithm shouldn't divide by 0
articleBody:Not sure if I'm missing something, but consider
```html
<style>
@counter-style foo {
system: additive;
additive-symbols: 0 β;
}
</style>
<li value="1" style="list-style: foo inside"></li>
```
From https://drafts.csswg.org/css-counter-styles/#additive-system
> 1. If *value* is initially 0
It's 1, so no-op.
> 2. While *value* is greater than 0 and there are elements left in the *symbol list*:
Fine, *value* = 1 > 0 and the *symbol list* contains one additive tuple.
> 2.1. Pop the first additive tuple from the *symbol list*. This is the *current tuple*.
The current tuple is `0 β`.
> 2.2. Append the current tupleβs counter symbol to *S* `floor( value / current tupleβs weight )` times (this may be 0).
`floor(1 / 0) = floor(β) = β`. So the algorithm is asking to append `β` infinite times??
> 2.3 Decrement *value* by the *current tuple*βs *weight* multiplied by the number of times the current tuple was appended to S in the previous step.
`value = 1 - 0*β = 1 - NaN = NaN`, I guess?
> 2. While value is greater than 0
NaN is not greater than 0, presumably.
> 3. If the loop ended because value is 0, return S. Otherwise, the given counter value cannot be represented by this counter style, and must instead be represented by the fallback counter style.
So I guess it may end up being fine with the fallback counter style. But it just seems pretty wrong for the algorithm to have divisions by 0, infinite insertions, etc.
Both [Firefox](https://searchfox.org/mozilla-central/rev/4415bec7a49c50a338167d9c8934527b9cae59d0/layout/style/CounterStyleManager.cpp#164-166) and [Chromium](https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/css/counter_style.cc;drc=cac8eca73fba35669e706b5c0425f4a2667fb5c8;l=169) stop iterating if the weight is 0 . I think the algorithm should have that check too.
author:
url:https://github.com/Loirooriol
type:Person
name:Loirooriol
datePublished:2020-12-11T18:33:42.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:11
url:https://github.com/5784/csswg-drafts/issues/5784
context:https://schema.org
headline:[css-counter-styles] Additive algorithm shouldn't divide by 0
articleBody:Not sure if I'm missing something, but consider
```html
<style>
@counter-style foo {
system: additive;
additive-symbols: 0 β;
}
</style>
<li value="1" style="list-style: foo inside"></li>
```
From https://drafts.csswg.org/css-counter-styles/#additive-system
> 1. If *value* is initially 0
It's 1, so no-op.
> 2. While *value* is greater than 0 and there are elements left in the *symbol list*:
Fine, *value* = 1 > 0 and the *symbol list* contains one additive tuple.
> 2.1. Pop the first additive tuple from the *symbol list*. This is the *current tuple*.
The current tuple is `0 β`.
> 2.2. Append the current tupleβs counter symbol to *S* `floor( value / current tupleβs weight )` times (this may be 0).
`floor(1 / 0) = floor(β) = β`. So the algorithm is asking to append `β` infinite times??
> 2.3 Decrement *value* by the *current tuple*βs *weight* multiplied by the number of times the current tuple was appended to S in the previous step.
`value = 1 - 0*β = 1 - NaN = NaN`, I guess?
> 2. While value is greater than 0
NaN is not greater than 0, presumably.
> 3. If the loop ended because value is 0, return S. Otherwise, the given counter value cannot be represented by this counter style, and must instead be represented by the fallback counter style.
So I guess it may end up being fine with the fallback counter style. But it just seems pretty wrong for the algorithm to have divisions by 0, infinite insertions, etc.
Both [Firefox](https://searchfox.org/mozilla-central/rev/4415bec7a49c50a338167d9c8934527b9cae59d0/layout/style/CounterStyleManager.cpp#164-166) and [Chromium](https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/css/counter_style.cc;drc=cac8eca73fba35669e706b5c0425f4a2667fb5c8;l=169) stop iterating if the weight is 0 . I think the algorithm should have that check too.
author:
url:https://github.com/Loirooriol
type:Person
name:Loirooriol
datePublished:2020-12-11T18:33:42.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:11
url:https://github.com/5784/csswg-drafts/issues/5784
Person:
url:https://github.com/Loirooriol
name:Loirooriol
url:https://github.com/Loirooriol
name:Loirooriol
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:11
interactionType:https://schema.org/CommentAction
userInteractionCount:11
External Links {π}(5)
- How much revenue does https://github.blog generate?
- How much revenue does https://drafts.csswg.org/css-counter-styles/#additive-system produce monthly?
- How much revenue does https://searchfox.org/mozilla-central/rev/4415bec7a49c50a338167d9c8934527b9cae59d0/layout/style/CounterStyleManager.cpp#164-166 bring in?
- How much does https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/css/counter_style.cc;drc=cac8eca73fba35669e706b5c0425f4a2667fb5c8;l=169 generate monthly?
- What are the total earnings of https://www.githubstatus.com/?
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net