CSS Object Model Level 1 CR Test Suite

CSS (34 tests)

Test Refs Flags Info
+ 5 CSS
+ 5.1 CSS Style Sheets
style-sheet-interfaces-001 DOM/JSScript CSSOM StyleSheet Initial Values
  • StyleSheet and CSSStyleSheet objects have the properties specified in their interfaces
+ 5.1.1 The StyleSheet Interface
+ 5.1.2 The CSSStyleSheet Interface
style-sheet-interfaces-002 DOM/JSScript CSSOM StyleSheet Modify Rule List
  • StyleSheet and CSSStyleSheet objects have the properties specified in their interfaces
+ 5.2 CSS Style Sheet Collections
ttwf-cssom-doc-ext-load-count DOM/JSScript CSSOM - Extensions to the Document Interface: StyleSheetList length reflects dynamically loaded and unloaded sheets
  • The styleSheets length attribute must reflect the number of sheets at page load and after dynamically
ttwf-cssom-doc-ext-load-tree-order DOM/JSScript CSSOM - Extensions to the Document Interface: Stylesheet header load order
  • Document's style sheets created from HTTP Link headers are first in list and loaded in header order
+ 5.2.1 The HTTP Default-Style Header
+ 5.2.2 The StyleSheetList Interface
ttwf-cssom-doc-ext-load-count DOM/JSScript CSSOM - Extensions to the Document Interface: StyleSheetList length reflects dynamically loaded and unloaded sheets
  • The styleSheets length attribute must reflect the number of sheets at page load and after dynamically
ttwf-cssom-doc-ext-load-tree-order DOM/JSScript CSSOM - Extensions to the Document Interface: Stylesheet header load order
  • Document's style sheets created from HTTP Link headers are first in list and loaded in header order
ttwf-cssom-document-extension DOM/JSScript CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded
  • The styleSheets attribute must return a StyleSheetList sequence representing the document style sheets.
+ 5.2.3 Extensions to the Document Interface
ttwf-cssom-doc-ext-load-count DOM/JSScript CSSOM - Extensions to the Document Interface: StyleSheetList length reflects dynamically loaded and unloaded sheets
  • The styleSheets length attribute must reflect the number of sheets at page load and after dynamically
ttwf-cssom-doc-ext-load-tree-order DOM/JSScript CSSOM - Extensions to the Document Interface: Stylesheet header load order
  • Document's style sheets created from HTTP Link headers are first in list and loaded in header order
ttwf-cssom-document-extension DOM/JSScript CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded
  • The styleSheets attribute must return a StyleSheetList sequence representing the document style sheets.
+ 5.3 Style Sheet Association
+ 5.3.1 Fetching CSS style sheets
+ 5.3.2 The LinkStyle Interface
style-sheet-interfaces-001 DOM/JSScript CSSOM StyleSheet Initial Values
  • StyleSheet and CSSStyleSheet objects have the properties specified in their interfaces
+ 5.3.3 Requirements on specifications
+ 5.3.4 Requirements on User Agents Implementing the xml-stylesheet processing instruction
+ 5.3.5 Requirements on User Agents Implementing the HTTP Link Header
+ 5.4 CSS Rules
cssimportrule DOM/JSScript CSSOM CSSRule CSSImportRule interface
  • All properties for this CSSImportRule instance of CSSRule are initialized correctly
cssstylerule DOM/JSScript CSSOM CSSRule CSSStyleRule interface
  • All properties for this CSSStyleRule instance of CSSRule are initialized correctly
insertrule-syntax-error-01 Script
+ 5.4.1 The CSSRuleList Interface
+ 5.4.2 The CSSRule Interface
css-style-reparse Script DOM modification re-parsing test
cssimportrule DOM/JSScript CSSOM CSSRule CSSImportRule interface
  • All properties for this CSSImportRule instance of CSSRule are initialized correctly
cssom-ruletypeandorder DOM/JSScript CSS OM: CSS Rule Types and Order
  • Testing Serialization of Style Rules
cssstylerule DOM/JSScript CSSOM CSSRule CSSStyleRule interface
  • All properties for this CSSStyleRule instance of CSSRule are initialized correctly
