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

Issue 2330893002: CSS Properties and Values API: Support more syntax strings (Closed)

Created:
4 years, 3 months ago by Timothy Loh
Modified:
4 years, 3 months ago
Reviewers:
meade_UTC10
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSS Properties and Values API: Support more syntax strings This patch implements proper parsing of syntax strings in the P&V API, as well parsing of the actual values. In particular, we add support for parsing of syntax strings like "<length> | <percentage>" and "<number>+". - Whitespace is not mentioned in the spec but used in examples. This patch allows whitespace in most places. - The <ident> production is possibly not the best choice (see github issue below), so until that is resolved we only allow name code points. - <resolution> is not yet used in any CSS properties in Blink, so value parsing support will be added separately. - <transform-function> isn't factored to be trivially supported, so value parsing support will also be added separately. There's also an outstanding issue re. Typed OM integration which might result in changes here. https://drafts.css-houdini.org/css-properties-values-api/#supported-syntax-strings https://github.com/w3c/css-houdini-drafts/issues/265 BUG=641877 Committed: https://crrev.com/f3c212113fa3578799a243e1940e533ac6eac927 Cr-Commit-Position: refs/heads/master@{#419425}

Patch Set 1 #

Total comments: 9

Patch Set 2 : move some syntax parsing logic into helpers #

Messages

Total messages: 24 (15 generated)
Timothy Loh
4 years, 3 months ago (2016-09-12 07:01:22 UTC) #7
meade_UTC10
Sorry for super slow review, too many things happening all at once. This is basically ...
4 years, 3 months ago (2016-09-14 12:54:13 UTC) #11
Timothy Loh
https://codereview.chromium.org/2330893002/diff/1/third_party/WebKit/LayoutTests/custom-properties/register-property-syntax-parsing.html File third_party/WebKit/LayoutTests/custom-properties/register-property-syntax-parsing.html (right): https://codereview.chromium.org/2330893002/diff/1/third_party/WebKit/LayoutTests/custom-properties/register-property-syntax-parsing.html#newcode15 third_party/WebKit/LayoutTests/custom-properties/register-property-syntax-parsing.html:15: try { CSS.unregisterProperty('--syntax-test'); } catch(e) { } On 2016/09/14 ...
4 years, 3 months ago (2016-09-19 07:14:14 UTC) #12
Timothy Loh
https://codereview.chromium.org/2330893002/diff/1/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp File third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp (right): https://codereview.chromium.org/2330893002/diff/1/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp#newcode37 third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp:37: if (type == "length") On 2016/09/19 07:14:14, Timothy Loh ...
4 years, 3 months ago (2016-09-19 07:14:42 UTC) #13
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/2330893002/20001
4 years, 3 months ago (2016-09-19 07:14:56 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/32641)
4 years, 3 months ago (2016-09-19 08:18:51 UTC) #18
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/2330893002/20001
4 years, 3 months ago (2016-09-19 08:21:31 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-19 10:21:45 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 10:23:21 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f3c212113fa3578799a243e1940e533ac6eac927
Cr-Commit-Position: refs/heads/master@{#419425}

Powered by Google App Engine
This is Rietveld 408576698