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

Issue 802256 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Email to this user bounced
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug-Regression



Sign in to add a comment

-webkit-background-origin accepts the 'text' value

Project Member Reported by f...@opera.com, Jan 16 2018

Issue description

Test:

  https://jsfiddle.net/9gfp98da/

(The 'text' value will be treated the same as 'padding-box'.)

Don't know if this is something that was introduced recently, or if it's been like this for a long time (-webkit-background-origin is parsed the same as -webkit-background-clip, which is likely the source of this issue.)
 
Looks good in 63.0.3239.132, not on trunk, so seems like a recent regression.
Cc: futhark@chromium.org
Labels: -Pri-3 Pri-2
Owner: bugsnash@chromium.org
Status: Assigned (was: Available)
Suspecting https://crrev.com/406dacf613a5932419b283111df9849115830cc9

Have confirmed my patch is causing this. Will investigate.

Comment 4 by shend@chromium.org, Jan 17 2018

Labels: Hotlist-Interop
Looks like I accidentally changed the parsing logic for -webkit-background-origin to match -webkit-background-clip instead of -webkit-mask-origin like it should have been.

The code has changed a fair bit since my patch, but the fix for this is to rewrite BackgroundOrigin::ParseSingleValue to include the alias branch and disallow text in the alias branch. 

Note that the unprefixed background-origin behaves correctly.
Labels: -Type-Bug Type-Bug-Regression

Comment 7 Deleted

I have a WIP patch up that fixes this at https://chromium-review.googlesource.com/c/chromium/src/+/923665, it still needs a layout test. I'm on leave so will be slow on this.

Comment 9 by e...@chromium.org, Mar 23 2018

Owner: ----
Status: Available (was: Assigned)
Owner: rob.b...@samsung.com
Status: Assigned (was: Available)
Project Member

Comment 11 by bugdroid1@chromium.org, Apr 12 2018

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

commit 65a1361623957de8a5ec62ed44ffda141266c12b
Author: Rob Buis <rob.buis@samsung.com>
Date: Thu Apr 12 16:01:03 2018

Fix regression allowing text value for -webkit-background-origin

Fix regression allowing text value for -webkit-background-origin that
was caused by r514365.

Code change implemented by Bugs Nash, testcase by Rob Buis.

Bug:  802256 

Change-Id: I11e2b1b19a374e9f6b9c1091d82882ef526bc63c
Reviewed-on: https://chromium-review.googlesource.com/1008102
Commit-Queue: Rob Buis <rob.buis@samsung.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550221}
[add] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/WebKit/LayoutTests/external/wpt/compat/webkit-background-origin-text-ref.html
[add] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/WebKit/LayoutTests/external/wpt/compat/webkit-background-origin-text.html
[modify] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
[modify] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/blink/renderer/core/css/properties/css_parsing_utils.h
[modify] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/blink/renderer/core/css/properties/longhands/background_clip_custom.cc
[modify] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/blink/renderer/core/css/properties/longhands/background_origin_custom.cc

Status: Fixed (was: Assigned)
Project Member

Comment 13 by bugdroid1@chromium.org, Apr 17 2018

Labels: merge-merged-testbranch
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/65a1361623957de8a5ec62ed44ffda141266c12b

commit 65a1361623957de8a5ec62ed44ffda141266c12b
Author: Rob Buis <rob.buis@samsung.com>
Date: Thu Apr 12 16:01:03 2018

Fix regression allowing text value for -webkit-background-origin

Fix regression allowing text value for -webkit-background-origin that
was caused by r514365.

Code change implemented by Bugs Nash, testcase by Rob Buis.

Bug:  802256 

Change-Id: I11e2b1b19a374e9f6b9c1091d82882ef526bc63c
Reviewed-on: https://chromium-review.googlesource.com/1008102
Commit-Queue: Rob Buis <rob.buis@samsung.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550221}
[add] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/WebKit/LayoutTests/external/wpt/compat/webkit-background-origin-text-ref.html
[add] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/WebKit/LayoutTests/external/wpt/compat/webkit-background-origin-text.html
[modify] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
[modify] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/blink/renderer/core/css/properties/css_parsing_utils.h
[modify] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/blink/renderer/core/css/properties/longhands/background_clip_custom.cc
[modify] https://crrev.com/65a1361623957de8a5ec62ed44ffda141266c12b/third_party/blink/renderer/core/css/properties/longhands/background_origin_custom.cc

Sign in to add a comment