On 2/21/20 11:46 AM, James Graham wrote:
On 21/02/2020 01:42, Emilio Cobos Álvarez wrote:
web-platform-tests: There's a variety of tests in:
https://wpt.fyi/results/css/css-values?label=master&label=experimental&aligned&q=minmax%7Cclamp
Do we have any sense of how good the test coverage is?
Pretty good, IMO.
Also, not having enabled causes some confusing (but technically
correct!) behavior for developers[1][2], which is IMO worth
addressing, and also kinda likely to show up as compat bugs (specially
on mobile where env() is used the most).
I assume the word "env()" is missing between "having enabled" and "causes"?
Err, not quite. The issue is caused by env() being enabled and min() /
max() not being enabled. That means that developers would usually write
something like:
padding: 10px;
padding: max(env(safe-area-something-something), 10px);
Expecting that the 10px declaration would take effect if the browser
doesn't support max().
But instead the declaration at the bottom parses and computes to zero
(per spec). The right way to do that is to do something like @supports
(padding: max(0px)) { ... } or such, but...
-- Emilio
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform