Bug 204836

Summary: Fix CalcExpressionOperation::evaluate() to use doubles
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED WONTFIX    
Severity: Normal CC: koivisto, sam, simon.fraser
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Simon Fraser (smfr)
Reported 2019-12-03 20:42:36 PST
We should use double-precision math.
Attachments
Simon Fraser (smfr)
Comment 1 2019-12-03 21:35:36 PST
Actually Length stores a float, so we might as well do these calculations in floats. This is a bit weird, because math done at parsing time will happen in doubles, but math done at used value time will be done in floats.
Sam Weinig
Comment 2 2019-12-04 11:13:02 PST
(In reply to Simon Fraser (smfr) from comment #1) > Actually Length stores a float, so we might as well do these calculations in > floats. This is a bit weird, because math done at parsing time will happen > in doubles, but math done at used value time will be done in floats. Does the spec specify which should be used?
Simon Fraser (smfr)
Comment 3 2019-12-04 11:50:31 PST
Note You need to log in before you can comment on or make changes to this bug.