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

Re: [CSS3 Text] request: line-padding

From: Kenneth Kufluk <kenneth@kufluk.com>
Date: Wed, 20 Jan 2010 20:48:37 +0000
Message-ID: <e30c14e1001201248q5a804b76i13e8ab4cd0d1cd39@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org
>> It sounds to me like you are describing a background pattern.
The background pattern hack would not work if set on the inline
element.  It would work on the container, but then would form a box,
which is not my desired effect.

>>The main problem with this is that ::first-line is already pretty screwed up and crazy
Granted.  But that one is a bit arbitrary IMHO.  These clones on the
other hand are proper boxes, and to me it seems they should therefore
be addressable.  Even though their number is dependent on other CSS
rules...  Eur, yeah, yeah it gets nasty.  I'll let it go.

Sounds like the "box-decoration-break: clone;" is what I was after.
My only final desire would be to name it something I'm likely to find
in a month of Sundays.
But I suspect that one's been argued to death already here, so I'll
quit while I'm ahead.

I'll get my coat.


2010/1/20 Brad Kemper <brad.kemper@gmail.com>:
> On Jan 20, 2010, at 9:49 AM, fantasai wrote:
>> On 01/20/2010 08:57 AM, Brad Kemper wrote:
>>> It sounds to me like you are describing a background pattern.
>>> Create an image 1px wide, and as tall as two lines of text. Make the
>>> top half of the image one color and the bottom half a different color,
>>> and repeat it across the whole multi-line block. Use 'background-size'
>>> to keep it the height of 2 lines of text (3em in your example), maybe
>>> starting with a larger-than-needed image so that it scales well.
>> That's a really hackish way of doing it,
> Funny, I was thinking that adding a span element and a new pseudo-element in order to get a repeating stripe pattern was hackish.
>> and it'll break if there's any
>> content on any lines that's taller than the default line height.
> True. But in many cases where striping is useful (code listings, for instance), that would be rare, or controllable.

Received on Wednesday, 20 January 2010 20:49:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:31 UTC