Skip to content

Commit

Permalink
Update of TR report from new reffy run
Browse files Browse the repository at this point in the history
Using reffy commit 17.1.2.
  • Loading branch information
reffy-bot committed Aug 16, 2024
1 parent bb18d40 commit 6ef78ab
Show file tree
Hide file tree
Showing 9 changed files with 512 additions and 205 deletions.
24 changes: 3 additions & 21 deletions tr/algorithms/css-conditional-3.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,13 @@
"url": "https://www.w3.org/TR/css-conditional-3/"
},
"algorithms": [
{
"html": "On setting the <code class=\"highlight\">conditionText</code> attribute these steps\n must be run:",
"rationale": "if",
"steps": [
{
"html": "Trim the given value of white space."
},
{
"html": "If the given value <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/css-syntax-3/#css-parse-something-according-to-a-css-grammar\" id=\"ref-for-css-parse-something-according-to-a-css-grammar\">parses</a> as the appropriate condition grammar for the given rule\n (such as <a class=\"production css\" data-link-type=\"type\" href=\"https://www.w3.org/TR/css-conditional-3/#typedef-supports-condition\" id=\"ref-for-typedef-supports-condition⑥\">&lt;supports-condition&gt;</a> for <a class=\"css\" data-link-type=\"maybe\" href=\"https://www.w3.org/TR/css-conditional-3/#at-ruledef-supports\" id=\"ref-for-at-ruledef-supports①③\">@supports</a>, etc),\n replace the associated CSS condition with the given value."
},
{
"html": "Otherwise, do nothing."
}
]
},
{
"name": "supports(property, value)",
"html": "When the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/css-conditional-3/#dom-css-supports\" id=\"ref-for-dom-css-supports\">supports(property, value)</a></code> method is invoked\n\t\twith two arguments <var>property</var> and <var>value</var>:",
"rationale": ".algorithm",
"steps": [
{
"html": "<p>If <var>property</var> is an <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ascii-case-insensitive\" id=\"ref-for-ascii-case-insensitive\">ASCII case-insensitive</a> match\nfor any defined CSS property that the UA supports,\nand <var>value</var> successfully <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/css-syntax-3/#css-parse-something-according-to-a-css-grammar\" id=\"ref-for-css-parse-something-according-to-a-css-grammar①\">parses</a> according to that property’s grammar,\nreturn <code class=\"highlight\">true</code>.</p>"
},
{
"html": "<p>Otherwise, if <var>property</var> is a <a data-link-type=\"dfn\" href=\"https://drafts.css-houdini.org/css-typed-om-1/#custom-property-name-string\" id=\"ref-for-custom-property-name-string\">custom property name string</a>,\nreturn <code class=\"highlight\">true</code>.</p>"
"html": "<p>If <var>property</var> is an <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ascii-case-insensitive\" id=\"ref-for-ascii-case-insensitive\">ASCII case-insensitive</a> match\nfor any defined CSS property that the UA supports,\nor is a <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/css-typed-om-1/#custom-property-name-string\" id=\"ref-for-custom-property-name-string\">custom property name string</a>,\nand <var>value</var> successfully <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/css-syntax-3/#css-parse-something-according-to-a-css-grammar\" id=\"ref-for-css-parse-something-according-to-a-css-grammar\">parses</a> according to that property’s grammar,\nreturn <code class=\"highlight\">true</code>.</p>"
},
{
"html": "<p>Otherwise, return <code class=\"highlight\">false</code>.</p>"
Expand All @@ -41,10 +23,10 @@
"rationale": ".algorithm",
"steps": [
{
"html": "<p>If <var>conditionText</var>, <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/css-syntax-3/#css-parse-something-according-to-a-css-grammar\" id=\"ref-for-css-parse-something-according-to-a-css-grammar\">parsed</a> and evaluated as a <a class=\"production css\" data-link-type=\"type\" href=\"https://www.w3.org/TR/css-conditional-3/#typedef-supports-condition\" id=\"ref-for-typedef-supports-condition\">&lt;supports-condition&gt;</a>,\nwould return true,\nreturn <code class=\"highlight\">true</code>.</p>"
"html": "<p>If <var>conditionText</var>, <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/css-syntax-3/#css-parse-something-according-to-a-css-grammar\" id=\"ref-for-css-parse-something-according-to-a-css-grammar\">parsed</a> and evaluated as a <a class=\"production css\" data-link-type=\"type\" href=\"https://www.w3.org/TR/css-conditional-3/#typedef-supports-condition\" id=\"ref-for-typedef-supports-condition\">&lt;supports-condition&gt;</a>,\nwould return true,\nreturn <code class=\"highlight\">true</code>.</p>"
},
{
"html": "<p>Otherwise,\nIf <var>conditionText</var>,\nwrapped in parentheses\nand then <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/css-syntax-3/#css-parse-something-according-to-a-css-grammar\" id=\"ref-for-css-parse-something-according-to-a-css-grammar\">parsed</a> and evaluated as a <a class=\"production css\" data-link-type=\"type\" href=\"https://www.w3.org/TR/css-conditional-3/#typedef-supports-condition\" id=\"ref-for-typedef-supports-condition\">&lt;supports-condition&gt;</a>,\nwould return true,\nreturn <code class=\"highlight\">true</code>.</p>"
"html": "<p>Otherwise,\nIf <var>conditionText</var>,\nwrapped in parentheses\nand then <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/css-syntax-3/#css-parse-something-according-to-a-css-grammar\" id=\"ref-for-css-parse-something-according-to-a-css-grammar\">parsed</a> and evaluated as a <a class=\"production css\" data-link-type=\"type\" href=\"https://www.w3.org/TR/css-conditional-3/#typedef-supports-condition\" id=\"ref-for-typedef-supports-condition\">&lt;supports-condition&gt;</a>,\nwould return true,\nreturn <code class=\"highlight\">true</code>.</p>"
},
{
"html": "<p>Otherwise, return <code class=\"highlight\">false</code>.</p>"
Expand Down
4 changes: 2 additions & 2 deletions tr/css/css-conditional.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"prose": "The @media rule is a conditional group rule whose condition is a media query. Its syntax is:",
"href": "https://www.w3.org/TR/css-conditional-3/#at-ruledef-media",
"descriptors": [],
"value": "@media <media-query-list> { <stylesheet> }"
"value": "@media <media-query-list> { <rule-list> }"
},
{
"name": "@supports",
"prose": "The @supports rule is a conditional group rule whose condition tests whether the user agent supports CSS property:value pairs. Authors can use it to write style sheets that use new features when available but degrade gracefully when those features are not supported. These queries are called CSS feature queries or (colloquially) supports queries.",
"href": "https://www.w3.org/TR/css-conditional-3/#at-ruledef-supports",
"descriptors": [],
"value": "@supports <supports-condition> { <stylesheet> }"
"value": "@supports <supports-condition> { <rule-list> }"
}
],
"selectors": [],
Expand Down
42 changes: 42 additions & 0 deletions tr/dfns/css-conditional-3.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,27 @@
},
"definedIn": "pre"
},
{
"id": "dom-cssmediarule-matches",
"href": "https://www.w3.org/TR/css-conditional-3/#dom-cssmediarule-matches",
"linkingText": [
"matches"
],
"localLinkingText": [],
"type": "attribute",
"for": [
"CSSMediaRule"
],
"access": "public",
"informative": false,
"heading": {
"id": "the-cssmediarule-interface",
"href": "https://www.w3.org/TR/css-conditional-3/#the-cssmediarule-interface",
"title": "The CSSMediaRule interface",
"number": "7.3"
},
"definedIn": "pre"
},
{
"id": "csssupportsrule",
"href": "https://www.w3.org/TR/css-conditional-3/#csssupportsrule",
Expand All @@ -316,6 +337,27 @@
},
"definedIn": "pre"
},
{
"id": "dom-csssupportsrule-matches",
"href": "https://www.w3.org/TR/css-conditional-3/#dom-csssupportsrule-matches",
"linkingText": [
"matches"
],
"localLinkingText": [],
"type": "attribute",
"for": [
"CSSSupportsRule"
],
"access": "public",
"informative": false,
"heading": {
"id": "the-csssupportsrule-interface",
"href": "https://www.w3.org/TR/css-conditional-3/#the-csssupportsrule-interface",
"title": "The CSSSupportsRule interface",
"number": "7.4"
},
"definedIn": "pre"
},
{
"id": "dom-css-supports",
"href": "https://www.w3.org/TR/css-conditional-3/#dom-css-supports",
Expand Down
4 changes: 2 additions & 2 deletions tr/headings/css-conditional-3.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"title": "Abstract"
},
{
"id": "status",
"href": "https://www.w3.org/TR/css-conditional-3/#status",
"id": "sotd",
"href": "https://www.w3.org/TR/css-conditional-3/#sotd",
"level": 2,
"title": "Status of this document"
},
Expand Down
4 changes: 3 additions & 1 deletion tr/idl/css-conditional.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ partial interface CSSRule {

[Exposed=Window]
interface CSSConditionRule : CSSGroupingRule {
attribute CSSOMString conditionText;
readonly attribute CSSOMString conditionText;
};

[Exposed=Window]
interface CSSMediaRule : CSSConditionRule {
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
readonly attribute boolean matches;
};

[Exposed=Window]
interface CSSSupportsRule : CSSConditionRule {
readonly attribute boolean matches;
};

partial namespace CSS {
Expand Down
Loading

0 comments on commit 6ef78ab

Please sign in to comment.