W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: css-shapes] Comments on CSS Shapes ED

From: Håkon Wium Lie <howcome@opera.com>
Date: Fri, 13 Sep 2013 16:04:33 +0200
Message-ID: <21043.7025.1345.308126@gargle.gargle.HOWL>
To: Alan Stearns <stearns@adobe.com>
Cc: "www-style\@w3.org" <www-style@w3.org>
Alan Stearns wrote:

 > >So, what would your code look like that would produce this example?
 > >
 > >  http://dev.w3.org/csswg/css-page-floats/exclusions-dropcap.png
 > That's my example, you know.

I know, I shamelessly stole it :-) But I couldn't find it in the ED so
I thought it was gone. But it's here, along with the sample code:


So, I guess the code needed to produce with an explicit shape is:

      wrap-flow: right;
      shape-outside: polygon(0px,0px 280px,0px 220px,125px 0px,125px);
     <p><span id="dropMany">Many</span> instances ...</p>
     <p>The text ....</p>

My preferred solution would be:

    .dropcap {      
      float: left;
      exclude-level: 0.5;
      shape-margin: 0.2em; /* or something */
    <p><span id="dropcap">Many</span> instances ...</p>
    <p>The text ....</p>

First, I think my code is simpler to read, write and edit. Second,
there's a big saving in applying the same code to all glyphs -- in
your case you need to write glyph-specific code with few opportunities
for reuse.

I think we should ask authors what they prefer to write.

              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Friday, 13 September 2013 14:05:13 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC