31.03.2014 Views

Cascading Style Sheets, Level 2 - World Wide Web Consortium

Cascading Style Sheets, Level 2 - World Wide Web Consortium

Cascading Style Sheets, Level 2 - World Wide Web Consortium

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.

Full Table of Contents<br />

1 About the CSS2 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 CSS2 . . . . . . . . . . . . 21 .<br />

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

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

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

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

2.3.2 CSS2 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 CSS2 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!