WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
25293
We should implement outline-radius:
https://bugs.webkit.org/show_bug.cgi?id=25293
Summary
We should implement outline-radius:
Alexander H
Reported
2009-04-20 06:55:52 PDT
We should implement outline-radius: All the blocks with border-radius currently have boxed outlines without rounded corners
Attachments
draft implementation
(23.01 KB, patch)
2009-11-17 10:09 PST
,
Gustavo Noronha (kov)
gustavo
: commit-queue-
Details
Formatted Diff
Diff
second draft
(35.53 KB, patch)
2009-11-23 10:37 PST
,
Gustavo Noronha (kov)
mjs
: review-
gustavo
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2009-10-09 16:30:01 PDT
***
Bug 29988
has been marked as a duplicate of this bug. ***
Alberto Calvo
Comment 2
2009-10-10 07:50:30 PDT
I agree. My alternative suggestion is to make the outline follow it's container's border-radius. That will save us a property to add and it makes sense.
Gustavo Noronha (kov)
Comment 3
2009-11-17 10:09:50 PST
Created
attachment 43366
[details]
draft implementation This is my very first incursion into the inner parts of WebCore, so please be picky, and let me know of any bad decisions regarding naming, implementation, code reuse, etc. I am not sure we would want to call the property outline-radius, for instance. Should we use the '-webkit-' prefix for this?
mitz
Comment 4
2009-11-17 10:15:06 PST
(In reply to
comment #2
)
> I agree. My alternative suggestion is to make the outline follow it's > container's border-radius. That will save us a property to add and it makes > sense.
This makes sense to me too.
Darin Adler
Comment 5
2009-11-18 16:16:15 PST
Who's going to review this? Hyatt, Mitz, Simon, Beth?
Simon Fraser (smfr)
Comment 6
2009-11-18 16:54:37 PST
Can you give a link to the CSS spec for outline-radius? Thanks.
Gustavo Noronha (kov)
Comment 7
2009-11-23 10:36:43 PST
(In reply to
comment #6
)
> Can you give a link to the CSS spec for outline-radius? > Thanks.
No such thing, AFAIK. This is currently only implemented in Mozilla, with the -moz- prefix, which is why I was asking about using the -webkit- prefix. Looks like they are there for a long time now:
http://lists.w3.org/Archives/Public/www-style/2000Apr/0033.html
Gustavo Noronha (kov)
Comment 8
2009-11-23 10:37:51 PST
Created
attachment 43719
[details]
second draft Second patch, actually drawing the rounded corners correctly, and also for inline elements, in addition to block ones.
Simon Fraser (smfr)
Comment 9
2009-11-23 10:42:52 PST
Why do we want to implement something that isn't even proposed for CSS3? Is there a compelling use case?
Gustavo Noronha (kov)
Comment 10
2009-11-25 08:30:50 PST
(In reply to
comment #9
)
> Why do we want to implement something that isn't even proposed for CSS3? Is > there a compelling use case?
The reason I started working on it was that a client wanted to use rounded outlines to mean 'this link is selected' in a webkit browser of theirs. I see value in having rounded corners for outlines, but I am not able to identify this as something authors are really missing (perhaps because outlines are not used too much either).
Eric Seidel (no email)
Comment 11
2009-11-25 22:38:51 PST
One could fake this using SVG or even an absolute position div with a border-radius, although having webkit-outline-radius is clearly a slicker solution. Without anyone really asking for this I'm not sure we should bother with the complexity though.
Alberto Calvo
Comment 12
2009-11-26 00:41:00 PST
(In reply to
comment #11
)
> One could fake this using SVG or even an absolute position div with a > border-radius, although having webkit-outline-radius is clearly a slicker > solution. Without anyone really asking for this I'm not sure we should bother > with the complexity though.
One of the main uses of outline is for accessibility. I think it automatically discards using SVG... On the other hand, the div proposal is what seems unnecessary for me. Why adding additional markup for faking something that should be rendered by the browser? I think only few ppl thinked about it when all the border-radius fever started. I know maybe it's a pure cosmetique issue, but aren't border-radius, box-shadow, etc... the same? I think the main problem is that not much people knows how to use outline properly, and even it's a common (bad) practice to remove it, but should that move us away from doing things right? I don't think so.
Adele Peterson
Comment 13
2009-11-26 06:02:58 PST
Hyatt and I have talked about something like this in the past. Styled form controls (like our styled pop up button) with border-radius, look pretty terrible with the default focus ring. I think a lot of peole making custom controls end up having to turn off the outline all together.
mitz
Comment 14
2009-11-26 10:10:03 PST
(In reply to
comment #13
)
> Hyatt and I have talked about something like this in the past. Styled form > controls (like our styled pop up button) with border-radius, look pretty > terrible with the default focus ring. I think a lot of peole making custom > controls end up having to turn off the outline all together.
This case can be addressed (simply) by following the suggestion in
comment #2
. If we make that work even for inlines that specify border-radius (even if they don’t have a border), then I think it will also address the use case from
comment #10
.
Gustavo Noronha (kov)
Comment 15
2009-11-26 14:01:11 PST
(In reply to
comment #14
)
> (In reply to
comment #13
) > This case can be addressed (simply) by following the suggestion in
comment #2
. > If we make that work even for inlines that specify border-radius (even if they > don’t have a border), then I think it will also address the use case from >
comment #10
.
I believe it would, indeed. If there's a consensus, I can try to implement that, instead.
Adam Barth
Comment 16
2009-11-27 14:49:42 PST
Comment on
attachment 43719
[details]
second draft Rejecting patch 43719 from commit-queue. Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 Last 500 characters of output: ing/style/RenderStyle.cpp Done processing WebCore/css/CSSParser.h Done processing WebCore/css/CSSParser.cpp Done processing WebCore/rendering/RenderBlock.cpp WebCore/rendering/style/RenderStyle.h:761: More than one command on the same line [whitespace/newline] [4] Done processing WebCore/rendering/style/RenderStyle.h Done processing WebCore/rendering/style/OutlineValue.h Done processing WebCore/rendering/RenderObject.cpp Done processing WebCore/rendering/RenderInline.cpp Total errors found: 4
Adam Barth
Comment 17
2009-11-27 15:15:31 PST
Comment on
attachment 43719
[details]
second draft Sorry for the bug spam. The style-queue is almost done and it's a little too comment-happy at the moment.
Adam Barth
Comment 18
2009-11-30 12:36:16 PST
Attachment 43719
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebCore/css/CSSStyleSelector.cpp:4686: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] WebCore/css/CSSStyleSelector.cpp:4688: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] WebCore/css/CSSStyleSelector.cpp:4693: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Done processing WebCore/css/CSSStyleSelector.cpp Done processing WebCore/rendering/style/RenderStyle.cpp Done processing WebCore/css/CSSParser.h Done processing WebCore/css/CSSParser.cpp Done processing WebCore/rendering/RenderBlock.cpp WebCore/rendering/style/RenderStyle.h:761: More than one command on the same line [whitespace/newline] [4] Done processing WebCore/rendering/style/RenderStyle.h Done processing WebCore/rendering/style/OutlineValue.h Done processing WebCore/rendering/RenderObject.cpp Done processing WebCore/rendering/RenderInline.cpp Total errors found: 4
Maciej Stachowiak
Comment 19
2009-12-28 01:11:51 PST
(In reply to
comment #15
)
> (In reply to
comment #14
) > > (In reply to
comment #13
) > > This case can be addressed (simply) by following the suggestion in
comment #2
. > > If we make that work even for inlines that specify border-radius (even if they > > don’t have a border), then I think it will also address the use case from > >
comment #10
. > > I believe it would, indeed. If there's a consensus, I can try to implement > that, instead.
I think that sounds like the right thing to do. Therefore marking current patch r-, in favor of the alternate approach to make the outline follow border-radius.
Maciej Stachowiak
Comment 20
2009-12-28 01:16:03 PST
Comment on
attachment 43719
[details]
second draft r- per previous comment
Alberto Calvo
Comment 21
2010-02-16 13:58:43 PST
Any news about this one? I'd love to see this solved :)
Pat
Comment 22
2010-03-29 13:32:45 PDT
(In reply to
comment #21
)
> Any news about this one? I'd love to see this solved :)
Same here. If it makes geometrical sense, I would love to see outline radius adjusted per border-radius as proposed in
comment #21
Pat
Comment 23
2010-03-29 13:34:41 PDT
(In reply to
comment #22
)
> (In reply to
comment #21
) > > Any news about this one? I'd love to see this solved :) > > Same here. If it makes geometrical sense, I would love to see outline radius > adjusted per border-radius as proposed in
comment #21
*
comment #2
!
Michael Buckley
Comment 24
2010-06-13 18:44:02 PDT
IMHO if this is implemented it would be good if what Firefox has been doing since 1.5 was followed see
https://developer.mozilla.org/en/CSS/-moz-outline-radius
j.j.
Comment 25
2010-09-08 16:24:06 PDT
https://bugzilla.mozilla.org/show_bug.cgi?id=593717
(In reply to
comment #24
)
> IMHO if this is implemented it would be good if what Firefox has been doing
https://bugzilla.mozilla.org/show_bug.cgi?id=593717
"remove -moz-outline-radius and make outlines follow border-radius"
Aldonio
Comment 26
2012-02-27 11:31:46 PST
Sorry for the spam, I was just trying to add myself to the CC List to get notified about the progress of this bug, but I couldn't find a save button (like mozilla's bug tracker), a subscribe button or something similar.
Luke Macpherson
Comment 27
2012-03-14 20:38:53 PDT
Marking resolved / wontfix because I believe this bug is obsolete.
Josh Davenport
Comment 28
2014-04-19 10:59:44 PDT
This bug still occurs, is it really obsolete?
j.j.
Comment 29
2014-04-19 17:05:15 PDT
> This bug still occurs, is it really obsolete?
it is obsolete, see
comment 19
. The real bug is: "outline should follow border-radius". I don't see this bug filed, but it's basically
bug 20807
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug