Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There were a couple of files that didn't support border radius for opera yet.
Latest version of opera support this feature!
I made a patch to fix this.
Do you need screenshots?
Comment | File | Size | Author |
---|---|---|---|
#86 | 746470-86.patch | 10.75 KB | Jacine |
#85 | 746470_85_border_radius.patch | 10.19 KB | aspilicious |
#75 | 746470_75_and_hopefully_last.patch | 6.05 KB | aspilicious |
#71 | IE9.jpg | 82.45 KB | james.elliott |
#68 | firefox3.0_patched.png | 115.74 KB | aspilicious |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedversion 2: leaves jquery ui as it is...
Will be updated later
Comment #2
aspilicious CreditAttribution: aspilicious commentedYou need the latest version 10.50 to test this
Comment #3
JacineAWESOME! This is great! Thanks for being on top of this :D
Comment #5
aspilicious CreditAttribution: aspilicious commented#1: opera_border_radius_v2.patch queued for re-testing.
Comment #6
JacineSomething wrong with the bot? I get why the first one failed (no new line at EOF), but don't know why this would fail.
Comment #7
aspilicious CreditAttribution: aspilicious commentedBot glitch, retesting it :)
Comment #8
jbrown CreditAttribution: jbrown commentedThe non-browser-specific CSS should come first like in the rest of core:
box-shadow: 0 3px 20px #000;
-moz-box-shadow: 0 3px 20px #000;
-webkit-box-shadow: 0 3px 20px #000;
Comment #9
aspilicious CreditAttribution: aspilicious commentedOw ok, gona fix that
Comment #10
JacineThat code in #8 was actually my doing, and I was actually going to submit a patch to change it (with box-shadow being last). The reason being that as these CSS3 properties become more widely supported the correct property will be used.
Comment #11
JacineErr wait, that wasn't my code. Sorry I was referring to something else I had done recently.
Comment #12
aspilicious CreditAttribution: aspilicious commentedversion 3
Comment #13
jbrown CreditAttribution: jbrown commentedJacine: yeah it is from #535066: Use CSS3 / IE filter to render toolbar shadow.
I think the non-browser-specific CSS should come first, but the most important thing is that it is consistent.
Comment #14
JacineAgreed... :)
I was referring to modules/system/system-behavior.css, and I did actually fix it before it was committed (though I still think they should be in alphabetical order, maybe that is what I was thinking about):
Shall we do that in this patch or create a separate issue? We should add it to the CSS Coding standards too :)
Comment #15
jbrown CreditAttribution: jbrown commentedIt should be a separate issue.
I think this patch requires opera 10.50 which hasn't been released for linux yet, so I can't test.
Comment #16
aspilicious CreditAttribution: aspilicious commentedIt even works for IE9 technical preview!
KICKASS!
And even fieldsets are still working with IE9!
even more KICKASS!
Comment #17
jbrown CreditAttribution: jbrown commentedNice!
I'm not seeing the toolbar dropshadow from #535066: Use CSS3 / IE filter to render toolbar shadow in your screenshot. Does that work in IE9?
Comment #18
aspilicious CreditAttribution: aspilicious commentedAnd a screenshot for jbrown
Comment #19
aspilicious CreditAttribution: aspilicious commentedabout #17 i'm not sure, atm there is no shadow... I think they didn't implement the shadow thing yet.
But they are gonna do it I guess...
The technical preview is 20 times better then any working IE version!
Comment #20
jbrown CreditAttribution: jbrown commentedWe put a lot of work into that issue getting it to work on IE6/7/8 using progid:DXImageTransform.Microsoft.Shadow.
Hopefully IE9 will support box-shadow.
Comment #21
JacineIt doesn't look good :(
http://ie.microsoft.com/testdrive/info/ReleaseNotes/Default.html
EDIT: better link - http://msdn.microsoft.com/en-us/ie/ff468705.aspx
Comment #22
aspilicious CreditAttribution: aspilicious commenteddon't worry technical preview ;)
"Note: This is a preliminary document and may be changed substantially prior to final commercial release of the software described herein."
Thats like drupal unstable version 6 :)
If they support border radius they will support box shadow, trust me
Comment #23
aspilicious CreditAttribution: aspilicious commentedIs this rtbc now?
in overlay: appearance->settings isn't working but I guess that has something to do with jquery UI 1.7
Comment #24
JacineI wont hold my breath. LOL.
I think we should move the correct properties underneath the browser-specific extensions and this will be ready.
I created a new issue for the rest: #746768: Determine coding standards for CSS3 properties
Comment #25
jbrown CreditAttribution: jbrown commentedUpdated patch to consolidate webkit border-radius onto one line also.
Don't want to mark RTBC as I don't have either of these browsers.
Comment #26
jbrown CreditAttribution: jbrown commented#23: Overlay still doesn't work for me - I get the toolbar on the page and in the overlay.
#24: The two issues are independent.
Comment #27
Jacine@jbrown Why? It exists both ways in core right now, and if you agree that correct CSS3 property should be last, why not do this one right?
Comment #28
jbrown CreditAttribution: jbrown commentedI think the standards based CSS3 property should come first.
Comment #29
JacineThe shorthand does not work for -webkit-border-radius in Safari.
Comment #30
jbrown CreditAttribution: jbrown commentedOkay - I tested it on Chrome.
So we are back to #12.
Comment #31
JacineMarking RTBC for the patch in #12.
Comment #32
sunVery nice.
Comment #33
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #34
David_Rothstein CreditAttribution: David_Rothstein commentedSo out of curiosity, how do we decide that webkit is the one to go with in cases like this where they differ?
I filed a similar patch a few months ago at #655562: Use border-radius throughout core in addition to Mozilla and Webkit-specific properties (which I inexplicably put in the "other" component rather than "markup", which is probably why no one ever saw it) and wasn't sure what to do about that then. I'll go mark that issue fixed now, since I think the patch committed here got all the ones I found, and maybe a couple that I didn't :)
Comment #35
jbrown CreditAttribution: jbrown commentedThey aren't supposed to be different.
Comment #36
jbrown CreditAttribution: jbrown commentedComment #37
sunAlso note that we now should re-order the properties according to the conclusion found in #746768: Determine coding standards for CSS3 properties
Comment #38
aspilicious CreditAttribution: aspilicious commentedI take that one
Comment #39
aspilicious CreditAttribution: aspilicious commented1) can we shorten webkit as we do with mozilla and the "normal" box-radius?
2) if there are 2 radius values to set should we write them on one line
vs
Comment #40
aspilicious CreditAttribution: aspilicious commentedComment #41
sunThe usual inheritance rules apply. Thus, if we don't intend to inherit any values, then we can use the shorthand properties.
Missing space here.
146 critical left. Go review some!
Comment #42
jbrown CreditAttribution: jbrown commented#39 1) no - see #25 #29
Comment #43
aspilicious CreditAttribution: aspilicious commentedCan someone proove #42 with screenshots and my new patch (I can't find any failures).
See my screenshot...
Comment #44
sunWhy not use shorthands for all of these?
Though, those cannot work. ;)
147 critical left. Go review some!
Comment #45
aspilicious CreditAttribution: aspilicious commentedLOOOL ok... true...
Lets fix those first ;)
Comment #46
aspilicious CreditAttribution: aspilicious commentedAnother try.
I guess safari and chrome (newest version all are using the new standard).
Cause it rendered well on those with those freaking errors.
Comment #47
jbrown CreditAttribution: jbrown commentedI think we should wait for #746768: Determine coding standards for CSS3 properties to be resolved and then have a new issue for a global patch to apply the standard that is determined.
Comment #48
aspilicious CreditAttribution: aspilicious commentedThe border radius/shadow are the hardest properties to make. So please lets fix this in this patch. And then we can make those other simple patches.
Comment #49
seutje CreditAttribution: seutje commented@David_Rothstein: it looks kinda funky with 10px on chrome (win) whereas it doesn't look funky with 7px on FF (win), so I'd go with 7
Comment #50
sgabe CreditAttribution: sgabe commentedTested #46 and looks fine, except in IE9, but I don't think that is important now.
Comment #51
aspilicious CreditAttribution: aspilicious commentedOw your safari picture prooves that we can't use the shorthand version for safari...
Don't like that :(
Comment #52
sgabe CreditAttribution: sgabe commentedOops...I didn't notice first. Sorry... It's good that I attached screenshots, so you could spot it.
Comment #53
JacinePatch in #46 needs work for the -webkit shorthand.
Comment #54
seutje CreditAttribution: seutje commentedyea, webkit doesn't support this shorthand:
-> http://gyazo.com/ab78b7d050b63d67d3086003d1a44874.png
Comment #55
aspilicious CreditAttribution: aspilicious commentedOnly older versions of safari don't support it. But I'll try to fix it when I have more time :)
Comment #56
seutje CreditAttribution: seutje commentedheh? just tried latest win chrome, safari and even webkit nightly, none of these support that shorthand
also has very little effect
Comment #57
aspilicious CreditAttribution: aspilicious commentedOn my machine it was working gonna reroll it now, don't panic ;).
I'll write them again...
But for the mozilla:
AND
so nothing wrong with shorthand mozilla...
Comment #58
aspilicious CreditAttribution: aspilicious commentedThis is a link to support what I asaid in 57: https://developer.mozilla.org/en/CSS/-moz-border-radius
AND
If you see something unusual in firefox, then I made an error in converting the border radius.
And here is an (untested) patch...
Comment #59
aspilicious CreditAttribution: aspilicious commentedComment #61
aspilicious CreditAttribution: aspilicious commented#58: border_fix.patch queued for re-testing.
Comment #62
aspilicious CreditAttribution: aspilicious commentedHmmm sun, jacine and others, watch this video: http://live.visitmix.com/MIX10/Sessions/CL27.
Fast forward to 22 minutes.
Comment #63
james.elliott CreditAttribution: james.elliott commentedIt looks like patch in #58 fixed everything except IE9
Comment #64
aspilicious CreditAttribution: aspilicious commentedHmm strange things happening in IE9....
lets try to find the issue!
Comment #65
aspilicious CreditAttribution: aspilicious commentedI get a little WTF fealing bout this...
http://localhost/drupal/#overlay=admin/appearance
Is displaying wonderfull...
BUT
http://localhost/drupal/admin/appearance isn't o_O in ie_9 technical preview, I think it's some kind of rendering bug
Comment #66
seutje CreditAttribution: seutje commentednot much point in linking to your localhost o.O
about the -moz-border-radius shorthand: it works in 3.6.x, but I don't think 3.5.x interprets 4 values properly
could any1 with a 3.5 confirm that this looks like this on FF 3.5.x
Comment #67
sunIt looks the same in FF 3.5. Never had problems with the -moz-border-radius shorthand notion.
Comment #68
aspilicious CreditAttribution: aspilicious commentedFF 3.0 with patch, seems to work...
Patch works only IE9 does weird things but IE9 isn't alpha yet...
Comment #69
seutje CreditAttribution: seutje commentedok thanks, guess I was imagining incompatibilities again :x
Comment #70
aspilicious CreditAttribution: aspilicious commentedI think patch #58 is still valid...
I'll keep an eye on ie9 to be sure it renders the borders correct in the future...
Comment #71
james.elliott CreditAttribution: james.elliott commentedUpdated image from IE9 preview #2
Comment #72
casey CreditAttribution: casey commented#58 needs a reroll
@aspilicious don't you forget alphabetic ordering ;)
Comment #73
oriol_e9gIstead of use:
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
It's shorter:
-webkit-border-radius: 4px 4px 0 0;
Comment #74
jbrown CreditAttribution: jbrown commented@oriol_e9g see #25 and #29
Comment #75
aspilicious CreditAttribution: aspilicious commentedOk lets stop this madness please...
SUMMARY
----------
- This patch *ONLY* put the border properties in the order we agreed #746768: Determine coding standards for CSS3 properties
- This patch DOES NOT put everything in alphabetical order.
WHY?
1) Has nothing to do with border radius in opera
2) We need to get this committed quick (cause it is assigned to me and I don't like this issue any more :p)
==> I pledge I'll take care of putting the css files in alphabetical order in new issues.
- We have short versions for moz and normal border radius, WE CAN'T DO IT FOR WEBKIT CAUSE SAFARI DOESN'T SUPPORT IT (so that must be readable for people shimming in :) )
Comment #76
jbrown CreditAttribution: jbrown commentedI think "We have short versions for moz and normal border radius, WE CAN'T DO IT FOR WEBKIT CAUSE SAFARI DOESN'T SUPPORT IT" should be in the patch.
Comment #77
aspilicious CreditAttribution: aspilicious commentedDid you open the patch? Cause I did that...
Comment #78
casey CreditAttribution: casey commented@jbrown probably ment a comment, but I think it is just fine.
Comment #79
jbrown CreditAttribution: jbrown commentedI mean put a comment in the CSS.
Comment #80
jbrown CreditAttribution: jbrown commentedsorry - cross post
Comment #81
seutje CreditAttribution: seutje commenteda comment at every occurrence? seems a bit over the top :x
other than that, 2 thumbs up!
Comment #82
grendzy CreditAttribution: grendzy commented#75: 746470_75_and_hopefully_last.patch queued for re-testing.
Comment #84
JacineIt's probably a good time to get back to this. Anyone want to re-roll?
Comment #85
aspilicious CreditAttribution: aspilicious commentedHere it is...
Comment #86
JacineThanks @aspilicious! I manually checked through all of Drupal's CSS files, and this looks good to me. There were 2 coding style issues (not introduced by you) that needed fixing, so I did that in the attached patch. I think this is ready.
Trailing white space.
Needed a space after the colon.
Powered by Dreditor.
Comment #87
aspilicious CreditAttribution: aspilicious commentedThis is rdy to GO!!!!
Comment #88
Jacine#86: 746470-86.patch queued for re-testing.
Comment #89
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedComment #90
aspilicious CreditAttribution: aspilicious commented1V? why?
Comment #91
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedSorry about that. Thought it was necessary to trigger the test bot. Why does it say "#86: 746470-86.patch queued for re-testing."?
Comment #92
aspilicious CreditAttribution: aspilicious commentedBecause Jacine retested my patch to see if it still apllied. She did this by pressing the retest button at the end of my patch :)
Comment #93
webchickSorry, not sure how this stayed off my radar for so long. I think I always meant to commit it and then a new RC was coming so I waited because I was nervous about breaking stuff.
Well, now release is coming and I'm still nervous about breaking stuff. ;) But I tried HEAD + this patch in Firefox 4 and Opera 11, and didn't see any ill effects. So I'm hoping that means it's good, or if not that we'll catch it in thorough testing between now and tuesday night.
Committed to HEAD!
Comment #94
andypostThe main trouble with this styles that by default IE9 uses "compatibility mode" to render documents by default. More info
Alt-9 in develoer menu (F12) allow switching to IE9 mode
So we need to output
<meta http-equiv="X-UA-Compatible" content="IE=9" />
to use default IE9 renderComment #95
aspilicious CreditAttribution: aspilicious commentedAndypost???? I don't see any problems with IE9... (beta nor development version)
It's working perfectly.
Only when I click "compatibility view" it gets the old style.
So I don't see any problems...
Comment #96
andypost@aspilicious Suppose my IE9 used "compatibility view" by default... I dont know how to change this default behavior
Comment #97
seutje CreditAttribution: seutje commentedBy default, IE9’s browser mode is IE9
if a user has set this to compatibility view, it would seem rude to ignore these user-settings and enforce IE9 mode