Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aspilicious’s picture

version 2: leaves jquery ui as it is...

Will be updated later

aspilicious’s picture

You need the latest version 10.50 to test this

Jacine’s picture

Status: Needs review » Reviewed & tested by the community

AWESOME! This is great! Thanks for being on top of this :D

Status: Reviewed & tested by the community » Needs work

The last submitted patch, opera_border_radius_v2.patch, failed testing.

aspilicious’s picture

Status: Needs work » Needs review

#1: opera_border_radius_v2.patch queued for re-testing.

Jacine’s picture

Something wrong with the bot? I get why the first one failed (no new line at EOF), but don't know why this would fail.

aspilicious’s picture

Bot glitch, retesting it :)

jbrown’s picture

Status: Needs review » Needs work

The 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;

aspilicious’s picture

Ow ok, gona fix that

Jacine’s picture

That 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.

Jacine’s picture

Err wait, that wasn't my code. Sorry I was referring to something else I had done recently.

aspilicious’s picture

Status: Needs work » Needs review
FileSize
5.67 KB

version 3

jbrown’s picture

Jacine: 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.

Jacine’s picture

Agreed... :)

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):

.form-textarea-wrapper textarea {
  margin: 0;
  width: 100%;
  display: block;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

Shall we do that in this patch or create a separate issue? We should add it to the CSS Coding standards too :)

jbrown’s picture

It 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.

aspilicious’s picture

FileSize
190.82 KB

It even works for IE9 technical preview!

KICKASS!

And even fieldsets are still working with IE9!

even more KICKASS!

jbrown’s picture

Nice!

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?

aspilicious’s picture

FileSize
206.37 KB

And a screenshot for jbrown

aspilicious’s picture

about #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!

jbrown’s picture

Title: Opera doesn't show border radius » Add border-radius for IE9 / Opera 10.50

We 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.

Jacine’s picture

aspilicious’s picture

don'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

aspilicious’s picture

Is this rtbc now?

in overlay: appearance->settings isn't working but I guess that has something to do with jquery UI 1.7

Jacine’s picture

I 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

jbrown’s picture

FileSize
5.54 KB

Updated 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.

jbrown’s picture

#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.

Jacine’s picture

@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?

jbrown’s picture

I think the standards based CSS3 property should come first.

Jacine’s picture

Status: Needs review » Needs work

The shorthand does not work for -webkit-border-radius in Safari.

jbrown’s picture

Status: Needs work » Needs review

Okay - I tested it on Chrome.

So we are back to #12.

Jacine’s picture

Status: Needs review » Reviewed & tested by the community

Marking RTBC for the patch in #12.

sun’s picture

Very nice.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

David_Rothstein’s picture

+  border-radius: 7px;
   -moz-border-radius: 10px;
   -webkit-border-radius: 7px;

So 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 :)

jbrown’s picture

FileSize
911 bytes

They aren't supposed to be different.

jbrown’s picture

Status: Fixed » Needs review
sun’s picture

Status: Needs review » Needs work

Also note that we now should re-order the properties according to the conclusion found in #746768: Determine coding standards for CSS3 properties

aspilicious’s picture

Assigned: Unassigned » aspilicious

I take that one

aspilicious’s picture

1) 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

  -moz-border-radius-topleft: 5px;
  -moz-border-radius-bottomleft: 5px;

vs

  -moz-border-radius: 5px 0 0 5px;
aspilicious’s picture

Status: Needs work » Needs review
sun’s picture

The usual inheritance rules apply. Thus, if we don't intend to inherit any values, then we can use the shorthand properties.

+++ themes/seven/style.css	22 Mar 2010 10:35:36 -0000
@@ -140,23 +140,22 @@
+  border-radius:0 0 10px 10px;

Missing space here.

146 critical left. Go review some!

jbrown’s picture

#39 1) no - see #25 #29

aspilicious’s picture

Can someone proove #42 with screenshots and my new patch (I can't find any failures).
See my screenshot...

sun’s picture

+++ modules/shortcut/shortcut.css	22 Mar 2010 14:18:34 -0000
@@ -79,19 +79,19 @@
   -moz-border-radius-topright: 5px;
   -moz-border-radius-bottomright: 5px;
   -webkit-border-top-right-radius: 5px;
   -webkit-border-bottom-right-radius: 5px;
+  border-top-right-radius: 5px;
+  border-bottom-right-radius: 5px;

+++ modules/overlay/overlay-parent.css	22 Mar 2010 14:18:34 -0000
@@ -119,18 +119,18 @@
   -moz-border-radius: 8px 8px 0 0;
   -webkit-border-top-left-radius: 8px;
   -webkit-border-top-right-radius: 8px;
+  border-radius: 8px 8px 0 0;

Why not use shorthands for all of these?

+++ themes/seven/style.css	22 Mar 2010 14:18:35 -0000
@@ -140,23 +140,19 @@
+  -webkit-border-top-left-radius: 0 0 10px 10px;

@@ -295,16 +291,15 @@
+  -webkit-border-top-left-radius: 8px 8px 0 0;

Though, those cannot work. ;)

147 critical left. Go review some!

aspilicious’s picture

LOOOL ok... true...

Lets fix those first ;)

aspilicious’s picture

Another try.

I guess safari and chrome (newest version all are using the new standard).
Cause it rendered well on those with those freaking errors.

jbrown’s picture

I 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.

aspilicious’s picture

The 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.

seutje’s picture

@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

sgabe’s picture

Tested #46 and looks fine, except in IE9, but I don't think that is important now.

aspilicious’s picture

Ow your safari picture prooves that we can't use the shorthand version for safari...
Don't like that :(

sgabe’s picture

Oops...I didn't notice first. Sorry... It's good that I attached screenshots, so you could spot it.

Jacine’s picture

Status: Needs review » Needs work

Patch in #46 needs work for the -webkit shorthand.

seutje’s picture

yea, webkit doesn't support this shorthand:

+  -webkit-border-radius: 0 5px 5px 0;

-> http://gyazo.com/ab78b7d050b63d67d3086003d1a44874.png

aspilicious’s picture

Only older versions of safari don't support it. But I'll try to fix it when I have more time :)

seutje’s picture

heh? just tried latest win chrome, safari and even webkit nightly, none of these support that shorthand

+  -moz-border-radius: 0 5px 5px 0;

also has very little effect

aspilicious’s picture

On my machine it was working gonna reroll it now, don't panic ;).
I'll write them again...

But for the mozilla:

-moz-border-radius is a shortcut to set the four properties -moz-border-radius-topleft, -moz-border-radius-topright, -moz-border-radius-bottomright and -moz-border-radius-bottomleft.
-moz-border-radius is Mozilla's implementation of the border-radius properties in CSS3. Mozilla implements the standard except it handles <percentage> values in a different way.

AND

-moz-border-radius: 4px 3px 6px / 2px 4px;

/* is equivalent to: */

-moz-border-radius-topleft:     4px 2px;
-moz-border-radius-topright:    3px 4px;
-moz-border-radius-bottomright: 6px 2px;
-moz-border-radius-bottomleft:  3px 4px;

so nothing wrong with shorthand mozilla...

aspilicious’s picture

Status: Needs review » Needs work
FileSize
12.43 KB

This is a link to support what I asaid in 57: https://developer.mozilla.org/en/CSS/-moz-border-radius

AND

Differences between -moz-border-radius and -webkit-border-radius
<percentage> values are are implemented in a non-standard way in Gecko (Firefox) and not supported by Safari/WebKit.
Safari/WebKit supports only one value for all 4 corners. For different radii the long form properties must be used.
Safari/WebKit doesn't support the slash / notation. If two values are specified, an elliptical border is drawn on all 4 corners.

If you see something unusual in firefox, then I made an error in converting the border radius.

And here is an (untested) patch...

aspilicious’s picture

