Re: [CSS3 Text] request: line-padding

>> 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.

"wrapped-line-style:clone"?
"inline-break-style:copy"?
I'll get my coat.

Cheers
K


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.



-- 
Kenneth
http://kenneth.kufluk.com
kenneth@kufluk.com

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