[css-typed-om-1][css-syntax-3][css-values-4] Clarify interaction between CSSNumericValue.parse() and `simplify a calculation tree`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css, javascript
- Domain
- documentation
Research direction
Start with the CSS Typed OM definitions of parse(cssText) and reify a math expression, then compare them with CSS Values 4's simplify a calculation tree and the cited browser result. Done means the specification clearly states whether and where simplification occurs, including the CSSMathSum behavior.
Written by the indexing model from the issue text.
Description
Both Blink and Webkit seem to return a simplified value when running CSSNumericValue.parse().
CSSNumericValue.parse('calc(min(1,2,3) * 5px)').toString();
// returns calc(5px)
But, reading through parse(cssText) and the procedures it invokes, I can't find any references to Simplify a calculation tree.
It might seem like Simplify a calculation tree is invoked sometime during reify a math expression. The result is always wrapped in a CSSMathSum, even if the simplification results in a single value.)
Should reify a math expression invoke simplify a calculation tree or should it be invoked somewhere else?
I might have missed something reading through the specs. If this is already documented somewhere, I apologize.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 24
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from w3c/csswg-drafts
-
Agenda+ css-sizing-4 css-values-5
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
w3c/csswg-drafts#14502 · 1 reaction ·
-
css-values-5 editorial Needs Edits
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
w3c/csswg-drafts#14498 · 2 comments ·
-
css-overflow-4 topic: line-clamp
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
w3c/csswg-drafts#14485 · 1 comment ·
-
Administrative Tracker css-values-4
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
w3c/csswg-drafts#14482 · 4 comments · 1 reaction ·
-
css-values-5 Needs Edits
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
w3c/csswg-drafts#14466 ·
All issues in w3c/csswg-drafts
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bancolombia/sentinel#22 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
redhat-developer/rhdh-plugins#4887 · 2 comments ·