New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 798683 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

CSS filter invert() with no argument uses the wrong value: 1 instead of 0

Reported by woxxom@gmail.com, Jan 3 2018

Issue description

Chrome version: all versions since as early as v24 and up to v65

=================================

1. open the attached test.html

Expected: "SUCCESS" is shown
Observed: empty page

=================================

As per CSS specification, the initial value for invert() is 0 so "invert()" must be parsed as "invert(0)", but Chrome incorrectly parses it as "invert(1)".

Quoting https://drafts.fxtf.org/filter-effects/#supported-filter-functions

> omitted values default to the initial value for interpolation

> invert() = invert( <number-percentage> )
> The initial value for interpolation is 0.

Quoting https://www.w3.org/TR/filter-effects-1/#FilterProperty

> invert() = invert( [ <number> | <percentage> ] )
> The lacuna value for interpolation is 0.

=================================

Firefox correctly shows "SUCCESS" but only because it refuses to parse the empty "invert()", but at least the end result is correct.
 
test.html
286 bytes View Download
bad.png
1.7 KB View Download
good.png
2.4 KB View Download
Labels: Needs-Milestone
Cc: sc00335...@techmahindra.com
Labels: -Pri-3 Triaged-ET M-65 OS-Linux OS-Mac OS-Windows Pri-2
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on latest stable 63.0.3239.108 and on latest canary 65.0.3310.0 using Windows 10, Mac 10.13.1 and Ubuntu 14.04 with HTML file given in comment#0. i.e; Blank page is seen instead of SUCCESS.

Issue is seen from M50.[50.0.2661.0]. Hence considering this issue as Non-Regression and marking as Untriaged.

Issue is not seen in Firefox.

Thanks!
Status: Available (was: Untriaged)
Labels: Hotlist-Interop
Owner: shanmug...@samsung.com
Status: Assigned (was: Available)
Status: Fixed (was: Assigned)

Sign in to add a comment