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

Issue 2261523005: Presubmit test for overriding properties generated by Polymer mixin shim (Closed)

Created:
4 years, 4 months ago by michaelpg
Modified:
4 years, 4 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Presubmit test for overriding properties generated by Polymer mixin shim Ensure we don't try to use an implementation detail of Polymer which could break and is hacky. With Polymer.useNativeCSSProperties enabled, Polymer uses custom properties to shim mixins: :root { --paper-mixin { color: green; --paper-button-color: red; } } my-element @apply(--paper-mixin); } becomes :root { --paper-mixin_-_color: green; --paper-mixin_-_paper-button-color: red; } my-element { color: var(--paper-mixin_-_color); --paper-button-color: var(--paper-mixin_-_paper-button-color); } This happens at run-time, if custom variables are enabled, if the @apply shim is used. Trying to change <my-element> my directly setting these variables: my-element { --paper-mixin_-_paper-button-color: blue; /* BAD */ } is unsafe. R=dbeam@chromium.org Committed: https://crrev.com/da606cedfa596f11a7e77a5197e86cdcd845500e Cr-Commit-Position: refs/heads/master@{#413256}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M chrome/browser/web_dev_style/css_checker.py View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/web_dev_style/css_checker_test.py View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
michaelpg
4 years, 4 months ago (2016-08-19 20:15:42 UTC) #1
Dan Beam
lgtm
4 years, 4 months ago (2016-08-19 20:49:12 UTC) #2
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/2261523005/1
4 years, 4 months ago (2016-08-19 20:54:30 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-19 21:46:35 UTC) #5
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 21:50:18 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/da606cedfa596f11a7e77a5197e86cdcd845500e
Cr-Commit-Position: refs/heads/master@{#413256}

Powered by Google App Engine
This is Rietveld 408576698