W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

Re: [csswg-drafts] [css-backgrounds][css3-background] Consider removing the spread distance adjustment for small border radii

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Mon, 23 Oct 2017 22:47:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-338818814-1508798831-sysbot+gh@w3.org>
This section was added to create continuity between the shape of the shadow at a border-radius of zero and the shape of a shadow at a border-radius of not-zero. If there's a Web-compat limitation preventing us from implementing it, then we might need to re-evaluate, but if not we do have an interest in improving continuity in behavior for the sake of animations and transitions if nothing else. But also in this case the shadow seems to look more appropriately-shaped if the formula is followed: the curve is seems greatly exaggerated in the shadow otherwise.

I can raise it to the WG if you think the situation needs some re-evalutation, though. Lmk~

[Testcase to play with](http%3A%2F%2Fsoftware.hixie.ch%2Futilities%2Fjs%2Flive-dom-viewer%2F%3F%3C%21DOCTYPE%20html%3E%250A%3Cstyle%3E%250A%20body%20%7B%20border%253A%20solid%20orange%2010px%253B%20border-radius%253A%201px%253B%20box-shadow%253A%2010px%2010px%200%2010px%253B%20margin%253A%2020px%250A%3C%252Fstyle%3E%250A%250ACompare%20the%20corner%20of%20the%20box%20to%20its%20shadow.%20Interesting%20%3Ccode%3Eborder-radius%3C%252Fcode%3E%20values%20to%20try%253A%20%3Ccode%3E0%3C%252Fcode%3E%252C%20%3Ccode%3E1px%3C%252Fcode%3E%252C%20%3Ccode%3E5px%3C%252Fcode%3E%252C%20%3Ccode%3E10px%3C%252Fcode%3E%252C%20%3Ccode%3E20px%3C%252Fcode%3E.)

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1900#issuecomment-338818814 using your GitHub account
Received on Monday, 23 October 2017 22:47:15 UTC

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