Commit 4a7ca9c8 authored by Kuo Jen Wei's avatar Kuo Jen Wei Committed by Chromium LUCI CQ

CCA: Negative value in calc with calc(-1 * ...)

Replace all calc(0px - ...) with calc(-1 * ...) for avoiding 'Use "0"
for zero-width lengths (i.e. 0px -> 0)' presubmit warning.

Bug: b/172340545
Test: Manually check all layout looks the same.
Change-Id: I7a5b80da98f9248ebb929eb576bae9845e781442
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2602055
Commit-Queue: Inker Kuo <inker@chromium.org>
Commit-Queue: Shik Chen <shik@chromium.org>
Auto-Submit: Inker Kuo <inker@chromium.org>
Reviewed-by: default avatarShik Chen <shik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#839308}
parent e7b856bd
...@@ -73,12 +73,12 @@ body.tab-navigation input:focus::after { ...@@ -73,12 +73,12 @@ body.tab-navigation input:focus::after {
border: 2px solid var(--focus-color); border: 2px solid var(--focus-color);
border-radius: 4px; border-radius: 4px;
bottom: calc(0px - var(--focus-ring-size)); bottom: calc(-1 * var(--focus-ring-size));
content: ''; content: '';
left: calc(0px - var(--focus-ring-size)); left: calc(-1 * var(--focus-ring-size));
position: absolute; position: absolute;
right: calc(0px - var(--focus-ring-size)); right: calc(-1 * var(--focus-ring-size));
top: calc(0px - var(--focus-ring-size)); top: calc(-1 * var(--focus-ring-size));
} }
.cancel-animate { .cancel-animate {
...@@ -367,7 +367,7 @@ body.tab-navigation .mode-item>input:focus::after { ...@@ -367,7 +367,7 @@ body.tab-navigation .mode-item>input:focus::after {
} }
body.tab-navigation .mode-item>input:focus + span::after { body.tab-navigation .mode-item>input:focus + span::after {
--negative-size: calc(0px - var(--focus-ring-gap)); --negative-size: calc(-1 * var(--focus-ring-gap));
border: var(--focus-ring-border) solid var(--focus-color); border: var(--focus-ring-border) solid var(--focus-color);
border-radius: 23px/50%; border-radius: 23px/50%;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment