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

[css3-books] Re: [css3-gcpm] Leaders layout corner cases

From: Håkon Wium Lie <howcome@opera.com>
Date: Tue, 22 Oct 2013 14:20:01 +0200
Message-ID: <21094.28017.778111.630168@gargle.gargle.HOWL>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style@w3.org
Hello Simon,

 > What happens if the content after leader() takes more than one line?

Let's see. Here's an example from the spec:

  .name::after { content: leader(dotted) }
  <div class="entry">
  <span class="name">John Doe</span>
  <span class="number">123456789</span>

Now, if the last span element takes up more than one line (e.g., if
there is a <br> element inside it), the leader should not be affected
-- the leader will only appear at first line.

 > What happens when leader() is used more than once in the same paragraph 
 > or in the same line?

The space is distributed according to this rule:

   Distribute the empty space between the leaders on the line. Glyphs
   must not be shown partially. All leaders on the line should, to the
   extent possible, have the same length. This may not always be
   possible as the minimum leader length must be honored.


Can you see cases not covered by this?

              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 22 October 2013 12:20:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:03 UTC