Sideway
output.to from Sideway
Draft for Information Only

Content

Regular At-Rule
 @import At-Rule
  Examples
 @charset At-Rule
  Examples
 @namespace At-Rule
  Examples

Regular At-Rule

A regular at-rule is a CSS rule designed specifically for initializing the CSS engine at the startup stage. Therefoe regular @rule can be used as a CSS statement to instruct how the CSS engine to behave.

@import At-Rule

Features

'@import'1,2,2.1last updated 11 Jul 2016

to specify those to be included external style sheets by importing

Form: @import url; | @import url list-of-media-queries;Parameter: @import@import at-rule with identifier "import"url A <string> or a <url> representing the location of the resource to import. The URL may be absolute or relative. list-of-media-queries A comma-separated list of media queries conditioning the application of the CSS rules defined in the linked URL. If the browser does not support any these queries, it does not load the linked resource. Syntax: @import [ &lt;string> | &lt;url> ] [ &lt;media-query-list> ]?; <q class="dbl"> <i><u>where </u> &lt;media-query-list> = &lt;media-query># </i> <i><u>where </u> &lt;media-query> = &lt;media-condition> | [ not | only ]? &lt;media-type> [ and &lt;media-condition-without-or> ]? </i> <i><u>where </u> &lt;media-condition> = &lt;media-not> | &lt;media-and> | &lt;media-or> | &lt;media-in-parens><br /> &lt;media-type> = &lt;ident><br /> &lt;media-condition-without-or> = &lt;media-not> | &lt;media-and> | &lt;media-in-parens> </i> <i><u>where </u> &lt;media-not> = not &lt;media-in-parens><br /> &lt;media-and> = &lt;media-in-parens> [ and &lt;media-in-parens> ]+<br /> &lt;media-or> = &lt;media-in-parens> [ or &lt;media-in-parens> ]+<br /> &lt;media-in-parens> = ( &lt;media-condition> ) | &lt;media-feature> | &lt;general-enclosed> </i> <i><u>where </u> &lt;media-feature> = ( [ &lt;mf-plain> | &lt;mf-boolean> | &lt;mf-range> ] )<br /> &lt;general-enclosed> = [ &lt;function-token> &lt;any-value> ) ] | ( &lt;ident> &lt;any-value> )<br /> </i> <i><u>where </u> &lt;mf-plain> = &lt;mf-name> : &lt;mf-value><br /> &lt;mf-boolean> = &lt;mf-name><br /> &lt;mf-range> = &lt;mf-name> [ '&lt;' | '>' ]? '='? &lt;mf-value> | &lt;mf-value> [ '&lt;' | '>' ]? '='? &lt;mf-name> | &lt;mf-value> '&lt;' '='? &lt;mf-name> '&lt;' '='? &lt;mf-value> | &lt;mf-value> '>' '='? &lt;mf-name> '>' '='? &lt;mf-value> </i> <i><u>where </u> &lt;mf-name> = &lt;ident><br /> &lt;mf-value> = &lt;number> | &lt;dimension> | &lt;ident> | &lt;ratio> </i></q>Remarks: @import at-rule is used to import style rules from other specified style sheets<br /> @import at-rule must be placed after @charset at-rule and before all other types of CSS rules such that required style rules are retrieved before any rendering style rules.<br /> @import at-rule is a regular @rule and cannot be placed inside conditional group at-rules.<br /> @import at-rule with media-query is a conditional import, otherwise the import is unconditional. Specifying all for the medium has the same effect.<br /> css1:initial;css2.1:support &lt;string>;Media Queries:support media-queries.Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/@import

Examples

  • css1: <url>

    @import url(http://sideway.hk/style/default/std01b.css)
  • css1: <url>

    @import url(std01b.css)
  • css2,2.1: <string>

    @import "common.css"
  • css2,2.1: <url>

    @import url("common.css")
  • css2,2.1: <url> @media wrapped

    @import url("common.css") print, tv
  • css2,2.1,Media Queries: <url> with Media queries

    @import url("common.css") print, tv and (orientation:landscape)

@charset At-Rule

Features

'@charset'2.1last updated 08 Mar 2019

to specify the character encoding of the style sheet itself

Form: @charset char_setParameter: @charset@charset at-rule with identifier "charset"char_set A double-quoted<string> used to specify the character encoding of the style sheet itsel. The string of charset must be the name of a web-safe character encoding defined in the IANA-registry. The form of the statement is exactly one space character (U+0020) after the '@charset' at-rule, and immediately terminated with a semicolon. Syntax: @charset "&lt;charset>";Remarks: If several names are associated with an encoding, only the one marked with preferred must be used.<br /> An @charset rule must place the rule at the very beginning of the style sheet, preceded by no characters. any @charset rule not at the beginning of the style sheet will be ignored.<br /> @charset must be written literally.<br /> @charset rules should only function if they are in the encoding of the style sheet.Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/@charset

Examples

  • css2.1: <charset>

    @charset "utf-8";

@namespace At-Rule

Features

'@namespace'last updated 08 Mar 2019

to specify the XML namespaces to be used in a CSS style sheet.

Form: Parameter: Syntax: Remarks: Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/@namespace

Examples

  • CSS Namespaces Module

    @namespace url(http://www.w3.org/1999/xhtml);
  • CSS Namespaces Module

    @namespace svg url(http://www.w3.org/2000/svg);

©sideway

ID: 190400026 Last Updated: 4/26/2019 Revision: 0 Ref:

close

References

  1. http://www.w3.org/TR/1999/REC-html401-1999, 1999, HTML 4.01 Specification: W3C Recommendation, updated 24 December 1999
close

Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019