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

Hello Simon,

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

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

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

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.

   http://books.spec.whatwg.org/#leaders

Can you see cases not covered by this?

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

Received on Tuesday, 22 October 2013 12:20:35 UTC