Bug 106632 - getComputedStyle on animation from pixels to percent returns null or asserts
Summary: getComputedStyle on animation from pixels to percent returns null or asserts
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mike Lawther
URL:
Keywords: HasReduction
Depends on: 29084
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-10 21:42 PST by Elliott Sprehn
Modified: 2020-10-14 02:49 PDT (History)
9 users (show)

See Also:


Attachments
Reduction (1.79 KB, text/html)
2013-01-10 21:42 PST, Elliott Sprehn
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elliott Sprehn 2013-01-10 21:42:05 PST
Created attachment 182263 [details]
Reduction

If you're transitioning on a length property from a pixel value to a percent and you call getComputedStyle to check the current value we return null because you end up in CSSPrimitiveValue::CSSPrimitiveValue(const Length& length) with the type Calculated which hits an ASSERT_NOT_REACHED();

In a release build we return null because of error handling in CSSComputedStyleDeclaration.
Comment 1 Tab Atkins 2013-01-11 13:17:41 PST
+ccing Mike Lawther, as he's the calc() author.
Comment 2 Tim 'mithro' Ansell 2013-02-12 00:38:01 PST
This appears to actually be related to Bug 29084, top/bottom/left/right all seem to work differently and hence behave as this bug reports. Width works as expected by this test.
Comment 3 Tim 'mithro' Ansell 2013-02-21 20:48:55 PST
This issue is fixed by the patch found in Bug 29084.
Comment 4 Courtney Burns 2020-10-14 02:49:19 PDT Comment hidden (spam)