CSS shorthands!
By David Håsätherhzr. Thursday, November 24, 2011 12:13:32 AM
Have you ever tried to debug something like border: 1px solid rgb(255, 0, 0); in Opera Dragonfly's CSS inspector, only to be greeted by a bunch of expanded properties?
No more! Opera Dragonfly now has support for CSS shorthands, so the previous declaration will now be presented like this:
Values that have been partially overridden will also be shown in this compact shorthand view:
The implementation is not fully done yet. For example, the color swatch isn't added to a color if it's part of a shorthand value. Also, default values for things like the background property will always be visible. Both of these issues will be fixed.
And if you're a fan of expanded properties, you can still right-click in the CSS inspector and enable "Expand shorthands".
We would appreciate a lot of testing on this experimental release, as a lot of code has been refactored. So edit away, disable declarations and so on, and report back if something breaks.
We've also added per-language builds available as ZIP files for offline use.


Daniel Davistagawa # Thursday, November 24, 2011 3:25:41 PM
Thanks!
d-u-a-l # Thursday, November 24, 2011 4:55:37 PM
border: 2px rgb(0, 0, 0);
border-bottom: 2px rgb(0, 0, 0);
border-bottom-width: 2px;
border-left: 2px rgb(0, 0, 0);
border-left-width: 2px;
border-right: 2px rgb(0, 0, 0);
border-right-width: 2px;
border-top: 2px rgb(0, 0, 0);
border-top-width: 2px;
border-width: 2px;
margin: 0px 0px 7px;
margin-bottom: 7px;
padding: 1px;
padding-bottom: 1px;
padding-left: 1px;
padding-right: 1px;
padding-top: 1px;
And there's still very annoying bug in Scripts, when you click on plus to expand contents of some object in right panel and get most text of Dragonfly window selected
Win 7 x64, Opera 10.60.1147
David Håsätherhzr # Thursday, November 24, 2011 5:04:27 PM
Originally posted by d-u-a-l:
What's the issue?
Abhinavdecodedthought # Thursday, November 24, 2011 5:13:10 PM
Unregistered user # Thursday, November 24, 2011 5:14:47 PM
Eli Mitchellcyberstream # Thursday, November 24, 2011 8:08:23 PM
I agree with what @siavash is requesting. My previous comment request.
Siavash Keshmiritenet # Thursday, November 24, 2011 8:30:04 PM
background has problem in this version , dragonfly shows
background: none 0% 0%/auto repeat scroll padding-box border-box rgb(223, 223, 223);
instead this:
background:#dfdfdf;
for example
David Håsätherhzr # Thursday, November 24, 2011 10:59:31 PM
Originally posted by decodedthought:
As mentioned, to get the expanded properties back, just right-click in the CSS inspector and enable "Expand shorthands".Originally posted by anonymous:
Originally posted by tenet:
Right, and both of these issues are mentioned in the blog post.Pablo MendozaPabloMendoza # Friday, November 25, 2011 2:36:26 AM
RobMintsoft # Friday, November 25, 2011 8:04:19 AM
D1sasterp1ece # Friday, November 25, 2011 2:07:36 PM
Unregistered user # Friday, November 25, 2011 3:39:40 PM
Spadar ShutSpShut # Friday, November 25, 2011 4:15:09 PM
.center .column-two{
column-count:2;
column-gap:81px;
column-width:356px;
column-rule: 1px dashed #ccc;
}
and this is what I see in Dragonfly:
.center .column-two {
column-rule: 1px dashed rgb(204, 204, 204);
columns: ;
}
And what's more, column-gap doesn't work, but if I write it by hand in dragonfly - the rule gets applied.
Martin RauscherHades32 # Friday, November 25, 2011 6:55:55 PM
Maciej Bałutambaluta # Friday, November 25, 2011 8:48:26 PM
David Håsätherhzr # Saturday, November 26, 2011 12:30:10 PM
Originally posted by SpShut:
Thanks, I can see issue. Will be fixed in the next release.Will look into that.Unregistered user # Monday, November 28, 2011 2:23:17 AM
LLleonardolaporte # Monday, November 28, 2011 8:03:53 AM
Excellent initiative.
All clear now!
Spadar ShutSpShut # Monday, November 28, 2011 10:09:04 AM
Originally posted by SpShut:
Sorry for misleading, it was my fault, in "column-gap" the "c" letter was cyrillic "с", therefore the rule didn't work.
Unregistered user # Monday, November 28, 2011 4:03:52 PM
FataL # Monday, November 28, 2011 7:10:48 PM
But most useful for debugging is true CSS source (like in Web Inspector).
I would like to see a color value the way it was assigned (hex, rgb, rgba, hsl, hsla, color name) and not interpreted value.
The closer you get to the source -- the better. Remember that web developers are not debugging browser engine, they are debugging their web pages.
Dragonfly:
textarea, input, select, button { font: inherit inherit inherit inherit/inherit inherit; }Firebug, Web Inspector, actual CSS source:textarea, input, select, button { font: inherit; }Only Opera and IE still show px after zero: 0px. This is worsening readability of code.
АндрійSATAB # Friday, December 2, 2011 8:01:38 PM
text-shadow:....
}
bug in Opera Mini!
Unregistered user # Tuesday, December 6, 2011 6:12:11 AM
Rafald.i.z. # Wednesday, December 7, 2011 6:08:05 PM