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

Issue 2358203003: CSS Properties and Values API: Use initial value where appropriate for var() (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: Use initial value where appropriate for var() This patch fixes var() references to registered properties to return initial values where appropriate. When a registered property is not explicitly set, var() references to it should result in that property's initial value. We now store the initial value as a token stream as well to accommodate this. Any unregistered property in a var() cycle will continue to compute to their initial value (i.e. the invalid value). Any registered property in a var() cycle similar compute to their initial value (I don't think this is explicitly mentioned in the spec, but for consistency this makes more sense than the unset value). Valid references to properties in a var() cycle will resolve to the referenced property'd initial value. BUG=641877 Committed: https://crrev.com/a44ebf4ccff547bda5de22979e93ac65c3b2b93c Cr-Commit-Position: refs/heads/master@{#420579}

Patch Set 1 #

Patch Set 2 : test more #

Patch Set 3 : bla #

Total comments: 2

Messages

Total messages: 10 (5 generated)
Timothy Loh
https://codereview.chromium.org/2358203003/diff/40001/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp File third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp (right): https://codereview.chromium.org/2358203003/diff/40001/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp#newcode67 third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp:67: return registration->initialVariableData(); We could alternatively set the initial values ...
4 years, 3 months ago (2016-09-22 10:01:25 UTC) #4
meade_UTC10
lgtm https://codereview.chromium.org/2358203003/diff/40001/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp File third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp (right): https://codereview.chromium.org/2358203003/diff/40001/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp#newcode67 third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp:67: return registration->initialVariableData(); On 2016/09/22 10:01:25, Timothy Loh wrote: ...
4 years, 3 months ago (2016-09-23 01:16:50 UTC) #5
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/2358203003/40001
4 years, 3 months ago (2016-09-23 03:42:52 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-23 05:05:20 UTC) #8
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 05:07:25 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a44ebf4ccff547bda5de22979e93ac65c3b2b93c
Cr-Commit-Position: refs/heads/master@{#420579}

Powered by Google App Engine
This is Rietveld 408576698