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

Issue 2375343002: CSS Motion Path: offset-shorthand requires path before distance rotation (Closed)

Created:
4 years, 2 months ago by Eric Willigers
Modified:
4 years, 1 month ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSS Motion Path: offset-shorthand requires path before distance rotation We require offset-path to appear first, then offset-distance and offset-rotation. Standards discussion is continuing, this is intentionally conservative. Spec (not yet updated): https://drafts.fxtf.org/motion-1/#offset-shorthand BUG=638055 Committed: https://crrev.com/96a59f8297eaff8ff8f70f35ec489d7f47e0e6c8 Cr-Commit-Position: refs/heads/master@{#423059}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 10

Patch Set 3 : comment #

Total comments: 2

Patch Set 4 : options #

Patch Set 5 : path distance rotation all required #

Messages

Total messages: 43 (25 generated)
Eric Willigers
This CL prepares us for shipping of offset-position, offset-distance and offset-rotation. The larger CL https://codereview.chromium.org/2368013002/ ...
4 years, 2 months ago (2016-09-29 04:44:19 UTC) #4
Eric Willigers
4 years, 2 months ago (2016-09-29 04:45:55 UTC) #6
alancutter (OOO until 2018)
Please link to spec in description. https://drafts.fxtf.org/motion-1/#offset-shorthand
4 years, 2 months ago (2016-10-04 04:29:56 UTC) #10
alancutter (OOO until 2018)
https://codereview.chromium.org/2375343002/diff/20001/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html File third_party/WebKit/LayoutTests/css-parser/offset-parsing.html (right): https://codereview.chromium.org/2375343002/diff/20001/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html#newcode8 third_party/WebKit/LayoutTests/css-parser/offset-parsing.html:8: assert_valid_value("offset", "path('M 0 0 H 1') -200% auto"); Add ...
4 years, 2 months ago (2016-10-04 04:42:15 UTC) #13
Eric Willigers
https://github.com/w3c/fxtf-drafts/pull/52 has the possible grammar when offset-position and offset-anchor are also accepted.
4 years, 2 months ago (2016-10-04 04:42:37 UTC) #14
Eric Willigers
https://codereview.chromium.org/2375343002/diff/20001/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html File third_party/WebKit/LayoutTests/css-parser/offset-parsing.html (right): https://codereview.chromium.org/2375343002/diff/20001/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html#newcode8 third_party/WebKit/LayoutTests/css-parser/offset-parsing.html:8: assert_valid_value("offset", "path('M 0 0 H 1') -200% auto"); On ...
4 years, 2 months ago (2016-10-04 04:59:40 UTC) #17
alancutter (OOO until 2018)
https://codereview.chromium.org/2375343002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/2375343002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode1623 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:1623: 0, CSSPrimitiveValue::UnitType::Pixels), Nit: Handle this the same way you ...
4 years, 2 months ago (2016-10-04 05:00:18 UTC) #19
alancutter (OOO until 2018)
https://codereview.chromium.org/2375343002/diff/50001/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html File third_party/WebKit/LayoutTests/css-parser/offset-parsing.html (right): https://codereview.chromium.org/2375343002/diff/50001/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html#newcode23 third_party/WebKit/LayoutTests/css-parser/offset-parsing.html:23: assert_invalid_value("offset", "none / 10px 20px 30deg"); Add negative test ...
4 years, 2 months ago (2016-10-04 05:02:06 UTC) #20
Eric Willigers
https://codereview.chromium.org/2375343002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/2375343002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#newcode1623 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:1623: 0, CSSPrimitiveValue::UnitType::Pixels), On 2016/10/04 05:00:18, alancutter wrote: > Nit: ...
4 years, 2 months ago (2016-10-04 05:20:31 UTC) #22
alancutter (OOO until 2018)
lgtm
4 years, 2 months ago (2016-10-04 05:21:30 UTC) #23
Timothy Loh
The code looks fine, but from the IRC log it isn't clear to me that ...
4 years, 2 months ago (2016-10-04 05:45:46 UTC) #24
shans
On 2016/10/04 at 05:45:46, timloh wrote: > The code looks fine, but from the IRC ...
4 years, 2 months ago (2016-10-04 10:42:48 UTC) #28
Eric Willigers
On 2016/10/04 10:42:48, shans wrote: > On 2016/10/04 at 05:45:46, timloh wrote: > > The ...
4 years, 2 months ago (2016-10-04 23:47:20 UTC) #29
Timothy Loh
lgtm
4 years, 2 months ago (2016-10-05 00:50:13 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2375343002/120001
4 years, 2 months ago (2016-10-05 02:53:10 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 2 months ago (2016-10-05 02:57:20 UTC) #40
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/96a59f8297eaff8ff8f70f35ec489d7f47e0e6c8 Cr-Commit-Position: refs/heads/master@{#423059}
4 years, 2 months ago (2016-10-05 02:58:56 UTC) #42
Eric Willigers
4 years, 1 month ago (2016-11-02 23:07:21 UTC) #43
Message was sent while issue was closed.
On 2016/10/04 10:42:48, shans wrote:
...
> That was Tab's quick stab at a grammar and I think it's wrong. I *think* you
> want:
> 
> <offset-position>? [ <offset-path> [ <offset-rotation> || <offset-distance> ]?
> ]? [ / <offset-anchor> ]?
> 
> i.e. the following constructions (and only the following constructions) are
OK:
> (null)
> ...

An empty string can't be set via CSSStyleDeclaration object:
https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setpropertyvalue
explains how removeProperty() is invoked when an empty string is supplied.

https://github.com/w3c/fxtf-drafts/pull/52
has my counter-proposal.

Powered by Google App Engine
This is Rietveld 408576698