Re: [css syntax] CSS Syntax and Semantic Classes

CSS Working Group,




Regardless of syntax, the ideas pertain to some API, DOM and CSSOM, topics including CSSStyleDeclaration:




interface CSSStyleDeclaration {
  attribute DOMString cssText;
  readonly attribute unsigned long length;
  getter DOMString item(unsigned long index);
  DOMString getPropertyValue(DOMString property);
  DOMString getPropertyValueNS(DOMString? namespace, DOMString localName);
  DOMString getPropertyPriority(DOMString property);
  DOMString getPropertyPriorityNS(DOMString? namespace, DOMString localName);
  void setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
  void setPropertyNS(DOMString? namespace, DOMString localName, [TreatNullAs=EmptyString] DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
  void setPropertyValue(DOMString property, [TreatNullAs=EmptyString] DOMString value);
  void setPropertyValueNS(DOMString? namespace, DOMString localName, [TreatNullAs=EmptyString] DOMString value);
  void setPropertyPriority(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
void setPropertyPriorityNS(DOMString? namespace, DOMString localName, [TreatNullAs=EmptyString] DOMString priority);
  DOMString removeProperty(DOMString property);
  DOMString removePropertyNS(DOMString? namespace, DOMString localName);
  readonly attribute CSSRule? parentRule;
           attribute DOMString cssFloat;
};




There are two separate topics: (1) namespace-prefixed or semantic class names and property names, which include some API subtopics, DOM and CSSOM and (2) CSS selectors and syntax for conveniently styling based upon expansions of space-delimited strings, CURIE and IRI (TERMorURIorCURIEs, http://www.w3.org/TR/rdfa-syntax/#dfn-termorcurieorabsiris), attributes such as @xhtml:role, @rdfa:typeof and @epub:type .











Kind regards,




Adam Sobieski​

Received on Wednesday, 5 February 2014 13:43:43 UTC