W3C home > Mailing lists > Public > www-style@w3.org > May 2010

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

From: Håkon Wium Lie <howcome@opera.com>
Date: Tue, 25 May 2010 18:56:29 +0200
Message-ID: <19452.317.365704.396411@gargle.gargle.HOWL>
To: www-style@w3.org
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

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


              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 25 May 2010 16:57:09 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:46 UTC