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

Re: [csswg-drafts] [css-syntax][css-values] Add IEEE 754 float hex format SVG/CSS values (#4564)

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Mon, 09 Dec 2019 17:40:23 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-563349615-1575913222-sysbot+gh@w3.org>
> I see where you're going with this. Obviously the SVG is machine generated, it strikes me that scaling every dimension up by 1000 and set "viewBox="0 0 89000 95000" would avoid any issues you're having with float resolution.

I have seen this sort of issue come up a few times; sometimes people are unaware of resolution limits, or they are but don't see how to maximize them.

I know that SVG Tiny 1.2 had a precision requirement and SVG2 is moving towards deliberately not specifying one, but perhaps some authoring advice could be given. For example, consider
```
viewBox(0, 0, 10000, 10000)
viewBox(0, 0, 0.1, 0.1)
viewBox(100000000, 100000000, 100000000.1, 100000000.1)
```
These progressively squander the available resolution of any implementation

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4564#issuecomment-563349615 using your GitHub account
Received on Monday, 9 December 2019 17:40:24 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:05 UTC