22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DIV<br />

I didn’t like the play,<br />

but then I saw it<br />

under adverse<br />

conditions − the<br />

curtain was up.<br />

− Groucho Marx<br />

BLOCKQUOTE<br />

Setting ’overflow’ to ’hidden’ for the DIV element, on the other hand, causes<br />

the BLOCKQUOTE to be clipped by the containing block:<br />

I didn’t li<br />

but then<br />

under ad<br />

condition<br />

A value of ’scroll’ would tell UAs that support a visible scrolling mechanism to<br />

display one so that users could access the clipped content.<br />

11.1.2 Clipping: the ’clip’ property<br />

A clipping region defines what portion of an element’s rendered content [p. 30] is<br />

visible. By default, the clipping region has the same size and shape as the<br />

element’s box(es). However, the clipping region may be modified by the ’clip’<br />

property.<br />

’clip’<br />

Value: | auto | inherit<br />

Initial: auto<br />

Applies to: block-<strong>level</strong> and replaced elements<br />

Inherited: no<br />

Percentages: N/A<br />

Media: visual<br />

The ’clip’ property applies to elements that have a ’overflow’ property with a<br />

value other than ’visible’. Values have the following meanings:<br />

auto<br />

The clipping region has the same size and location as the element’s box(es).<br />

<br />

In <strong>CSS2</strong>, the only valid value is: rect ( <br />

) where , , and specify offsets from the<br />

respective sides of the box.<br />

147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!