| Summary: | [css-values-3] Computed value of calc() expression in linear-gradient function incorrect | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Gérard Talbot (no longer involved) <browserbugs2> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | ahmad.saleem792, bfulgham, emilio, karlcow, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://www.gtalbot.org/BrowserBugsSection/CSS3Values/trac-webkit-linear-gradient-calc.html | ||
| Bug Depends on: | 52378 | ||
| Bug Blocks: | |||
|
Description
Gérard Talbot (no longer involved)
2019-03-28 20:39:58 PDT
Chrome Canary 114 and Safari 16.4 & STP166 are failing this test. Test Link - http://www.gtalbot.org/BrowserBugsSection/CSS3Values/trac-webkit-linear-gradient-calc.html Firefox Nightly 113 is only browser passing this. Additional (more complete) test on computed value of 'background-image: [ linear | radial | conic ]-gradient()' with calc() function: http://wpt.live/css/css-values/calc-linear-radial-conic-gradient-001.html Test result: https://wpt.fyi/results/css/css-values/calc-linear-radial-conic-gradient-001.html?label=experimental&label=master&aligned This has impact on a number of tests. Example: http://wpt.live/css/css-backgrounds/parsing/background-image-computed.sub.html Each time a calc is not being resolved to the hard values and kept as calc. expected: "radial-gradient(0px at -30px -70px, rgb(255, 0, 0), rgb(0, 0, 255))" actual: "radial-gradient(calc(-0.5em + 10px) at calc(-1em + 10px) calc(-2em + 10px), rgb(255, 0, 0), rgb(0, 0, 255))" |