Re: [css3-text-layout] New editor's draft - margin-before/after/start/end etc.

These properties were recently added to the editor's draft of CSS Text
Layout Module [1]:

   margin-before, margin-after, margin-start, margin-end 
   padding-before, padding-after, padding-start, padding-end 
   border-before-width, border-after-width, border-start-width, border-end-width 
   border-before-style, border-after-style, border-start-style, border-end-style 
   border-before-color, border-after-color, border-start-color, border-end-color 
   border-before, border-after, border-start, border-end 
   logical-width, logical-height 
   min-logical-width, min-logical-height 
   max-logical-width, max-logical-height 

I understand that writing-direction-based naming has been requested
[2]. However, I do not believe that adding 30 new properties to CSS is
the right solution to the problem at hand. These 30 new properties,
which cascade/inherit separately on each element will incur
significatn costs to implementations, especially on constrained
devices.

I would like to explore how the issues at hand can be addressed
through other solutions. For example, by using the :lang selector:

  p { 
    margin: 10px 20px;
  }

  p:lang(ja) {
    writing-mode: tb-rl;
    margin: 20px 10px;
  }

[1] http://dev.w3.org/csswg/css3-text-layout/
[2] http://lists.w3.org/Archives/Public/www-style/2010Apr/0278.html

Cheers,

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Tuesday, 25 May 2010 16:57:09 UTC