Changeset 282359 in webkit
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r282357 r282359 1 2021-09-13 Joonghun Park <jh718.park@samsung.com> 2 3 transform-origin should not accept 4 lengths 4 https://bugs.webkit.org/show_bug.cgi?id=186965 5 6 transform-origin accepts 1, 2, or 3 values per the spec below. 7 https://drafts.csswg.org/css-transforms/#propdef-transform-origin 8 9 Reviewed by Simon Fraser. 10 11 * web-platform-tests/css/css-transforms/parsing/transform-origin-invalid-expected.txt: 12 1 13 2021-09-13 Sam Sneddon <gsnedders@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/transform-origin-invalid-expected.txt
r267650 r282359 2 2 PASS e.style['transform-origin'] = "1px 2px 3%" should not set the property value 3 3 PASS e.style['transform-origin'] = "1px 2px left" should not set the property value 4 FAIL e.style['transform-origin'] = "1px 2px 3px 4px" should not set the property value assert_equals: expected "" but got "1px 2px 3px" 4 PASS e.style['transform-origin'] = "1px 2px 3px 4px" should not set the property value 5 5 PASS e.style['transform-origin'] = "1px left" should not set the property value 6 6 PASS e.style['transform-origin'] = "top 1px" should not set the property value -
trunk/Source/WebCore/ChangeLog
r282358 r282359 1 2021-09-13 Joonghun Park <jh718.park@samsung.com> 2 3 transform-origin should not accept 4 lengths 4 https://bugs.webkit.org/show_bug.cgi?id=186965 5 6 transform-origin accepts 1, 2, or 3 values per the spec below. 7 https://drafts.csswg.org/css-transforms/#propdef-transform-origin 8 9 Reviewed by Simon Fraser. 10 11 * css/parser/CSSPropertyParser.cpp: 12 (WebCore::CSSPropertyParser::consumeTransformOrigin): 13 1 14 2021-09-13 Tyler Wilcock <tyler_w@apple.com> 2 15 -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r282234 r282359 358 358 auto resultZ = consumeLength(m_range, m_context.mode, ValueRange::All); 359 359 bool hasZ = resultZ; 360 if ( !hasZ && !atEnd)360 if ((!hasZ && !atEnd) || !m_range.atEnd()) 361 361 return false; 362 362 addProperty(CSSPropertyTransformOriginX, CSSPropertyTransformOrigin, WTFMove(resultXY->x), important);
Note: See TracChangeset
for help on using the changeset viewer.