Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS color-adjust to print-color-adjust #14738

Merged
merged 6 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 0 additions & 72 deletions css/properties/-webkit-print-color-adjust.json

This file was deleted.

69 changes: 0 additions & 69 deletions css/properties/color-adjust.json

This file was deleted.

104 changes: 104 additions & 0 deletions css/properties/print-color-adjust.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"css": {
"properties": {
"print-color-adjust": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/print-color-adjust",
"spec_url": "https://drafts.csswg.org/css-color-adjust/#propdef-print-color-adjust",
"support": {
"chrome": {
"version_added": "17",
"prefix": "-webkit-",
"notes": [
"Chrome does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants.",
"Before version 26, if background images are clipped (for example, when using <code>background-image</code> sprites) and <code>-webkit-print-color-adjust</code> is set to <code>exact</code>, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See <a href='https://crbug.com/131054'>Chromium bug 131054</a>."
]
},
"chrome_android": {
"version_added": "18",
"prefix": "-webkit-",
"notes": [
"Chrome does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants.",
"Before version 26, if background images are clipped (for example, when using <code>background-image</code> sprites) and <code>-webkit-print-color-adjust</code> is set to <code>exact</code>, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See <a href='https://crbug.com/131054'>Chromium bug 131054</a>."
]
},
"edge": {
"version_added": "79",
"prefix": "-webkit-",
"notes": "Edge does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants."
},
"firefox": [
{
"version_added": "97"
},
{
"version_added": "48",
"alternative_name": "color-adjust"
}
],
"firefox_android": [
{
"version_added": "97"
},
{
"version_added": "48",
"alternative_name": "color-adjust"
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
}
],
"ie": {
"version_added": false
},
"opera": {
"version_added": "15",
"prefix": "-webkit-",
"notes": "Opera does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants."
},
"opera_android": {
"version_added": "15",
"prefix": "-webkit-",
"notes": "Opera does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants."
},
"safari": [
{
"version_added": "15.4"
},
{
"version_added": "6",
"prefix": "-webkit-",
"notes": "Safari does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants."
}
],
"safari_ios": [
{
"version_added": "15.4"
},
{
"version_added": "6",
"prefix": "-webkit-",
"notes": "Safari does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants."
}
],
"samsunginternet_android": {
"version_added": "1.0",
"prefix": "-webkit-",
"notes": [
"Samsung Internet does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants.",
"In version 1, if background images are clipped (for example, when using <code>background-image</code> sprites) and <code>-webkit-print-color-adjust</code> is set to <code>exact</code>, then backgrounds will appear distorted when printed. Solid backgrounds and background images that are not clipped (i.e., backgrounds that have narrower and shorter than the element to which they are applied) are printed correctly. See <a href='https://crbug.com/131054'>Chromium bug 131054</a>."
]
},
"webview_android": {
"version_added": "4.4",
"prefix": "-webkit-",
"notes": "WebView does not print backgrounds of the <a href='https://developer.mozilla.org/docs/Web/HTML/Element/body'><code>&lt;body&gt;</code></a> element. If this property is set to <code>exact</code> for the <code>&lt;body&gt;</code> element, it will apply only to its descendants."
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}