----
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Hi,
I'm currently trying to eliminate all uses of -webkit-box in favor of
the newer, cross-browser and not deprecated -webkit-flex.
I've eliminated the uses inside of WebCore; I'll be working on Chrome
UI code next, although there's a lot of changes to be made there.
So, I would like to ask you to not use -webkit-box in new code.
-webkit-flex works very similar, but does use different CSS property
names. See https://developer.mozilla.org/en-US/docs/CSS/Tutorials/Using_CSS_flexible_boxes
for an introduction or http://dev.w3.org/csswg/css3-flexbox/ for the
spec.
Common changes:
display: -webkit-box -> display: -webkit-flex
-webkit-box-align: start -> -webkit-align-items: flex-start
-webkit-box-align: center -> -webkit-align-items: center
-webkit-box-pack: start -> -webkit-justify-content: flex-start
-webkit-box-pack: center -> -webkit-justify-content: center
-webkit-box-orient: vertical -> -webkit-flex-direction: column
If anyone wants to help with converting the existing code, that'd be
appreciated too!
-christian
--
On Fri, Mar 15, 2013 at 4:03 PM, Dan Beam <db...@chromium.org> wrote:
>> I'm currently trying to eliminate all uses of -webkit-box in favor of
>> the newer, cross-browser and not deprecated -webkit-flex.
>
>
> Have you emailed webkit-dev@ about removing it from the platform? If it's
> going to be supported indefinitely in the platform I don't why we'd convert
> existing code... all 776 occurrences [1]
On Fri, Mar 15, 2013 at 4:03 PM, Dan Beam <db...@chromium.org> wrote:
>> I'm currently trying to eliminate all uses of -webkit-box in favor of
>> the newer, cross-browser and not deprecated -webkit-flex.
>
>
> Have you emailed webkit-dev@ about removing it from the platform? If it's
> going to be supported indefinitely in the platform I don't why we'd convert
> existing code... all 776 occurrences [1]
Well part of the problem is that we can't even measure how popular
this property is right now, because our current feature observer code
would count the chrome UI together with the web. Knowing how popular
this would clearly be a prerequisite for removing it from the
platform.
That said, the flexbox developers (Ojan/Tony) do want to remove the
deprecated flexbox code (i.e. -webkit-box) if possible.
(Your git grep has a few problems, by the way... it will also match
-webkit-box-shadow and -webkit-box-reflect, which are unrelated. It
will match things like -webkit-box-flex which are related, but
arguably should not count as a separate usage. And it misses other
directories which use these properties too.)
-christian
I don't expect this code to always work as-is. But even if it did,
-webkit-box is old, unmaintained code which does have bugs. Better to
switch to code where bugs actually get fixed.
In any case, why the objection to the presubmit? That one only catches new code.
On Fri, Mar 15, 2013 at 4:49 PM, Christian Biesinger <cbies...@chromium.org> wrote:
I don't expect this code to always work as-is. But even if it did,
-webkit-box is old, unmaintained code which does have bugs. Better to
switch to code where bugs actually get fixed.One's old is another's stable. The NTP (and others) adopted -webkit-flex too early and had to fix multiple regressions because of property renames (our fault). I've been told it wont change much any more.
In any case, why the objection to the presubmit? That one only catches new code.The way we check for new code is not particularly 1) fast (svn diff is slow, especially on Windows), 2) accurate (i.e. change in indent, moving around code). That said, my main objection is with refactoring existing code. If -webkit-flex is the supported way forward, then let's check "new" code.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Are these technical reasons still valid for current versions?
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.