Devtools bug: N/A. I thought that devtools auto-completed "calc" (and
thus that these functions would be a reasonable thing to add), but
apparently they don't, so not much else to do.
Note that some of those tests are not up-to-date with the latest spec
and working group discussions regarding serialization / simplification.
Still I think our implementation is closer to the spec than other
browsers. Anyhow that testing issue is tracked in
https://github.com/web-platform-tests/wpt/issues/21599.
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).
Let me know if there's any concern with proceeding.
Do we have any sense of how good the test coverage is?
> 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"?
Emilio Cobos Álvarez
unread,
Feb 21, 2020, 7:58:38 AM2/21/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
>> 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:
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...