Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Issue 38573003: Use 4 value syntax for getComputedStyle of background-position and -webkit-mask-position (Closed)

Created:
7 years, 2 months ago by alancutter (OOO until 2018)
Modified:
7 years, 1 month ago
CC:
blink-reviews, shans, rjwright, Mike Lawther (Google), dglazkov+blink, dstockwell, apavlov+blink_chromium.org, Steve Block, dino_apple.com, mkwst+watchlist_chromium.org, Eric Willigers, Timothy Loh
Visibility:
Public.

Description

Use 4 value syntax for getComputedStyle of background-position and -webkit-mask-position This patch forces getComputedStyle of background-position to always return the 4 value syntax (eg. left 10% top 25px) regardless of input format. Similar behaviour applies to -webkit-mask-position as well. This format is dictated by the background-position spec: http://www.w3.org/TR/css3-background/#the-background-position Existing tests already check this behaviour and have been updated. BUG=310977 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161213

Patch Set 1 #

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -393 lines) Patch
M LayoutTests/animations/interpolation/background-position-interpolation.html View 3 chunks +21 lines, -21 lines 0 comments Download
M LayoutTests/animations/interpolation/background-position-interpolation-expected.txt View 1 chunk +21 lines, -21 lines 0 comments Download
M LayoutTests/animations/interpolation/webkit-mask-position-interpolation.html View 3 chunks +21 lines, -21 lines 0 comments Download
M LayoutTests/animations/interpolation/webkit-mask-position-interpolation-expected.txt View 1 chunk +21 lines, -21 lines 0 comments Download
M LayoutTests/animations/resources/animation-test-helpers.js View 1 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/backgrounds/background-position-parsing-2.html View 6 chunks +66 lines, -66 lines 0 comments Download
M LayoutTests/fast/backgrounds/background-position-parsing-2-expected.txt View 5 chunks +66 lines, -66 lines 0 comments Download
M LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style.html View 13 chunks +13 lines, -13 lines 0 comments Download
M LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style-expected.txt View 1 chunk +13 lines, -13 lines 0 comments Download
M LayoutTests/fast/backgrounds/multiple-backgrounds-computed-style-expected.txt View 3 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/backgrounds/script-tests/multiple-backgrounds-computed-style.js View 3 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/background-position-inherit.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-expected.txt View 5 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-shorthand.html View 10 chunks +28 lines, -28 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-shorthand-expected.txt View 10 chunks +28 lines, -28 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-zoom-and-background-size.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/getComputedStyle-zoom-and-background-size-expected.txt View 4 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-allowed-while-cloning-objects-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/svg/css/getComputedStyle-basic-expected.txt View 4 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/transitions/background-transitions.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/transitions/background-transitions-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/transitions/multiple-background-transitions.html View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/transitions/multiple-background-transitions-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/transitions/multiple-mask-transitions.html View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/transitions/multiple-mask-transitions-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/virtual/web-animations-css/animations/interpolation/background-position-interpolation-expected.txt View 1 chunk +21 lines, -21 lines 0 comments Download
M LayoutTests/virtual/web-animations-css/animations/interpolation/webkit-mask-position-interpolation-expected.txt View 1 chunk +21 lines, -21 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 1 chunk +3 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
alancutter (OOO until 2018)
7 years, 2 months ago (2013-10-24 05:14:17 UTC) #1
Timothy Loh
What do other browsers return for getComputedStyle on background-position?
7 years, 2 months ago (2013-10-24 05:20:41 UTC) #2
dstockwell
You've linked to the editors draft, but it appears to be specified the same way ...
7 years, 2 months ago (2013-10-24 05:29:56 UTC) #3
alancutter (OOO until 2018)
On 2013/10/24 05:29:56, dstockwell wrote: > You've linked to the editors draft, but it appears ...
7 years, 2 months ago (2013-10-24 05:32:55 UTC) #4
alancutter (OOO until 2018)
On 2013/10/24 05:20:41, Timothy Loh wrote: > What do other browsers return for getComputedStyle on ...
7 years, 2 months ago (2013-10-24 05:36:38 UTC) #5
alancutter (OOO until 2018)
steveblock: Poke.
7 years, 1 month ago (2013-10-28 03:20:25 UTC) #6
shans
lgtm
7 years, 1 month ago (2013-10-29 23:11:49 UTC) #7
alancutter (OOO until 2018)
On 2013/10/29 23:11:49, shans wrote: > lgtm steveblock: Poke.
7 years, 1 month ago (2013-10-31 07:17:00 UTC) #8
Steve Block
lgtm
7 years, 1 month ago (2013-11-01 01:08:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/38573003/1
7 years, 1 month ago (2013-11-01 01:29:55 UTC) #10
commit-bot: I haz the power
Failed to apply patch for LayoutTests/animations/resources/animation-test-helpers.js: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-01 01:30:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/38573003/150001
7 years, 1 month ago (2013-11-01 23:03:46 UTC) #12
commit-bot: I haz the power
Change committed as 161213
7 years, 1 month ago (2013-11-02 00:46:35 UTC) #13
darktears
On 2013/11/02 00:46:35, I haz the power (commit-bot) wrote: > Change committed as 161213 Isn't ...
7 years, 1 month ago (2013-11-04 11:29:33 UTC) #14
alancutter (OOO until 2018)
On 2013/11/04 11:29:33, darktears wrote: > On 2013/11/02 00:46:35, I haz the power (commit-bot) wrote: ...
7 years, 1 month ago (2013-11-04 22:21:50 UTC) #15
jsclark
On 2013/11/04 22:21:50, alancutter wrote: > Without metrics for getComputedStyle usage we can only speculate ...
7 years, 1 month ago (2013-11-13 23:48:46 UTC) #16
alancutter (OOO until 2018)
7 years, 1 month ago (2013-11-18 08:44:43 UTC) #17
Message was sent while issue was closed.
On 2013/11/13 23:48:46, jsclark wrote:
> On 2013/11/04 22:21:50, alancutter wrote:
> > Without metrics for getComputedStyle usage we can only speculate on the real
> > world dependencies on this output format. The non-stable channels are our
> > sources of feedback for these changes.
> 
> This appears to have gone out in Chrome beta 32.0.1700.6 or 32.0.1700.14
> 
> What are the plans for this going into stable?  I work on a web app that this
> change will have a significant impact on.  While we can adjust our code to
> handle the new format, pushing an update to all our users could be problematic
> depending on how quickly this makes it to stable.
> 
> Also, is the proper place for this comment, or should have commented on the
> ticket or somewhere else?

Hi, sorry for the late reply.
The issue tracker is probably the best place to discuss problems with this
change: crbug.com/310977
These code changes aren't searchable in Rietveld while the issue tracker is so
it's more likely to be seen if others are looking for it.
I will reply to you there.

Powered by Google App Engine
This is Rietveld 408576698