LWN.net Logo

McGrath: Proposal for a new Fedora project

McGrath: Proposal for a new Fedora project

Posted Oct 4, 2010 6:04 UTC (Mon) by ajf (subscriber, #10844)
In reply to: McGrath: Proposal for a new Fedora project by mmcgrath
Parent article: McGrath: Proposal for a new Fedora project

One thing we really ought to learn from the success of the iPhone and (to a lesser extent) Android is that there's more to the web than the web browser. You just don't have to sacrifice the unquestionable superiority of native applications to "be able to access [your] content from everywhere".

As for ints, floats and strings, working in CSS compared to the layout model supported by any decent native toolkit is like having floats (CSS pun intended) but no ints. Sure, you can do a lot with floats, but it's a hell of a lot more work than it ought to be, and no matter how hard you try you still get mysterious and unprofessional-looking errors in weird edge cases.


(Log in to post comments)

McGrath: Proposal for a new Fedora project

Posted Oct 4, 2010 15:12 UTC (Mon) by flammon (guest, #807) [Link]

Please have a look at the CSS3 Template Layout Module and let me know if you're opinion still holds. http://www.w3.org/TR/css3-layout/

Screenshot of layout

Here's the cSS

@page :first {
  display: "A  A  A  A  A  A  A  A  A" / 5cm
           ".  .  .  .  .  .  .  .  ." / 0.25cm
           "B  .  C  C  C  C  C  C  C" / *
           "B  .  C  C  C  C  C  C  C" / *
           "B  .  C  C  C  C  C  C  C" / *
           "B  .  C  C  C  C  C  C  C" / *
           "B  .  C  C  C  C  C  C  C" / *
           "B  .  D  D  D  D  D  D  D" / *
           "B  .  D  D  D  D  D  D  D" / *
           "B  .  E  E  E  .  F  F  F" / *
           "B  .  E  E  E  .  F  F  F" / *
           "B  .  E  E  E  .  F  F  F" / *
            * 3em * 3em * 3em * 3em *
}
h1 {position: a; border-bottom: thick; margin-bottom: 1.5em}
#toc {position: b; margin-right: -1.5em; border-right: thin;
  padding-right: 1.5em}
#leader {position: c; columns: 4; column-gap: 3em}
#art1 {position: d; columns: 4; column-gap: 3em; border-top: thin}
#art2 {position: e; columns: 2; column-gap: 3em}
#art3 {position: f; columns: 2; column-gap: 3em}

That's quite powerful and very easy to update. What other toolkit allows for such ease?

McGrath: Proposal for a new Fedora project

Posted Oct 4, 2010 22:57 UTC (Mon) by ajf (subscriber, #10844) [Link]

I'm familiar with that, and I think it has been unfairly derided as "ASCII art". But I also think I know why you had to post a link to a screenshot instead of a web page containing that in its stylesheet so I could see it for myself: because nobody has actually implemented this proposal. Even positive comment describes it as "How we'll lay out websites in 2016".

McGrath: Proposal for a new Fedora project

Posted Oct 5, 2010 15:20 UTC (Tue) by flammon (guest, #807) [Link]

I doubt it will be 2016 before the relevant browsers implement it. Browser development is starting to heat up again and they all seem to want to follow the W3C specs. Even IE9! My guess is that within 3 years we'll see CSS Template Layout implemented in Gecko, Webkit and Trident.

For now we have Flexible Box Layout Module which is still quite nice.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds