New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 776647 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

[css-typed-om] CSSKeywordValue.value should never be empty string

Project Member Reported by shend@chromium.org, Oct 20 2017

Issue description

Currently we can set a CSSKeywordValue's value to be "", but "" is not a keyword so this is bad.

Spec: https://github.com/w3c/css-houdini-drafts/issues/477

Test failure:
FAIL Updating CSSKeywordValue.value with an empty string throws a TypeError assert_throws: function "() => result.value = value" did not throw
 
I will try to check this issue.
Labels: Hotlist-GoodFirstBug Code-CSSOM
Adding this to Hotlist-GoodFirstBug. Quite a small change, and the typed cssom code is fairly new & easy to navigate.

Comment 3 by shend@chromium.org, Oct 31 2017

@nikhil.sahni, would you like to work on this bug?
yes I am working on it.

Comment 5 by shend@chromium.org, Oct 31 2017

Owner: shend@chromium.org
Status: Assigned (was: Available)
Awesome! It doesn't look like you have edit bug access so I can't assign you to the bug. Assigning myself on your behalf. If you are planning to work on more chromium bugs in the future, then let me know and I'll see if I can request edit access for you.
Submitted patch https://chromium-review.googlesource.com/c/chromium/src/+/745743 for your consideration. Thank You.
Project Member

Comment 8 by bugdroid1@chromium.org, Oct 31 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/27198849670041c957a26995a60f14bec7f42c5e

commit 27198849670041c957a26995a60f14bec7f42c5e
Author: nikhil <nikhil.sahni@samsung.com>
Date: Tue Oct 31 13:38:46 2017

CSSKeywordValue.value should never be empty string.

Currently CSSKeywordValue.value can be set to empty string if
empty string is assigned to that,instead it should 
throw a type error as per below spec.

Spec: https://github.com/w3c/css-houdini-drafts/issues/477

BUG:  776647 

Change-Id: I4bb635a26e25dcb35d971bb2a7a1b7d3445a6aca
Reviewed-on: https://chromium-review.googlesource.com/745743
Commit-Queue: srirama chandra sekhar <srirama.m@samsung.com>
Reviewed-by: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512818}
[delete] https://crrev.com/a0fb2177e206fd6698806d5caac39f0beb0af7b7/third_party/WebKit/LayoutTests/typedcssom/stylevalue-subclasses/cssKeywordValue-expected.txt
[modify] https://crrev.com/27198849670041c957a26995a60f14bec7f42c5e/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
[modify] https://crrev.com/27198849670041c957a26995a60f14bec7f42c5e/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.h
[modify] https://crrev.com/27198849670041c957a26995a60f14bec7f42c5e/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.idl

Comment 9 by shend@chromium.org, Oct 31 2017

Owner: nikhil.s...@samsung.com
Status: Fixed (was: Assigned)
Thanks for the help. You also now have edit bug access.
Labels: -Type-Bug -Hotlist-Interop Type-Feature

Sign in to add a comment