W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

Re: [csswg-drafts] [css-values] Computed value of a negative calc unit that doesn't allow negative lengths.

From: Alan Stearns via GitHub <sysbot+gh@w3.org>
Date: Wed, 01 Nov 2017 22:55:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-341267463-1509576926-sysbot+gh@w3.org>
I've written these tests that check whether an animated negative calc value is clamped at computed value time (and thus a range of negative values aren't present in the animation) or used value time (where a range of negative values will be present in clamped form for a duration in the animation)

https://github.com/astearns/web-platform-tests/commit/da5892fdfb227227c924405467f823b34c33b9a0

The results I'm seeing are all over the place. Pass means clamping is happening at used value time (mostly). Fail means it's clamping at computed value time.

width and padding-left have the same results

width-up
FF, Chrome: pass
Safari: fail
Edge: no animation

width-down
FF: pass
Safari, Chrome: fail
Edge: no animation

opacity and font-size have the same results

opacity-up
Chrome, Edge: pass
(though the Chrome animation appears to be incorrect)
Safari, FF: fail

opacity-down
Chrome, Safari, FF, Edge: fail

font-size up
Chrome: pass
FF, Safari: fail
Edge: loading problem page (though the animation seems to fail)

font-size down
Chrome, FF, Safari: fail
Edge: no animation

-- 
GitHub Notification of comment by astearns
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/434#issuecomment-341267463 using your GitHub account
Received on Wednesday, 1 November 2017 22:55:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 1 November 2017 22:55:31 UTC