Closed
Bug 1407092
Opened 8 years ago
Closed 8 years ago
stylo: css calc() ignores constant operands
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla58
| Tracking | Status | |
|---|---|---|
| firefox-esr52 | --- | unaffected |
| firefox56 | --- | unaffected |
| firefox57 | --- | fixed |
| firefox58 | --- | fixed |
People
(Reporter: spagoveanu, Assigned: emilio)
Details
(Keywords: regression)
Attachments
(2 files)
|
317 bytes,
text/html
|
Details | |
|
41 bytes,
text/x-github-pull-request
|
emilio
:
review+
ritu
:
approval-mozilla-beta+
|
Details | Review |
In some expressions involving constant operands (eg. "-2ex - 1ex"), calc seems to ignore anything but the last operand.
See attached file -- the red little box should stick outside the black one.
This is a new bug in 58 nightly, older versions are fine.
Comment 1•8 years ago
|
||
happens only on stylo enabled.
Status: UNCONFIRMED → NEW
Component: General → CSS Parsing and Computation
Ever confirmed: true
Product: Firefox → Core
Summary: css calc() ignores constant operands → stylo: css calc() ignores constant operands
Updated•8 years ago
|
Keywords: regression
Priority: -- → P2
Updated•8 years ago
|
Assignee: nobody → josh
| Assignee | ||
Comment 2•8 years ago
|
||
Does it also happen in 57? There's nothing that would've landed in the meantime that looks familiar.
| Assignee | ||
Comment 3•8 years ago
|
||
This is a typo in the `ex` code:
ret.ex = Some(ret.em.unwrap_or(0.) + ex * factor);
| Assignee | ||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Assignee: josh → emilio
Comment 5•8 years ago
|
||
Should add a test...
Updated•8 years ago
|
status-firefox56:
--- → unaffected
status-firefox57:
--- → unaffected
status-firefox58:
--- → affected
| Assignee | ||
Comment 6•8 years ago
|
||
This is also happening in 57, and that that fix should be uplifted when it lands to central.
Comment 7•8 years ago
|
||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•8 years ago
|
Flags: in-testsuite?
| Assignee | ||
Comment 8•8 years ago
|
||
Patch at https://hg.mozilla.org/mozilla-central/rev/c75889c4efb4 (reviewed upstream)
Approval Request Comment
[Feature/Bug causing the regression]: stylo
[User impact if declined]: incorrect calc resolution with ex units.
[Is this code covered by automated tests?]: Yes (added in servo/, will be imported into servo/ when WPT is synced in both projects).
[Has the fix been verified in Nightly?]: no
[Needs manual test from QE? If yes, steps to reproduce]: no
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: not
[Why is the change risky/not risky?]: It's literally a one-character typo fix.
[String changes made/needed]: none
Attachment #8917600 -
Flags: review+
Attachment #8917600 -
Flags: approval-mozilla-beta?
| Assignee | ||
Comment 9•8 years ago
|
||
Per the comment above, this is tested in servo/ and will get to mozilla-central eventually.
Flags: in-testsuite? → in-testsuite+
Comment on attachment 8917600 [details] [review]
Servo patch.
Stylo related, Beta57+
Attachment #8917600 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 11•8 years ago
|
||
| bugherder uplift | ||
Updated•8 years ago
|
status-firefox-esr52:
--- → unaffected
Comment 12•8 years ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #8)
> [Is this code covered by automated tests?]: Yes (added in servo/, will be
> imported into servo/ when WPT is synced in both projects).
> [Has the fix been verified in Nightly?]: no
> [Needs manual test from QE? If yes, steps to reproduce]: no
Setting qe-verify- based on Emilio's assessment on manual testing needs and the fact that this fix has automated coverage.
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•