Bug 187093

Summary: ASSERTION FAILED: length.isCalculated()
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ashvayka, Lawrence.j, lmoura, ryanhaddad, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=209330

Description Frédéric Wang (:fredw) 2018-06-27 06:10:02 PDT
ASSERTION FAILED: length.isCalculated()
../../Source/WebCore/css/CSSComputedStyleDeclaration.cpp(502) : WTF::Ref<WebCore::CSSPrimitiveValue> WebCore::valueForImageSliceSide(const WebCore::Length&)

This is triggered by the following testcase:
https://w3c-test.org/infrastructure/assumptions/html-elements.html

more specifically, the tests "CSS div/span definitions (only valid if pre-reqs pass)".
Comment 1 Ryan Haddad 2018-07-06 16:13:34 PDT
*** Bug 187421 has been marked as a duplicate of this bug. ***
Comment 2 Ryan Haddad 2018-07-06 16:41:17 PDT
Since it was consistently crashing, I went ahead and skipped this test on debug in https://trac.webkit.org/r233603
Comment 3 Alexey Shvayka 2020-03-17 01:53:14 PDT
Also triggered by https://w3c-test.org/css/css-cascade/all-prop-initial-xml.html:

ASSERTION FAILED: length.isCalculated()
./css/CSSComputedStyleDeclaration.cpp(117) : Ref<WebCore::CSSPrimitiveValue> WebCore::valueForImageSliceSide(const WebCore::Length &)
1   0x304adcc59 WTFCrash
2   0x2e80074cb WTFCrashWithInfo(int, char const*, char const*, int)
3   0x2ea5de09c WebCore::valueForImageSliceSide(WebCore::Length const&)
4   0x2ea5c7b52 WebCore::valueForNinePieceImageSlice(WebCore::NinePieceImage const&)
5   0x2ea5ba52a WebCore::ComputedStyleExtractor::valueForPropertyInStyle(WebCore::RenderStyle const&, WebCore::CSSPropertyID, WebCore::RenderElement*)
6   0x2ea5b1cc5 WebCore::ComputedStyleExtractor::propertyValue(WebCore::CSSPropertyID, WebCore::EUpdateLayout)
7   0x2ea5b1a05 WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue(WebCore::CSSPropertyID, WebCore::EUpdateLayout) const
8   0x2ea5cc760 WebCore::CSSComputedStyleDeclaration::getPropertyCSSValueInternal(WebCore::CSSPropertyID)
9   0x2ea6a7c95 WebCore::CSSStyleDeclaration::namedItem(WTF::AtomString const&)
Comment 4 Radar WebKit Bug Importer 2020-06-26 08:31:18 PDT
<rdar://problem/64806825>