insertrule-charset-no-index DOM/JSScript CSSOM StyleSheet insertRule with charset and omitted second argument
insertrule-from-script = insertrule @import test
insertrule-import-no-index DOM/JSScript CSSOM StyleSheet insertRule with import and omitted second argument
insertrule-namespace-no-index DOM/JSScript CSSOM StyleSheet insertRule with namespace and omitted second argument
insertrule-no-index DOM/JSScript CSSOM StyleSheet insertRule omitted second argument
style-sheet-interfaces-002 DOM/JSScript CSSOM StyleSheet Modify Rule List
  • StyleSheet and CSSStyleSheet objects have the properties specified in their interfaces
+ 5.4.3 The CSSStyleRule Interface
cssstylerule DOM/JSScript CSSOM CSSRule CSSStyleRule interface
  • All properties for this CSSStyleRule instance of CSSRule are initialized correctly
cssstylerule-set-selectortext Script CSSOM StyleRule selectorText property setter
cssstylerule-set-selectortext-namespace Script CSSOM StyleRule selectorText property setter with namespaces
+ 5.4.4 The CSSImportRule Interface
cssimportrule DOM/JSScript CSSOM CSSRule CSSImportRule interface
  • All properties for this CSSImportRule instance of CSSRule are initialized correctly
style-sheet-interfaces-001 DOM/JSScript CSSOM StyleSheet Initial Values
  • StyleSheet and CSSStyleSheet objects have the properties specified in their interfaces
+ 5.4.5 The CSSGroupingRule Interface
+ 5.4.6 The CSSMediaRule Interface
+ 5.4.7 The CSSPageRule Interface
+ 5.4.8 The CSSMarginRule Interface
+ 5.4.9 The CSSNamespaceRule Interface
+ 5.5 CSS Declarations
+ 5.6 CSS Declaration Blocks
css-style-attr-decl-block Script
border-shorthand-serialization Script serialization of border shorthand
font-shorthand-serialization Script Serialization of font shorthand
+ 5.6.1 The CSSStyleDeclaration Interface
computed-style-001 DOM/JSScript getComputedStyle
  • getComputedStyle returns a readonly CSSStyleDeclaration with resolved values
css-style-declaration-modifications DOM/JSScript CSSStyleDeclaration Interface
  • CSSStyleDeclaration is properly initialized and can be modified through its interface
cssom-cssstyledeclaration-set DOM/JSScript CSSOM: CSSStyleDeclaration on HTMLElement represents inline style changes
cssom-csstext-serialize DOM/JSScript getting cssText must return the result of serializing the CSS declaration blocks.
cssom-setproperty-shorthand DOM/JSScript CSSOM: CSSStyleDeclaration (set|remove)PropertyValue sets/removes shorthand properties
cssstyledeclaration-mutability DOM/JSScript CSSOM: CSSStyleDeclaration is mutable and immutable in various settings
cssstyledeclaration-csstext DOM/JSScript CSSStyleDeclaration.cssText Test
  • CSS declarations is serialized as expected
cssstyledeclaration-csstext-important Script setting a property with cssText and !important
computed-style-set-property Script NoModificationAllowedError when mutating read only properties
  • This test verifies that NoModificationAllowedError is thrown when mutating read only properties
+ 5.7 CSS Values
+ 5.7.1 Parsing CSS Values
+ 5.7.2 Serializing CSS Values
font-shorthand-serialization-font-stretch Script font shorthand serialization with font-stretch values
shape-outside-shape-arguments-000 AhemDOM/JSScript Shape Outside Basic Shape Arguments
  • A basic basic shape can contain any length unit type, or percentage
shape-outside-shape-arguments-001 AhemDOM/JSScript Shape Outside Shape Number Values
  • The basic shape can contain all valid number formats
shape-outside-shape-notation-000 AhemDOM/JSScript Shape Outside Valid Basic Shape Functional Notation
  • Basic shapes use functional notation, and may contain optional whitespace inside the parentheses
math-script-level-002.tentative Script math-script-level
  • Verify effect of math-depth: auto-add | add(<integer) | (<integer>, starting from different values of math-depth.
+ 5.7.2.1 Examples