Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-typed-om] Make CSSUnitValue use unrestricted double #1089

Open
fantasai opened this issue Mar 27, 2023 · 1 comment
Open

[css-typed-om] Make CSSUnitValue use unrestricted double #1089

fantasai opened this issue Mar 27, 2023 · 1 comment

Comments

@fantasai
Copy link
Contributor

See discussion at w3c/csswg-drafts#8114 (comment)

Since CSS can now represent infinite and NaN values, Tab's proposal is to make CSSUnitValue use unrestricted double.

@css-meeting-bot
Copy link
Member

The CSS Working Group just discussed [css-typed-om] Make CSSUnitValue use unrestricted double.

The full IRC log of that discussion <flackr> discussion of who should take this
<flackr> fantasai: can we make progress without tab?
<flackr> bkardell_: tab had a proposed resolution
<Rossen_> linked resolution proposal: https://github.com/w3c/csswg-drafts/issues/8114#issuecomment-1458935503
<flackr> Rossen_: summarizes linked proposal
<emilio> q+
<flackr> bkardell_: TabAtkins believes this is fine for cssom because we have the needed types
<Rossen_> ack emilio
<flackr> emilio: plain css values in the computed space are not allowed to be +/- infinity so it's a bit weird
<flackr> emilio: you usually need a calc to have an infinity and it gets simplified to a large number when computed, so it might be a bit inconsistent
<flackr> emilio: has anyone looked into this?
<flackr> Rossen_: tab has, and thinks it's okay
<flackr> emilio: If you assign an infinite value to a style map with a specified value, what does it turn into? is it implicitly wrapped in a calc?
<flackr> emilio: it's fine, but perhaps a bit odd that you'd get a calc back
<flackr> Rossen_: this is the discussion we need to have, let's wait for TabAtkins to push this forward since there are concerns
<flackr> emilio: sg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants