diff --git a/.pr-preview.json b/.pr-preview.json
new file mode 100644
index 00000000000..45a39792f9f
--- /dev/null
+++ b/.pr-preview.json
@@ -0,0 +1,6 @@
+{
+ "src_file": "css-shadow-parts-1/Overview.bs",
+ "type": "bikeshed",
+ "params": {
+ }
+}
diff --git a/css-shadow-parts-1/Overview.bs b/css-shadow-parts-1/Overview.bs
index e2febc47267..a07adc55481 100644
--- a/css-shadow-parts-1/Overview.bs
+++ b/css-shadow-parts-1/Overview.bs
@@ -7,7 +7,7 @@ Status: ED
Work Status: exploring
URL: http://drafts.csswg.org/css-shadow-parts/
Editor: Tab Atkins-Bittner, Google, http://xanthir.com/contact/, w3cid 42199
-Abstract: This specification defines the ''::part()'' and ''::theme()'' pseudo-elements on shadow hosts, allowing shadow hosts to selectively expose chosen elements from their shadow tree to the outside page for styling purposes.
+Abstract: This specification defines the ''::part()'' and ''::theme()'' pseudo-elements on shadow hosts, allowing shadow hosts to selectively expose chosen elements from their shadow tree to the outside page for styling purposes.
@@ -263,3 +263,12 @@ but never match additional shadow-part pseudo-elements.
would select just the one button's label,
ignoring any other labels.
+
+Extensions to the {{Element}} Interface {#idl}
+==============================================
+
This specification defines the ::part() and ::theme() pseudo-elements on shadow hosts, allowing shadow hosts to selectively expose chosen elements from their shadow tree to the outside page for styling purposes.
+ CSS is a language for describing the rendering of structured documents
+(such as HTML and XML)
+on screen, on paper, in speech, etc.
+
+
Status of this document
+
+
This is a public copy of the editors’ draft.
+ It is provided for discussion only and may change at any moment.
+ Its publication here does not imply endorsement of its contents by W3C.
+ Don’t cite this document other than as work in progress.
+
GitHub Issues are preferred for discussion of this specification.
+ When filing an issue, please put the text “css-shadow-parts” in the title,
+ preferably like this:
+ “[css-shadow-parts] …summary of comment…”.
+ All issues and comments are archived,
+ and there is also a historical archive.
This document was produced by a group operating under
+ the W3C Patent Policy.
+ W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group;
+ that page also includes instructions for disclosing a patent.
+ An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
This spec is intentionally a rough sketch at the moment.
+It should contain all the details necessary to evaluate the proposal.
+
Shadow DOM allows authors to separate their page into "components",
+subtrees of markup whose details are only relevant to the component itself,
+not the outside page.
+This reduces the chance of a style meant for one part of the page
+accidentally over-applying and making a different part of the page look wrong.
+However, this styling barrier also makes it harder for a page to interact with its components
+when it actually wants to do so.
+
This specification defines the ::part() and ::theme() pseudo-elements,
+which allow an author to style specific, purposely exposed elements in a shadow tree from the outside page’s context.
+In combination with custom properties,
+which let the outside page pass particular values
+(such as theme colors)
+into the component for it to do with as it will,
+these pseudo-elements allow components and the outside page
+to interact in safe, powerful ways,
+maintaining encapsulation
+without surrending all control.
+
1.1. Motivation
+
For obvious reasons,
+it’s valuable to let the outside page style the internals of a shadow tree,
+at least in some limited ways.
+(The ubiquity of UA-specific pseudo-elements for the various input elements shows this.)
+
The previous proposed method for doing so,
+the >>> combinator,
+turned out to be too powerful for its own good;
+it exposed too much of a component’s internal structure to scrutiny,
+defeating some of the encapsulation benefits that using Shadow DOM brings.
+For this,
+and other performance-related reasons,
+the >>> combinator was eventually removed from the live profile.
+
This left us with using custom properties as the only way to style into a shadow tree:
+the component would advertise that it uses certain custom properties to style its internals,
+and the outer page could then set those properties as it wished on the shadow host,
+letting inheritance push the values down to where they were needed.
+This works very well for many simple theming use-cases.
+
However, there are some cases where this falls down.
+If a component wishes to allow arbitrary styling of something in its shadow tree,
+the only way to do so is to define hundreds of custom properties (one per CSS property they wish to allow control of),
+which is obviously ridiculous
+for both usability and performance reasons.
+The situation is compounded if authors wish to style the component differently
+based on pseudo-classes like :hover;
+the component needs to duplicate the custom properties used
+for each pseudo-class
+(and each combination,
+like :hover:focus,
+resulting in a combinatorial explosion).
+This makes the usability and performance problems even worse.
+
We introduce ::part() to handle this case much more elegantly and performantly.
+Rather than bundling everything into custom property names,
+the functionality lives in selectors and style rule syntax,
+like it’s meant to.
+This is far more usable for both component authors
+and component users,
+should have much better performance,
+and allows for better encapsulation/API surface.
+
Another interesting facet of using custom properties,
+however,
+is that inheritance doesn’t stop at the first shadow tree.
+Unless explicitly blocked,
+a custom property inherits down thru nested trees,
+allowing authors to style deeply nested components
+as easily as they style directly-visible ones.
+The same considerations apply to this case,
+so we introduce ::theme() to handle this.
+
It’s important to note that ::part() and ::theme() offer absolutely zero new theoretical power.
+They are not a rehash of the >>> combinator,
+they’re simply a more convenient and consistent syntax
+for something authors can already do with custom properties.
+By separating out the explicitly "published" parts of an element
+(the shadow part map from the sub-parts that it merely happens to contain
+(the computed shadow theme map,
+it also helps with encapsulation,
+as authors can use ::part() without fear of accidental over-styling.
+
2. Exposing a Shadow Element:
+ Elements in a shadow tree may be exposed for style by stylesheets outside the tree
+using the part and partmap attributes.
+
Each element has a part name list which is an ordered sets of tokens.
+
Each element has a part name map which is an ordered map,
+with keys that are tokens
+and values that are ordered sets of tokens.
The shadow part element map is described
+only as part of the algorithm for calculating style in this spec.
+It is not exposed via the DOM,
+as calculating it may be expensive
+and doing so could allow access to elements inside closed shadow roots.
+
Shadow part element maps are affected by the addition and removal of elements
+and changes to the part name lists and part name maps of elements in the DOM.
+
To calculate the shadow part element map of a shadow root
+
+
+ For each element within this "outer" shadow root
+
+
For each name in the element’s part name list,
+ add this element to outer-shadow-root-part-map[name]
+
+ If the element is a shadow host:
+
+
Calculate the shadow part element map of its shadow root ("inner" shadow root).
+
For each key ("outer name") in the outershadow root part name map
+ and for each token ("inner name") in that key’s ordered set of tokens
+ look up inner-shadow-root-part-map[inner name] to get a (possibly empty) set of elements
+ and add these elements to outer-shadow-poot-part-map[outer name].
+
+
+
+
Include wild-card forwarding in algortihm.
+
There is no need for the shadow part element map values to be ordered, can we drop that?
Any element in a shadow tree can have a part attribute.
+This is used to expose the element outside of the shadow tree.
+
The part attribute is parsed as a space-separated list of tokens representing the part names of this element.
+
Note: It’s okay to give a part multiple names.
+The "part name" should be considered similar to a class,
+not an id or tagname.
+
<style>
+ c-e::part(textspan) { color: red; }
+</style>
+
+<template id="c-e-template">
+ <span part="textspan">This text will be red</span>
+</template>
+<c-e></c-e>
+<script>
+ // Add template as custom elment c-e
+ ...
+</script>
+
+
2.2. Forwarding a Shadow Element: the partmap attribute
+ Any element in a shadow tree can have a partmap attribute.
+If the element is a shadow host,
+this is used to expose parts from inside this host’s shadow tree to outside this host’s containing shadow tree (as if they were elements in the same tree as the host,
+name by a part attribute).
+
The partmap attribute is parsed as a comma-separated list of part mappings.
+Each part mapping is one of:
When doing prefixed-wildcard forwarding, should probably automatically exclude sub-parts that are manually forwarded. With that, would be good to have a syntax to block forwarding of a sub-part (currently would require `foo => nonsense-name`).
+
Note: It’s okay to map a sub-part to several names.
+
<style>
+ c-e::part(textspan) { color: red; }
+</style>
+
+<template id="c-e-outer-template">
+ <span part="textspan">
+ This text will be red because the document style matches it directly.
+ </span>
+ <c-e-inner partmap="innerspan => textspan"></c-e-inner>
+</template>
+
+<template id="c-e-inner-template">
+ <span part="innerspan">
+ This text will be red because the containing shadow host exposes <b>innerspan</b> to the document as "textspan" and the document style matches it.
+ </span>
+</template>
+
+<c-e></c-e>
+<script>
+ // Add template as custom elments c-e-inner c-e-outer
+ ...
+</script>
+
In addition to the shadow part map,
+every shadow root has a partial shadow theme map and a computed shadow theme map both of which are ordered maps (with the same key/value shape as the shadow part map),
+and the elements in the shadow tree have a corresponding theme attribute.
3. Selecting a Shadow Element: the ::part() and ::theme() pseudo-elements
+
The ::part() and ::theme() pseudo-elements
+(collectively, the shadow-part pseudo-elements)
+allow you to select elements that have been exposed via a part attribute.
+The syntaxes of them are:
For example,
+ if you have a custom button
+ that contains a "label" element that is exposed for styling
+ (via part="label"),
+ you can select it with #the-button::part(label).
For example, :root::theme(label) matches any element with part="label" anywhere in the entire document,
+ no matter how deeply nested into shadow trees they are.
+
The shadow-part pseudo-elements can take additional pseudo-classes after them,
+such as x-button::part(label):hover,
+but never match the structural pseudo-classes or any other pseudo-classes that match based on tree information
+rather than local element information.
+ For example, x-panel::part(confirm-button)::part(label) never matches anything.
+ This is because doing so would expose more structural information
+ than is intended.
+
One can still target the nested label with a selector like x-panel::theme(label).
+ However, this will also select the labels of any other buttons in the panel.
+
If the <x-panel>’s internal confirm button had used something like part="confirm-button, * => confirm-*" to forward the button’s internal parts up into the panel’s own shadow part element map,
+ then a selector like x-panel::part(confirm-label) would select just the one button’s label,
+ ignoring any other labels.
The partList attribute must return a DOMTokenList object whose associated element is the context object and whose associated attribute’s local name is part.
+The token set of this particular DOMTokenList object are also known as the element’s part names.
+
The partMap attribute must return a dictionary object whose associated element is the context object and whose associated attribute’s local name is partmap.
+
Document the relationship between the values in partMap and the partmap attribute.
+
+
Conformance
+
Document conventions
+
Conformance requirements are expressed with a combination of
+ descriptive assertions and RFC 2119 terminology. The key words “MUST”,
+ “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
+ “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
+ document are to be interpreted as described in RFC 2119.
+ However, for readability, these words do not appear in all uppercase
+ letters in this specification.
+
All of the text of this specification is normative except sections
+ explicitly marked as non-normative, examples, and notes. [RFC2119]
+
Examples in this specification are introduced with the words “for example”
+ or are set apart from the normative text with class="example",
+ like this:
+
+
+
This is an example of an informative example.
+
+
Informative notes begin with the word “Note” and are set apart from the
+ normative text with class="note", like this:
+
Note, this is an informative note.
+
Advisements are normative sections styled to evoke special attention and are
+ set apart from other normative text with <strong class="advisement">, like
+ this: UAs MUST provide an accessible alternative.
+
Conformance classes
+
Conformance to this specification
+ is defined for three conformance classes:
A style sheet is conformant to this specification
+ if all of its statements that use syntax defined in this module are valid
+ according to the generic CSS grammar and the individual grammars of each
+ feature defined in this module.
+
A renderer is conformant to this specification
+ if, in addition to interpreting the style sheet as defined by the
+ appropriate specifications, it supports all the features defined
+ by this specification by parsing them correctly
+ and rendering the document accordingly. However, the inability of a
+ UA to correctly render a document due to limitations of the device
+ does not make the UA non-conformant. (For example, a UA is not
+ required to render color on a monochrome monitor.)
+
An authoring tool is conformant to this specification
+ if it writes style sheets that are syntactically correct according to the
+ generic CSS grammar and the individual grammars of each feature in
+ this module, and meet all other conformance requirements of style sheets
+ as described in this module.
+
Requirements for Responsible Implementation of CSS
+
The following sections define several conformance requirements
+ for implementing CSS responsibly,
+ in a way that promotes interoperability in the present and future.
+
Partial Implementations
+
So that authors can exploit the forward-compatible parsing rules to assign fallback values, CSS renderers must treat as invalid
+ (and ignore as appropriate)
+ any at-rules, properties, property values, keywords, and other syntactic constructs
+ for which they have no usable level of support.
+ In particular, user agents must not selectively ignore
+ unsupported property values and honor supported values in a single multi-value property declaration:
+ if any value is considered invalid (as unsupported values must be),
+ CSS requires that the entire declaration be ignored.
+
Implementations of Unstable and Proprietary Features
Once a specification reaches the Candidate Recommendation stage,
+ implementers should release an unprefixed implementation
+ of any CR-level feature they can demonstrate
+ to be correctly implemented according to spec,
+ and should avoid exposing a prefixed variant of that feature.
+
To establish and maintain the interoperability of CSS across
+ implementations, the CSS Working Group requests that non-experimental
+ CSS renderers submit an implementation report (and, if necessary, the
+ testcases used for that implementation report) to the W3C before
+ releasing an unprefixed implementation of any CSS features. Testcases
+ submitted to W3C are subject to review and correction by the CSS
+ Working Group.
+
+ Further information on submitting testcases and implementation reports
+ can be found from on the CSS Working Group’s website at http://www.w3.org/Style/CSS/Test/.
+ Questions should be directed to the public-css-testsuite@w3.org mailing list.
+
+
There is no need for the shadow part element map values to be ordered, can we drop that? ↵
+
When doing prefixed-wildcard forwarding, should probably automatically exclude sub-parts that are manually forwarded. With that, would be good to have a syntax to block forwarding of a sub-part (currently would require `foo => nonsense-name`). ↵
+
Document the relationship between the values in partMap and the partmap attribute. ↵
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/rendered/merged/css-shadow-parts-1/Overview.html b/docs/rendered/merged/css-shadow-parts-1/Overview.html
new file mode 100644
index 00000000000..07efa5fe21b
--- /dev/null
+++ b/docs/rendered/merged/css-shadow-parts-1/Overview.html
@@ -0,0 +1,940 @@
+
+
+
+ CSS Shadow Parts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
This specification defines the ::part() and ::theme() pseudo-elements on shadow hosts, allowing shadow hosts to selectively expose chosen elements from their shadow tree to the outside page for styling purposes.
+ CSS is a language for describing the rendering of structured documents
+(such as HTML and XML)
+on screen, on paper, in speech, etc.
+
+
Status of this document
+
+
This is a public copy of the editors’ draft.
+ It is provided for discussion only and may change at any moment.
+ Its publication here does not imply endorsement of its contents by W3C.
+ Don’t cite this document other than as work in progress.
+
GitHub Issues are preferred for discussion of this specification.
+ When filing an issue, please put the text “css-shadow-parts” in the title,
+ preferably like this:
+ “[css-shadow-parts] …summary of comment…”.
+ All issues and comments are archived,
+ and there is also a historical archive.
This document was produced by a group operating under
+ the W3C Patent Policy.
+ W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group;
+ that page also includes instructions for disclosing a patent.
+ An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
This spec is intentionally a rough sketch at the moment.
+It should contain all the details necessary to evaluate the proposal.
+
Shadow DOM allows authors to separate their page into "components",
+subtrees of markup whose details are only relevant to the component itself,
+not the outside page.
+This reduces the chance of a style meant for one part of the page
+accidentally over-applying and making a different part of the page look wrong.
+However, this styling barrier also makes it harder for a page to interact with its components
+when it actually wants to do so.
+
This specification defines the ::part() and ::theme() pseudo-elements,
+which allow an author to style specific, purposely exposed elements in a shadow tree from the outside page’s context.
+In combination with custom properties,
+which let the outside page pass particular values
+(such as theme colors)
+into the component for it to do with as it will,
+these pseudo-elements allow components and the outside page
+to interact in safe, powerful ways,
+maintaining encapsulation
+without surrending all control.
+
1.1. Motivation
+
For obvious reasons,
+it’s valuable to let the outside page style the internals of a shadow tree,
+at least in some limited ways.
+(The ubiquity of UA-specific pseudo-elements for the various input elements shows this.)
+
The previous proposed method for doing so,
+the >>> combinator,
+turned out to be too powerful for its own good;
+it exposed too much of a component’s internal structure to scrutiny,
+defeating some of the encapsulation benefits that using Shadow DOM brings.
+For this,
+and other performance-related reasons,
+the >>> combinator was eventually removed from the live profile.
+
This left us with using custom properties as the only way to style into a shadow tree:
+the component would advertise that it uses certain custom properties to style its internals,
+and the outer page could then set those properties as it wished on the shadow host,
+letting inheritance push the values down to where they were needed.
+This works very well for many simple theming use-cases.
+
However, there are some cases where this falls down.
+If a component wishes to allow arbitrary styling of something in its shadow tree,
+the only way to do so is to define hundreds of custom properties (one per CSS property they wish to allow control of),
+which is obviously ridiculous
+for both usability and performance reasons.
+The situation is compounded if authors wish to style the component differently
+based on pseudo-classes like :hover;
+the component needs to duplicate the custom properties used
+for each pseudo-class
+(and each combination,
+like :hover:focus,
+resulting in a combinatorial explosion).
+This makes the usability and performance problems even worse.
+
We introduce ::part() to handle this case much more elegantly and performantly.
+Rather than bundling everything into custom property names,
+the functionality lives in selectors and style rule syntax,
+like it’s meant to.
+This is far more usable for both component authors
+and component users,
+should have much better performance,
+and allows for better encapsulation/API surface.
+
Another interesting facet of using custom properties,
+however,
+is that inheritance doesn’t stop at the first shadow tree.
+Unless explicitly blocked,
+a custom property inherits down thru nested trees,
+allowing authors to style deeply nested components
+as easily as they style directly-visible ones.
+The same considerations apply to this case,
+so we introduce ::theme() to handle this.
+
It’s important to note that ::part() and ::theme() offer absolutely zero new theoretical power.
+They are not a rehash of the >>> combinator,
+they’re simply a more convenient and consistent syntax
+for something authors can already do with custom properties.
+By separating out the explicitly "published" parts of an element
+(the shadow part map from the sub-parts that it merely happens to contain
+(the computed shadow theme map,
+it also helps with encapsulation,
+as authors can use ::part() without fear of accidental over-styling.
+
2. Exposing a Shadow Element:
+ Elements in a shadow tree may be exposed for style by stylesheets outside the tree
+using the part and partmap attributes.
+
Each element has a part name list which is an ordered sets of tokens.
+
Each element has a part name map which is an ordered map,
+with keys that are tokens
+and values that are ordered sets of tokens.
The shadow part element map is described
+only as part of the algorithm for calculating style in this spec.
+It is not exposed via the DOM,
+as calculating it may be expensive
+and doing so could allow access to elements inside closed shadow roots.
+
Shadow part element maps are affected by the addition and removal of elements
+and changes to the part name lists and part name maps of elements in the DOM.
+
To calculate the shadow part element map of a shadow root
+
+
+ For each element within this "outer" shadow root
+
+
For each name in the element’s part name list,
+ add this element to outer-shadow-root-part-map[name]
+
+ If the element is a shadow host:
+
+
Calculate the shadow part element map of its shadow root ("inner" shadow root).
+
For each key ("outer name") in the outershadow root part name map
+ and for each token ("inner name") in that key’s ordered set of tokens
+ look up inner-shadow-root-part-map[inner name] to get a (possibly empty) set of elements
+ and add these elements to outer-shadow-poot-part-map[outer name].
+
+
+
+
Include wild-card forwarding in algortihm.
+
There is no need for the shadow part element map values to be ordered, can we drop that?
Any element in a shadow tree can have a part attribute.
+This is used to expose the element outside of the shadow tree.
+
The part attribute is parsed as a space-separated list of tokens representing the part names of this element.
+
Note: It’s okay to give a part multiple names.
+The "part name" should be considered similar to a class,
+not an id or tagname.
+
<style>
+ c-e::part(textspan) { color: red; }
+</style>
+
+<template id="c-e-template">
+ <span part="textspan">This text will be red</span>
+</template>
+<c-e></c-e>
+<script>
+ // Add template as custom elment c-e
+ ...
+</script>
+
+
2.2. Forwarding a Shadow Element: the partmap attribute
+ Any element in a shadow tree can have a partmap attribute.
+If the element is a shadow host,
+this is used to expose parts from inside this host’s shadow tree to outside this host’s containing shadow tree (as if they were elements in the same tree as the host,
+name by a part attribute).
+
The partmap attribute is parsed as a comma-separated list of part mappings.
+Each part mapping is one of:
When doing prefixed-wildcard forwarding, should probably automatically exclude sub-parts that are manually forwarded. With that, would be good to have a syntax to block forwarding of a sub-part (currently would require `foo => nonsense-name`).
+
Note: It’s okay to map a sub-part to several names.
+
<style>
+ c-e::part(textspan) { color: red; }
+</style>
+
+<template id="c-e-outer-template">
+ <span part="textspan">
+ This text will be red because the document style matches it directly.
+ </span>
+ <c-e-inner partmap="innerspan => textspan"></c-e-inner>
+</template>
+
+<template id="c-e-inner-template">
+ <span part="innerspan">
+ This text will be red because the containing shadow host exposes <b>innerspan</b> to the document as "textspan" and the document style matches it.
+ </span>
+</template>
+
+<c-e></c-e>
+<script>
+ // Add template as custom elments c-e-inner c-e-outer
+ ...
+</script>
+
In addition to the shadow part map,
+every shadow root has a partial shadow theme map and a computed shadow theme map both of which are ordered maps (with the same key/value shape as the shadow part map),
+and the elements in the shadow tree have a corresponding theme attribute.
3. Selecting a Shadow Element: the ::part() and ::theme() pseudo-elements
+
The ::part() and ::theme() pseudo-elements
+(collectively, the shadow-part pseudo-elements)
+allow you to select elements that have been exposed via a part attribute.
+The syntaxes of them are:
For example,
+ if you have a custom button
+ that contains a "label" element that is exposed for styling
+ (via part="label"),
+ you can select it with #the-button::part(label).
For example, :root::theme(label) matches any element with part="label" anywhere in the entire document,
+ no matter how deeply nested into shadow trees they are.
+
The shadow-part pseudo-elements can take additional pseudo-classes after them,
+such as x-button::part(label):hover,
+but never match the structural pseudo-classes or any other pseudo-classes that match based on tree information
+rather than local element information.
+ For example, x-panel::part(confirm-button)::part(label) never matches anything.
+ This is because doing so would expose more structural information
+ than is intended.
+
One can still target the nested label with a selector like x-panel::theme(label).
+ However, this will also select the labels of any other buttons in the panel.
+
If the <x-panel>’s internal confirm button had used something like part="confirm-button, * => confirm-*" to forward the button’s internal parts up into the panel’s own shadow part element map,
+ then a selector like x-panel::part(confirm-label) would select just the one button’s label,
+ ignoring any other labels.
The partList attribute must return a DOMTokenList object whose associated element is the context object and whose associated attribute’s local name is part.
+The token set of this particular DOMTokenList object are also known as the element’s part names.
+
The partMap attribute must return a dictionary object whose associated element is the context object and whose associated attribute’s local name is partmap.
+
Document the relationship between the values in partMap and the partmap attribute.
+
+
Conformance
+
Document conventions
+
Conformance requirements are expressed with a combination of
+ descriptive assertions and RFC 2119 terminology. The key words “MUST”,
+ “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
+ “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
+ document are to be interpreted as described in RFC 2119.
+ However, for readability, these words do not appear in all uppercase
+ letters in this specification.
+
All of the text of this specification is normative except sections
+ explicitly marked as non-normative, examples, and notes. [RFC2119]
+
Examples in this specification are introduced with the words “for example”
+ or are set apart from the normative text with class="example",
+ like this:
+
+
+
This is an example of an informative example.
+
+
Informative notes begin with the word “Note” and are set apart from the
+ normative text with class="note", like this:
+
Note, this is an informative note.
+
Advisements are normative sections styled to evoke special attention and are
+ set apart from other normative text with <strong class="advisement">, like
+ this: UAs MUST provide an accessible alternative.
+
Conformance classes
+
Conformance to this specification
+ is defined for three conformance classes:
A style sheet is conformant to this specification
+ if all of its statements that use syntax defined in this module are valid
+ according to the generic CSS grammar and the individual grammars of each
+ feature defined in this module.
+
A renderer is conformant to this specification
+ if, in addition to interpreting the style sheet as defined by the
+ appropriate specifications, it supports all the features defined
+ by this specification by parsing them correctly
+ and rendering the document accordingly. However, the inability of a
+ UA to correctly render a document due to limitations of the device
+ does not make the UA non-conformant. (For example, a UA is not
+ required to render color on a monochrome monitor.)
+
An authoring tool is conformant to this specification
+ if it writes style sheets that are syntactically correct according to the
+ generic CSS grammar and the individual grammars of each feature in
+ this module, and meet all other conformance requirements of style sheets
+ as described in this module.
+
Requirements for Responsible Implementation of CSS
+
The following sections define several conformance requirements
+ for implementing CSS responsibly,
+ in a way that promotes interoperability in the present and future.
+
Partial Implementations
+
So that authors can exploit the forward-compatible parsing rules to assign fallback values, CSS renderers must treat as invalid
+ (and ignore as appropriate)
+ any at-rules, properties, property values, keywords, and other syntactic constructs
+ for which they have no usable level of support.
+ In particular, user agents must not selectively ignore
+ unsupported property values and honor supported values in a single multi-value property declaration:
+ if any value is considered invalid (as unsupported values must be),
+ CSS requires that the entire declaration be ignored.
+
Implementations of Unstable and Proprietary Features
Once a specification reaches the Candidate Recommendation stage,
+ implementers should release an unprefixed implementation
+ of any CR-level feature they can demonstrate
+ to be correctly implemented according to spec,
+ and should avoid exposing a prefixed variant of that feature.
+
To establish and maintain the interoperability of CSS across
+ implementations, the CSS Working Group requests that non-experimental
+ CSS renderers submit an implementation report (and, if necessary, the
+ testcases used for that implementation report) to the W3C before
+ releasing an unprefixed implementation of any CSS features. Testcases
+ submitted to W3C are subject to review and correction by the CSS
+ Working Group.
+
+ Further information on submitting testcases and implementation reports
+ can be found from on the CSS Working Group’s website at http://www.w3.org/Style/CSS/Test/.
+ Questions should be directed to the public-css-testsuite@w3.org mailing list.
+
+
There is no need for the shadow part element map values to be ordered, can we drop that? ↵
+
When doing prefixed-wildcard forwarding, should probably automatically exclude sub-parts that are manually forwarded. With that, would be good to have a syntax to block forwarding of a sub-part (currently would require `foo => nonsense-name`). ↵
+
Document the relationship between the values in partMap and the partmap attribute. ↵