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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Full Table of Contents<br />

1 About the <strong>CSS2</strong> Specification . . . . . . . . . . 13 .<br />

1.1 Reading the specification . . . . . . . . . 13 .<br />

1.2 How the specification is organized . . . . . . . 13 .<br />

1.3 Conventions . . . . . . . . . . . . . 14 .<br />

1.3.1 Document language elements and attributes . . . 14 .<br />

1.3.2 CSS property definitions . . . . . . . . 14 .<br />

Value . . . . . . . . . . . . . 14 .<br />

Initial . . . . . . . . . . . . . 16 .<br />

Applies to . . . . . . . . . . . . 16 .<br />

Inherited . . . . . . . . . . . . 16 .<br />

Percentage values . . . . . . . . . . 16 .<br />

Media groups . . . . . . . . . . . 16 .<br />

1.3.3 Shorthand properties . . . . . . . . . 16 .<br />

1.3.4 Notes and examples . . . . . . . . . 17 .<br />

1.3.5 Images and long descriptions . . . . . . . 17 .<br />

1.4 Acknowledgments . . . . . . . . . . . 17 .<br />

1.5 Copyright Notice . . . . . . . . . . . . 18 .<br />

2 Introduction to <strong>CSS2</strong> . . . . . . . . . . . . 21 .<br />

2.1 A brief <strong>CSS2</strong> tutorial for HTML . . . . . . . . 21 .<br />

2.2 A brief <strong>CSS2</strong> tutorial for XML . . . . . . . . . 23 .<br />

2.3 The <strong>CSS2</strong> processing model . . . . . . . . . 25 .<br />

2.3.1 The canvas . . . . . . . . . . . 26 .<br />

2.3.2 <strong>CSS2</strong> addressing model . . . . . . . . 26 .<br />

2.4 CSS design principles . . . . . . . . . . 26 .<br />

3 Conformance: Requirements and Recommendations . . . . 29 .<br />

3.1 Definitions . . . . . . . . . . . . . 29 .<br />

3.2 Conformance . . . . . . . . . . . . 32 .<br />

3.3 Error conditions . . . . . . . . . . . . 32 .<br />

3.4 The text/css content type . . . . . . . . . 33 .<br />

4 <strong>CSS2</strong> syntax and basic data types . . . . . . . . . 35 .<br />

4.1 Syntax . . . . . . . . . . . . . . 35 .<br />

4.1.1 Tokenization . . . . . . . . . . . 35 .<br />

4.1.2 Keywords . . . . . . . . . . . . 38 .<br />

4.1.3 Characters and case . . . . . . . . . 38 .<br />

4.1.4 Statements . . . . . . . . . . . 39 .<br />

4.1.5 At-rules . . . . . . . . . . . . 39 .<br />

4.1.6 Blocks . . . . . . . . . . . . 40 .<br />

4.1.7 Rule sets, declaration blocks, and selectors . . . 40 .<br />

4.1.8 Declarations and properties . . . . . . . 41 .<br />

4.1.9 Comments . . . . . . . . . . . 42 .<br />

4.2 Rules for handling parsing errors . . . . . . . . 42 .<br />

4.3 Values . . . . . . . . . . . . . . 43 .<br />

4.3.1 Integers and real numbers . . . . . . . . 43 .<br />

4.3.2 Lengths . . . . . . . . . . . . 43 .<br />

4.3.3 Percentages . . . . . . . . . . . 46 .<br />

4

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

Saved successfully!

Ooh no, something went wrong!