New issue
Advanced search Search tips

Issue 600113 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature



Sign in to add a comment

Support nested calc()

Reported by l446240525@gmail.com, Apr 2 2016

Issue description

Components: Blink>CSS
Labels: -Type-Bug Type-Feature
Labels: -Pri-3 Pri-2
Owner: timloh@chromium.org
Status: Started (was: Unconfirmed)
I'll do this, it's a one line change :)
Labels: Hotlist-Interop
Project Member

Comment 4 by bugdroid1@chromium.org, Apr 5 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/08d6e889c5efdf7d93e0badcd1cd5dcb8e79574c

commit 08d6e889c5efdf7d93e0badcd1cd5dcb8e79574c
Author: timloh <timloh@chromium.org>
Date: Tue Apr 05 01:34:55 2016

Support nested calc()

This patch adds support for nested calc(). This just means that where we
allow a left parenthesis we also allow using calc(. Nested calc() can be
useful when using variables as it allows variables to be used inside
calc() expressions more freely.

FF added support for nested calc() a couple of weeks ago. While we
support -webkit-calc(), we don't add nesting support for it.

BUG= 600113 

https://drafts.csswg.org/css-values/#calc-syntax
https://bugzilla.mozilla.org/show_bug.cgi?id=968761

Review URL: https://codereview.chromium.org/1856633002

Cr-Commit-Position: refs/heads/master@{#385076}

[add] https://crrev.com/08d6e889c5efdf7d93e0badcd1cd5dcb8e79574c/third_party/WebKit/LayoutTests/css3/calc/calc-nesting.html
[modify] https://crrev.com/08d6e889c5efdf7d93e0badcd1cd5dcb8e79574c/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp

Status: Fixed (was: Started)

Sign in to add a comment