Re: [csswg-drafts] [css-shapes] Consider ways to make the CORS limitation in CSS Shapes easier for authors (#1481)

I've stumbled upon this today again. Made the simplest HTML document, with an image and a paragraph, tried to use shape-outside from the image, loaded it from the local file system, and failed. I was stratching my head for a little while until I remembered about CORS. Dev-tools didn't even warn.

Is there really nothing we can do about file system access? Requiring a CORS configured web server to do the most basic of css development seems silly.

If not, could dev-tools show a warning, and maybe let you tick a box or something to allow-list things while you're developping the page? 

Also, how does the CORS requirement play out with EPUB files? I could be wrong, but I think the inside of an EPUB isn't particularly CORS aware. Having shape-outside be unable to work in EPUBs would be unpleasant, and having it work based on ignoring the spec would be better for users, but should tell us something is off with the spec(s).



-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1481#issuecomment-1329972040 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 29 November 2022 01:54:29 UTC