Status: Needs work » Needs review

The last submitted patch, border_fix.patch, failed testing.

aspilicious’s picture

Status: Needs work » Needs review

#58: border_fix.patch queued for re-testing.

aspilicious’s picture

Hmmm sun, jacine and others, watch this video: http://live.visitmix.com/MIX10/Sessions/CL27.
Fast forward to 22 minutes.

james.elliott’s picture

Status: Needs review » Needs work
FileSize
89.52 KB
83.04 KB
76.18 KB
102.19 KB
103.87 KB
87.41 KB

It looks like patch in #58 fixed everything except IE9

aspilicious’s picture

Hmm strange things happening in IE9....
lets try to find the issue!

aspilicious’s picture

I 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

seutje’s picture

not 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

sun’s picture

It looks the same in FF 3.5. Never had problems with the -moz-border-radius shorthand notion.

aspilicious’s picture

FileSize
115.74 KB

FF 3.0 with patch, seems to work...
Patch works only IE9 does weird things but IE9 isn't alpha yet...

seutje’s picture

ok thanks, guess I was imagining incompatibilities again :x

aspilicious’s picture

Status: Needs work » Needs review

I think patch #58 is still valid...
I'll keep an eye on ie9 to be sure it renders the borders correct in the future...

james.elliott’s picture

FileSize
82.45 KB

Updated image from IE9 preview #2

casey’s picture

Status: Needs review » Needs work

#58 needs a reroll

@aspilicious don't you forget alphabetic ordering ;)

oriol_e9g’s picture

Istead of use:
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
It's shorter:
-webkit-border-radius: 4px 4px 0 0;

jbrown’s picture

@oriol_e9g see #25 and #29

aspilicious’s picture

Status: Needs work » Needs review
FileSize
6.05 KB

Ok 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 :) )

jbrown’s picture

I 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.

aspilicious’s picture

Did you open the patch? Cause I did that...

casey’s picture

Status: Needs review » Reviewed & tested by the community

@jbrown probably ment a comment, but I think it is just fine.

jbrown’s picture

Status: Reviewed & tested by the community » Needs review

I mean put a comment in the CSS.

jbrown’s picture

Status: Needs review » Reviewed & tested by the community

sorry - cross post

seutje’s picture

a comment at every occurrence? seems a bit over the top :x

other than that, 2 thumbs up!

grendzy’s picture

#75: 746470_75_and_hopefully_last.patch queued for re-testing.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 746470_75_and_hopefully_last.patch, failed testing.

Jacine’s picture

It's probably a good time to get back to this. Anyone want to re-roll?

aspilicious’s picture

Status: Needs work » Needs review
FileSize
10.19 KB

Here it is...

Jacine’s picture

FileSize
10.75 KB

Thanks @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.

+++ themes/seven/jquery.ui.theme.css	6 Dec 2010 20:37:22 -0000
@@ -317,7 +319,8 @@
+  -webkit-border-radius: 10px;  ¶

Trailing white space.

+++ themes/seven/style.css	6 Dec 2010 20:37:22 -0000
@@ -164,12 +164,12 @@
+  border-radius:0 0 10px 10px;

Needed a space after the colon.

Powered by Dreditor.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

This is rdy to GO!!!!

Jacine’s picture

#86: 746470-86.patch queued for re-testing.

Tor Arne Thune’s picture

Status: Reviewed & tested by the community » Needs review
aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

1V? why?

Tor Arne Thune’s picture

Sorry about that. Thought it was necessary to trigger the test bot. Why does it say "#86: 746470-86.patch queued for re-testing."?

aspilicious’s picture

Because Jacine retested my patch to see if it still apllied. She did this by pressing the retest button at the end of my patch :)

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Sorry, 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!

andypost’s picture

The 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 render

aspilicious’s picture

Andypost???? 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...

andypost’s picture

@aspilicious Suppose my IE9 used "compatibility view" by default... I dont know how to change this default behavior

seutje’s picture

By 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.