[css-typed-om] Parsing an invalid cssText for a property should throw |
|||
Issue descriptionSpec: https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylevalue-parse Test Failure: FAIL Calling CSSStyleValue.parse with an invalid cssText for the given property throws a SyntaxError assert_throws: function "() => CSSStyleValue[parseMethod]('width', '10deg')" did not throw
,
Oct 30 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f9e824178ed91864f6c3e0173e11b0bfca5e8f30 commit f9e824178ed91864f6c3e0173e11b0bfca5e8f30 Author: Darren Shen <shend@chromium.org> Date: Mon Oct 30 03:38:33 2017 [css-typed-om] Throw SyntaxError on parsing invalid cssText. Currently we return null when calling CSSStyleValue.parse with an invalid cssText. The spec says to throw a SyntaxError: https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylevalue-parse Bug: 775806 Change-Id: Iab99af48ce162fa1810ac678e63475e1660d9d95 Reviewed-on: https://chromium-review.googlesource.com/743082 Reviewed-by: Bugs Nash <bugsnash@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#512438} [modify] https://crrev.com/f9e824178ed91864f6c3e0173e11b0bfca5e8f30/third_party/WebKit/LayoutTests/typedcssom/stylevalue-objects/parse-parseAll-expected.txt [modify] https://crrev.com/f9e824178ed91864f6c3e0173e11b0bfca5e8f30/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.cpp
,
Oct 30 2017
,
Nov 29 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by shend@chromium.org
, Oct 29 2017