W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

Re: [csswg-drafts] [css-shadow-parts] PanResp (Panel Responsive) support: sizing expression mapping (#3874)

From: Stephen Williams via GitHub <sysbot+gh@w3.org>
Date: Fri, 26 Apr 2019 18:51:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-487163705-1556304683-sysbot+gh@w3.org>
This would require a change to how expressions are handled, but it would be very confined: At the point that the unit is required in a subexpression, rewrite the expression at that point by replacing <value>unit with the given formula with <value> replacing the unit variable.  Or, looked at a different way which I think would be equivalent here, this could be done as the value of each unit in any expression.  So this becomes more like 'get px() { return vw*var(--font-scale, var(--lfont-scale)) }' rather than 'get px() { return this.px; }'.  Then the CSS expression parsing itself shouldn't need to change.

-- 
GitHub Notification of comment by sdwlig
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3874#issuecomment-487163705 using your GitHub account
Received on Friday, 26 April 2019 18:51:25 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:46 UTC