CINXE.COM

CSS Backgrounds and Borders Module Level 3

<!doctype html><html lang="en"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"> <title>CSS Backgrounds and Borders Module Level 3</title> <meta content="ED" name="w3c-status"> <link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet"> <meta content="Bikeshed version ac5ea272d, updated Fri Dec 6 15:45:15 2024 -0800" name="generator"> <link href="https://www.w3.org/TR/css-backgrounds-3/" rel="canonical"> <link href="https://drafts.csswg.org/csslogo.ico" rel="icon"> <meta content="8814e9ee9e2fd23ca860b7f24753259ceb4b855d" name="revision"> <meta content="dark light" name="color-scheme"> <link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css"> <style>/* Boilerplate: style-autolinks */ .css.css, .property.property, .descriptor.descriptor { color: var(--a-normal-text); font-size: inherit; font-family: inherit; } .css::before, .property::before, .descriptor::before { content: "‘"; } .css::after, .property::after, .descriptor::after { content: "’"; } .property, .descriptor { /* Don't wrap property and descriptor names */ white-space: nowrap; } .type { /* CSS value <type> */ font-style: italic; } pre .property::before, pre .property::after { content: ""; } [data-link-type="property"]::before, [data-link-type="propdesc"]::before, [data-link-type="descriptor"]::before, [data-link-type="value"]::before, [data-link-type="function"]::before, [data-link-type="at-rule"]::before, [data-link-type="selector"]::before, [data-link-type="maybe"]::before { content: "‘"; } [data-link-type="property"]::after, [data-link-type="propdesc"]::after, [data-link-type="descriptor"]::after, [data-link-type="value"]::after, [data-link-type="function"]::after, [data-link-type="at-rule"]::after, [data-link-type="selector"]::after, [data-link-type="maybe"]::after { content: "’"; } [data-link-type].production::before, [data-link-type].production::after, .prod [data-link-type]::before, .prod [data-link-type]::after { content: ""; } [data-link-type=element], [data-link-type=element-attr] { font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace; font-size: .9em; } [data-link-type=element]::before { content: "<" } [data-link-type=element]::after { content: ">" } [data-link-type=biblio] { white-space: pre; } @media (prefers-color-scheme: dark) { :root { --selflink-text: black; --selflink-bg: silver; --selflink-hover-text: white; } } </style> <style>/* Boilerplate: style-colors */ /* Any --*-text not paired with a --*-bg is assumed to have a transparent bg */ :root { color-scheme: light dark; --text: black; --bg: white; --unofficial-watermark: url(https://www.w3.org/StyleSheets/TR/2016/logos/UD-watermark); --logo-bg: #1a5e9a; --logo-active-bg: #c00; --logo-text: white; --tocnav-normal-text: #707070; --tocnav-normal-bg: var(--bg); --tocnav-hover-text: var(--tocnav-normal-text); --tocnav-hover-bg: #f8f8f8; --tocnav-active-text: #c00; --tocnav-active-bg: var(--tocnav-normal-bg); --tocsidebar-text: var(--text); --tocsidebar-bg: #f7f8f9; --tocsidebar-shadow: rgba(0,0,0,.1); --tocsidebar-heading-text: hsla(203,20%,40%,.7); --toclink-text: var(--text); --toclink-underline: #3980b5; --toclink-visited-text: var(--toclink-text); --toclink-visited-underline: #054572; --heading-text: #005a9c; --hr-text: var(--text); --algo-border: #def; --del-text: red; --del-bg: transparent; --ins-text: #080; --ins-bg: transparent; --a-normal-text: #034575; --a-normal-underline: #bbb; --a-visited-text: var(--a-normal-text); --a-visited-underline: #707070; --a-hover-bg: rgba(75%, 75%, 75%, .25); --a-active-text: #c00; --a-active-underline: #c00; --blockquote-border: silver; --blockquote-bg: transparent; --blockquote-text: currentcolor; --issue-border: #e05252; --issue-bg: #fbe9e9; --issue-text: var(--text); --issueheading-text: #831616; --example-border: #e0cb52; --example-bg: #fcfaee; --example-text: var(--text); --exampleheading-text: #574b0f; --note-border: #52e052; --note-bg: #e9fbe9; --note-text: var(--text); --noteheading-text: hsl(120, 70%, 30%); --notesummary-underline: silver; --assertion-border: #aaa; --assertion-bg: #eee; --assertion-text: black; --advisement-border: orange; --advisement-bg: #fec; --advisement-text: var(--text); --advisementheading-text: #b35f00; --warning-border: red; --warning-bg: hsla(40,100%,50%,0.95); --warning-text: var(--text); --amendment-border: #330099; --amendment-bg: #F5F0FF; --amendment-text: var(--text); --amendmentheading-text: #220066; --def-border: #8ccbf2; --def-bg: #def; --def-text: var(--text); --defrow-border: #bbd7e9; --datacell-border: silver; --indexinfo-text: #707070; --indextable-hover-text: black; --indextable-hover-bg: #f7f8f9; --outdatedspec-bg: rgba(0, 0, 0, .5); --outdatedspec-text: black; --outdated-bg: maroon; --outdated-text: white; --outdated-shadow: red; --editedrec-bg: darkorange; } @media (prefers-color-scheme: dark) { :root { --text: #ddd; --bg: black; --unofficial-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cg fill='%23100808' transform='translate(200 200) rotate(-45) translate(-200 -200)' stroke='%23100808' stroke-width='3'%3E%3Ctext x='50%25' y='220' style='font: bold 70px sans-serif; text-anchor: middle; letter-spacing: 6px;'%3EUNOFFICIAL%3C/text%3E%3Ctext x='50%25' y='305' style='font: bold 70px sans-serif; text-anchor: middle; letter-spacing: 6px;'%3EDRAFT%3C/text%3E%3C/g%3E%3C/svg%3E"); --logo-bg: #1a5e9a; --logo-active-bg: #c00; --logo-text: white; --tocnav-normal-text: #999; --tocnav-normal-bg: var(--bg); --tocnav-hover-text: var(--tocnav-normal-text); --tocnav-hover-bg: #080808; --tocnav-active-text: #f44; --tocnav-active-bg: var(--tocnav-normal-bg); --tocsidebar-text: var(--text); --tocsidebar-bg: #080808; --tocsidebar-shadow: rgba(255,255,255,.1); --tocsidebar-heading-text: hsla(203,20%,40%,.7); --toclink-text: var(--text); --toclink-underline: #6af; --toclink-visited-text: var(--toclink-text); --toclink-visited-underline: #054572; --heading-text: #8af; --hr-text: var(--text); --algo-border: #456; --del-text: #f44; --del-bg: transparent; --ins-text: #4a4; --ins-bg: transparent; --a-normal-text: #6af; --a-normal-underline: #555; --a-visited-text: var(--a-normal-text); --a-visited-underline: var(--a-normal-underline); --a-hover-bg: rgba(25%, 25%, 25%, .2); --a-active-text: #f44; --a-active-underline: var(--a-active-text); --borderedblock-bg: rgba(255, 255, 255, .05); --blockquote-border: silver; --blockquote-bg: var(--borderedblock-bg); --blockquote-text: currentcolor; --issue-border: #e05252; --issue-bg: var(--borderedblock-bg); --issue-text: var(--text); --issueheading-text: hsl(0deg, 70%, 70%); --example-border: hsl(50deg, 90%, 60%); --example-bg: var(--borderedblock-bg); --example-text: var(--text); --exampleheading-text: hsl(50deg, 70%, 70%); --note-border: hsl(120deg, 100%, 35%); --note-bg: var(--borderedblock-bg); --note-text: var(--text); --noteheading-text: hsl(120, 70%, 70%); --notesummary-underline: silver; --assertion-border: #444; --assertion-bg: var(--borderedblock-bg); --assertion-text: var(--text); --advisement-border: orange; --advisement-bg: #222218; --advisement-text: var(--text); --advisementheading-text: #f84; --warning-border: red; --warning-bg: hsla(40,100%,20%,0.95); --warning-text: var(--text); --amendment-border: #330099; --amendment-bg: #080010; --amendment-text: var(--text); --amendmentheading-text: #cc00ff; --def-border: #8ccbf2; --def-bg: #080818; --def-text: var(--text); --defrow-border: #136; --datacell-border: silver; --indexinfo-text: #aaa; --indextable-hover-text: var(--text); --indextable-hover-bg: #181818; --outdatedspec-bg: rgba(255, 255, 255, .5); --outdatedspec-text: black; --outdated-bg: maroon; --outdated-text: white; --outdated-shadow: red; --editedrec-bg: darkorange; } /* In case a transparent-bg image doesn't expect to be on a dark bg, which is quite common in practice... */ img { background: white; } } </style> <style>/* Boilerplate: style-counters */ body { counter-reset: example figure issue; } .issue { counter-increment: issue; } .issue:not(.no-marker)::before { content: "Issue " counter(issue); } .example { counter-increment: example; } .example:not(.no-marker)::before { content: "Example " counter(example); } .invalid.example:not(.no-marker)::before, .illegal.example:not(.no-marker)::before { content: "Invalid Example" counter(example); } figcaption { counter-increment: figure; } figcaption:not(.no-marker)::before { content: "Figure " counter(figure) " "; } </style> <style>/* Boilerplate: style-dfn-panel */ :root { --dfnpanel-bg: #ddd; --dfnpanel-text: var(--text); --dfnpanel-target-bg: #ffc; --dfnpanel-target-outline: orange; } @media (prefers-color-scheme: dark) { :root { --dfnpanel-bg: #222; --dfnpanel-text: var(--text); --dfnpanel-target-bg: #333; --dfnpanel-target-outline: silver; } } .dfn-panel { position: absolute; z-index: 35; width: 20em; width: 300px; height: auto; max-height: 500px; overflow: auto; padding: 0.5em 0.75em; font: small Helvetica Neue, sans-serif, Droid Sans Fallback; background: var(--dfnpanel-bg); color: var(--dfnpanel-text); border: outset 0.2em; white-space: normal; /* in case it's moved into a pre */ } .dfn-panel:not(.on) { display: none; } .dfn-panel * { margin: 0; padding: 0; text-indent: 0; } .dfn-panel > b { display: block; } .dfn-panel a { color: var(--dfnpanel-text); } .dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; } .dfn-panel a:focus { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; } .dfn-panel > b + b { margin-top: 0.25em; } .dfn-panel ul { padding: 0 0 0 1em; list-style: none; } .dfn-panel li a { max-width: calc(300px - 1.5em - 1em); overflow: hidden; text-overflow: ellipsis; } .dfn-panel.activated { display: inline-block; position: fixed; left: 8px; bottom: 2em; margin: 0 auto; max-width: calc(100vw - 1.5em - .4em - .5em); max-height: 30vh; transition: left 1s ease-out, bottom 1s ease-out; } .dfn-panel .link-item:hover { text-decoration: underline; } .dfn-panel .link-item .copy-icon { opacity: 0; } .dfn-panel .link-item:hover .copy-icon, .dfn-panel .link-item .copy-icon:focus { opacity: 1; } .dfn-panel .copy-icon { display: inline-block; margin-right: 0.5em; width: 0.85em; height: 1em; border-radius: 3px; background-color: #ccc; cursor: pointer; } .dfn-panel .copy-icon .icon { width: 100%; height: 100%; background-color: #fff; display: flex; justify-content: center; align-items: center; position: relative; } .dfn-panel .copy-icon .icon::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid black; background-color: #ccc; opacity: 0.25; transform: translate(3px, -3px); } .dfn-panel .copy-icon:active .icon::before { opacity: 1; } .dfn-paneled[role="button"] { cursor: help; } .highlighted { animation: target-fade 3s; } @keyframes target-fade { from { background-color: var(--dfnpanel-target-bg); outline: 5px solid var(--dfnpanel-target-outline); } to { color: var(--a-normal-text); background-color: transparent; outline: transparent; } } </style> <style>/* Boilerplate: style-issues */ a[href].issue-return { float: right; float: inline-end; color: var(--issueheading-text); font-weight: bold; text-decoration: none; } </style> <style>/* Boilerplate: style-md-lists */ /* This is a weird hack for me not yet following the commonmark spec regarding paragraph and lists. */ [data-md] > :first-child { margin-top: 0; } [data-md] > :last-child { margin-bottom: 0; } </style> <style>/* Boilerplate: style-mdn-anno */ :root { --mdn-bg: #EEE; --mdn-shadow: #999; --mdn-nosupport-text: #ccc; --mdn-pass: green; --mdn-fail: red; } @media (prefers-color-scheme: dark) { :root { --mdn-bg: #222; --mdn-shadow: #444; --mdn-nosupport-text: #666; --mdn-pass: #690; --mdn-fail: #d22; } } .mdn-anno { background: var(--mdn-bg, #EEE); border-radius: .25em; box-shadow: 0 0 3px var(--mdn-shadow, #999); color: var(--text, black); font: 1em sans-serif; hyphens: none; max-width: min-content; overflow: hidden; padding: 0.2em; position: absolute; right: 0.3em; top: auto; white-space: nowrap; word-wrap: normal; z-index: 8; } .mdn-anno.unpositioned { display: none; } .mdn-anno.overlapping-main { opacity: .2; transition: opacity .1s; } .mdn-anno[open] { opacity: 1; z-index: 9; min-width: 9em; } .mdn-anno:hover { opacity: 1; outline: var(--text, black) 1px solid; } .mdn-anno > summary { font-weight: normal; text-align: right; cursor: pointer; display: block; } .mdn-anno > summary > .less-than-two-engines-flag { color: var(--mdn-fail); padding-right: 2px; } .mdn-anno > summary > .all-engines-flag { color: var(--mdn-pass); padding-right: 2px; } .mdn-anno > summary > span { color: #fff; background-color: #000; font-weight: normal; font-family: zillaslab, Palatino, "Palatino Linotype", serif; padding: 2px 3px 0px 3px; line-height: 1.3em; vertical-align: top; } .mdn-anno > .feature { margin-top: 20px; } .mdn-anno > .feature:not(:first-of-type) { border-top: 1px solid #999; margin-top: 6px; padding-top: 2px; } .mdn-anno > .feature > .less-than-two-engines-text { color: var(--mdn-fail); } .mdn-anno > .feature > .all-engines-text { color: var(--mdn-pass); } .mdn-anno > .feature > p { font-size: .75em; margin-top: 6px; margin-bottom: 0; } .mdn-anno > .feature > p + p { margin-top: 3px; } .mdn-anno > .feature > .support { display: block; font-size: 0.6em; margin: 0; padding: 0; margin-top: 2px; } .mdn-anno > .feature > .support + div { padding-top: 0.5em; } .mdn-anno > .feature > .support > hr { display: block; border: none; border-top: 1px dotted #999; padding: 3px 0px 0px 0px; margin: 2px 3px 0px 3px; } .mdn-anno > .feature > .support > hr::before { content: ""; } .mdn-anno > .feature > .support > span { padding: 0.2em 0; display: block; display: table; } .mdn-anno > .feature > .support > span.no { color: var(--mdn-nosupport-text); filter: grayscale(100%); } .mdn-anno > .feature > .support > span.no::before { opacity: 0.5; } .mdn-anno > .feature > .support > span:first-of-type { padding-top: 0.5em; } .mdn-anno > .feature > .support > span > span { padding: 0 0.5em; display: table-cell; } .mdn-anno > .feature > .support > span > span:first-child { width: 100%; } .mdn-anno > .feature > .support > span > span:last-child { width: 100%; white-space: pre; padding: 0; } .mdn-anno > .feature > .support > span::before { content: ' '; display: table-cell; min-width: 1.5em; height: 1.5em; background: no-repeat center center; background-size: contain; text-align: right; font-size: 0.75em; font-weight: bold; } .mdn-anno > .feature > .support > .chrome_android::before { background-image: url(https://resources.whatwg.org/browser-logos/chrome.svg); } .mdn-anno > .feature > .support > .firefox_android::before { background-image: url(https://resources.whatwg.org/browser-logos/firefox.png); } .mdn-anno > .feature > .support > .chrome::before { background-image: url(https://resources.whatwg.org/browser-logos/chrome.svg); } .mdn-anno > .feature > .support > .edge_blink::before { background-image: url(https://resources.whatwg.org/browser-logos/edge.svg); } .mdn-anno > .feature > .support > .edge::before { background-image: url(https://resources.whatwg.org/browser-logos/edge_legacy.svg); } .mdn-anno > .feature > .support > .firefox::before { background-image: url(https://resources.whatwg.org/browser-logos/firefox.png); } .mdn-anno > .feature > .support > .ie::before { background-image: url(https://resources.whatwg.org/browser-logos/ie.png); } .mdn-anno > .feature > .support > .safari_ios::before { background-image: url(https://resources.whatwg.org/browser-logos/safari-ios.svg); } .mdn-anno > .feature > .support > .nodejs::before { background-image: url(https://nodejs.org/favicon.ico); } .mdn-anno > .feature > .support > .opera_android::before { background-image: url(https://resources.whatwg.org/browser-logos/opera.svg); } .mdn-anno > .feature > .support > .opera::before { background-image: url(https://resources.whatwg.org/browser-logos/opera.svg); } .mdn-anno > .feature > .support > .safari::before { background-image: url(https://resources.whatwg.org/browser-logos/safari.png); } .mdn-anno > .feature > .support > .samsunginternet_android::before { background-image: url(https://resources.whatwg.org/browser-logos/samsung.svg); } .mdn-anno > .feature > .support > .webview_android::before { background-image: url(https://resources.whatwg.org/browser-logos/android-webview.png); } .name-slug-mismatch { color: red; } .caniuse-status:hover { z-index: 9; } /* dt, li, .issue, .note, and .example are "position: relative", so to put annotation at right margin, must move to right of containing block */; .h-entry:not(.status-LS) dt > .mdn-anno, .h-entry:not(.status-LS) li > .mdn-anno, .h-entry:not(.status-LS) .issue > .mdn-anno, .h-entry:not(.status-LS) .note > .mdn-anno, .h-entry:not(.status-LS) .example > .mdn-anno { right: -6.7em; } .h-entry p + .mdn-anno { margin-top: 0; } h2 + .mdn-anno.after { margin: -48px 0 0 0; } h3 + .mdn-anno.after { margin: -46px 0 0 0; } h4 + .mdn-anno.after { margin: -42px 0 0 0; } h5 + .mdn-anno.after { margin: -40px 0 0 0; } h6 + .mdn-anno.after { margin: -40px 0 0 0; } </style> <style>/* Boilerplate: style-ref-hints */ :root { --ref-hint-bg: #ddd; --ref-hint-text: var(--text); } @media (prefers-color-scheme: dark) { :root { --ref-hint-bg: #222; --ref-hint-text: var(--text); } } .ref-hint { display: inline-block; position: absolute; z-index: 35; width: 20em; width: 300px; height: auto; max-height: 500px; overflow: auto; padding: 0.5em 0.5em; font: small Helvetica Neue, sans-serif, Droid Sans Fallback; background: var(--ref-hint-bg); color: var(--ref-hint-text); border: outset 0.2em; white-space: normal; /* in case it's moved into a pre */ } .ref-hint * { margin: 0; padding: 0; text-indent: 0; } .ref-hint ul { padding: 0 0 0 1em; list-style: none; } </style> <style>/* Boilerplate: style-selflinks */ :root { --selflink-text: white; --selflink-bg: gray; --selflink-hover-text: black; } .heading, .issue, .note, .example, li, dt { position: relative; } a.self-link { position: absolute; top: 0; left: calc(-1 * (3.5rem - 26px)); width: calc(3.5rem - 26px); height: 2em; text-align: center; border: none; transition: opacity .2s; opacity: .5; } a.self-link:hover { opacity: 1; } .heading > a.self-link { font-size: 83%; } .example > a.self-link, .note > a.self-link, .issue > a.self-link { /* These blocks are overflow:auto, so positioning outside doesn't work. */ left: auto; right: 0; } li > a.self-link { left: calc(-1 * (3.5rem - 26px) - 2em); } dfn > a.self-link { top: auto; left: auto; opacity: 0; width: 1.5em; height: 1.5em; background: var(--selflink-bg); color: var(--selflink-text); font-style: normal; transition: opacity .2s, background-color .2s, color .2s; } dfn:hover > a.self-link { opacity: 1; } dfn > a.self-link:hover { color: var(--selflink-hover-text); } a.self-link::before { content: "¶"; } .heading > a.self-link::before { content: "§"; } dfn > a.self-link::before { content: "#"; } </style> <style>/* Boilerplate: style-wpt */ :root { --wpt-border: hsl(0, 0%, 60%); --wpt-bg: hsl(0, 0%, 95%); --wpt-text: var(--text); --wptheading-text: hsl(0, 0%, 30%); } @media (prefers-color-scheme: dark) { :root { --wpt-border: hsl(0, 0%, 30%); --wpt-bg: var(--borderedblock-bg); --wpt-text: var(--text); --wptheading-text: hsl(0, 0%, 60%); } } .wpt-tests-block { list-style: none; border-left: .5em solid var(--wpt-border); background: var(--wpt-bg); color: var(--wpt-text); margin: 1em auto; padding: .5em; } .wpt-tests-block summary { color: var(--wptheading-text); font-weight: normal; text-transform: uppercase; } .wpt-tests-block summary::marker{ color: var(--wpt-border); } .wpt-tests-block summary:hover::marker{ color: var(--wpt-text); } /* The only content of a wpt test block in its closed state is the <summary>, which contains the word TESTS, and that is absolutely positioned. In that closed state, wpt test blocks are styled to have a top margin whose height is exactly equal to the height of the absolutely positioned <summary>, and no other background/padding/margin/border. The wpt test block elements will therefore allow the maring of the previous/next block elements to collapse through them; if this combined margin would be larger than its own top margin, it stays as is, and therefore the pre-existing vertical rhythm of the document is undisturbed. If that combined margin would be smaller, it is grown to that size. This means that the wpt test block ensures that there's always enough vertical space to insert the summary, without adding more than is needed. */ .wpt-tests-block:not([open]){ padding: 0; border: none; background: none; font-size: 0.75em; line-height: 1; position: relative; margin: 1em 0 0; } .wpt-tests-block:not([open]) summary { position: absolute; right: 0; bottom: 0; } /* It is possible that both the last child of a block element and the block element itself would be annotated with a <wpt> block each. If the block element has a padding or a border, that's fine, but otherwise the bottom margin of the block and of its last child would collapse and both <wpt> elements would overlap, being both placed there. To avoid that, add 1px of padding to the <wpt> element annotating the last child to prevent the bottom margin of the block and of its last child from collapsing (and as much negative margin, as wel only want to prevent margin collapsing, but are not trying to actually take more space). */ .wpt-tests-block:not([open]):last-child { padding-bottom: 1px; margin-bottom: -1px; } /* Exception to the previous rule: don't do that in non-last list items, because it's not necessary, and would therefore consume more space than strictly needed. Lists must have list items as children, not <wpt> elements, so a <wpt> element cannot be a sibling of a list item, and the collision that the previous rule avoids cannot happen. */ li:not(:last-child) > .wpt-tests-block:not([open]):last-child, dd:not(:last-child) > .wpt-tests-block:not([open]):last-child { padding-bottom: 0; margin-bottom: 0; } .wpt-tests-block:not([open]):not(:hover){ opacity: 0.5; } .wpt-tests-list { list-style: none; display: grid; margin: 0; padding: 0; grid-template-columns: 1fr max-content auto auto; grid-column-gap: .5em; } .wpt-tests-block hr:last-child { display: none; } .wpt-test { display: contents; } .wpt-test > a { text-decoration: underline; border: none; } .wpt-test > .wpt-name { grid-column: 1; } .wpt-test > .wpt-results { grid-column: 2; } .wpt-test > .wpt-live { grid-column: 3; } .wpt-test > .wpt-source { grid-column: 4; } .wpt-test > .wpt-results { display: flex; gap: .1em; } .wpt-test .wpt-result { display: inline-block; height: 1em; width: 1em; border-radius: 50%; position: relative; } </style> <body class="h-entry"> <div class="head"> <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p> <h1 class="p-name no-ref" id="title">CSS Backgrounds and Borders Module Level 3</h1> <p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-09-16">16 September 2024</time></p> <details open> <summary>More details about this document</summary> <div data-fill-with="spec-metadata"> <dl> <dt>This version: <dd><a class="u-url" href="https://drafts.csswg.org/css-backgrounds/">https://drafts.csswg.org/css-backgrounds/</a> <dt>Latest published version: <dd><a href="https://www.w3.org/TR/css-backgrounds-3/">https://www.w3.org/TR/css-backgrounds-3/</a> <dt>Previous Versions: <dd><a href="https://www.w3.org/TR/2020/CR-css-backgrounds-3-20201222/" rel="prev">https://www.w3.org/TR/2020/CR-css-backgrounds-3-20201222/</a> <dd><a href="https://www.w3.org/TR/2017/CR-css-backgrounds-3-20171017/" rel="prev">https://www.w3.org/TR/2017/CR-css-backgrounds-3-20171017/</a> <dd><a href="https://www.w3.org/TR/2014/CR-css3-background-20140909/" rel="prev">https://www.w3.org/TR/2014/CR-css3-background-20140909/</a> <dt>Implementation Report: <dd><a href="https://wpt.fyi/results/css/css-backgrounds">https://wpt.fyi/results/css/css-backgrounds</a> <dt>Feedback: <dd><a href="https://github.com/w3c/csswg-drafts/labels/css-backgrounds-3">CSSWG Issues Repository</a> <dt class="editor">Editors: <dd class="editor p-author h-card vcard" data-editor-id="35400"><a class="p-name fn u-url url" href="http://fantasai.inkedblade.net/contact">Elika J. Etemad / fantasai</a> (<span class="p-org org">Apple</span>) <dd class="editor p-author h-card vcard" data-editor-id="43245"><a class="p-name fn u-email email" href="mailto:brad.kemper@gmail.com">Brad Kemper</a> (<span class="p-org org">Invited Expert</span>) <dt class="editor">Former Editor: <dd class="editor p-author h-card vcard" data-editor-id="3343"><a class="p-name fn u-email email" href="mailto:bert@w3.org">Bert Bos</a> (<span class="p-org org">W3C</span>) <dt>Suggest an Edit for this Spec: <dd><a href="https://github.com/w3c/csswg-drafts/blob/main/css-backgrounds-3/Overview.bs">GitHub Editor</a> <dt>Test Suite: <dd class="wpt-overview"><a href="https://wpt.fyi/results/css/css-backgrounds/">https://wpt.fyi/results/css/css-backgrounds/</a> </dl> </div> </details> <div data-fill-with="warning"></div> <p class="copyright" data-fill-with="copyright"><a href="https://www.w3.org/policies/#copyright">Copyright</a> © 2024 <a href="https://www.w3.org/">World Wide Web Consortium</a>. <abbr title="World Wide Web Consortium">W3C</abbr><sup>®</sup> <a href="https://www.w3.org/policies/#Legal_Disclaimer">liability</a>, <a href="https://www.w3.org/policies/#W3C_Trademarks">trademark</a> and <a href="https://www.w3.org/copyright/software-license/" rel="license" title="W3C Software and Document License">permissive document license</a> rules apply. </p> <hr title="Separator for header"> </div> <div class="p-summary" data-fill-with="abstract"> <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2> <p>This draft contains the features of CSS relating to borders and backgrounds. The main extensions compared to <a href="https://www.w3.org/TR/CSS2/">level 2</a> are borders consisting of images, boxes with multiple backgrounds, boxes with rounded corners and boxes with shadows.</p> <a href="https://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents (such as HTML and XML) on screen, on paper, etc. <script> const githubPrefix = "https://w3c.github.io/csswg-drafts/"; if(location.href.slice(0, githubPrefix.length) == githubPrefix) { const suffix = location.href.slice(githubPrefix.length); const draftUrl = "https://drafts.csswg.org/" + suffix; window.location.replace(draftUrl); } </script> </div> <h2 class="no-num no-toc no-ref heading settled" id="sotd"><span class="content">Status of this document</span></h2> <div data-fill-with="status"> <p> 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. </p> <p>Please send feedback by <a href="https://github.com/w3c/csswg-drafts/issues">filing issues in GitHub</a> (preferred), including the spec code “css-backgrounds” in the title, like this: “[css-backgrounds] <i>…summary of comment…</i>”. All issues and comments are <a href="https://lists.w3.org/Archives/Public/public-css-archive/">archived</a>. Alternately, feedback can be sent to the (<a href="https://lists.w3.org/Archives/Public/www-style/">archived</a>) public mailing list <a href="mailto:www-style@w3.org?Subject=%5Bcss-backgrounds%5D%20PUT%20SUBJECT%20HERE">www-style@w3.org</a>. </p> <p>This document is governed by the <a href="https://www.w3.org/policies/process/20231103/" id="w3c_process_revision">03 November 2023 W3C Process Document</a>. </p> <p></p> </div> <div data-fill-with="at-risk"> <p>The following features are at-risk, and may be dropped during the CR period: </p> <ul> <li>animatability of <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow">box-shadow</a> <li>applicability of <a class="property css" data-link-type="property" href="#propdef-border" id="ref-for-propdef-border">border</a> and its longhands to <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box">ruby annotation containers</a> </ul> <p>“At-risk” is a W3C Process term-of-art, and does not necessarily imply that the feature is in danger of being dropped or delayed. It means that the WG believes the feature may have difficulty being interoperably implemented in a timely manner, and marking it as such allows the WG to drop the feature if necessary when transitioning to the Proposed Rec stage, without having to publish a new Candidate Rec without the feature first.</p> </div> <nav data-fill-with="table-of-contents" id="toc"> <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2> <ol class="toc" role="directory"> <li> <a href="#introduction"><span class="secno">1</span> <span class="content">Introduction</span></a> <ol class="toc"> <li><a href="#placement"><span class="secno">1.1</span> <span class="content"> Module Interactions</span></a> <li><a href="#values"><span class="secno">1.2</span> <span class="content"> Value Definitions</span></a> </ol> <li> <a href="#backgrounds"><span class="secno">2</span> <span class="content"> Backgrounds</span></a> <ol class="toc"> <li><a href="#layering"><span class="secno">2.1</span> <span class="content"> Layering Multiple Background Images</span></a> <li><a href="#background-color"><span class="secno">2.2</span> <span class="content"> Base Color: the <span class="property">background-color</span> property</span></a> <li><a href="#background-image"><span class="secno">2.3</span> <span class="content"> Image Sources: the <span class="property">background-image</span> property</span></a> <li><a href="#background-repeat"><span class="secno">2.4</span> <span class="content"> Tiling Images: the <span class="property">background-repeat</span> property</span></a> <li><a href="#background-attachment"><span class="secno">2.5</span> <span class="content"> Affixing Images: the <span class="property">background-attachment</span> property</span></a> <li> <a href="#background-position"><span class="secno">2.6</span> <span class="content">Positioning Images: the <span class="property">background-position</span> property</span></a> <ol class="toc"> <li><a href="#bg-position-serialization"><span class="secno">2.6.1</span> <span class="content"> Serialization of <span class="property">background-position</span> values</span></a> </ol> <li><a href="#background-clip"><span class="secno">2.7</span> <span class="content"> Painting Area: the <span class="property">background-clip</span> property</span></a> <li><a href="#background-origin"><span class="secno">2.8</span> <span class="content"> Positioning Area: the <span class="property">background-origin</span> property</span></a> <li><a href="#background-size"><span class="secno">2.9</span> <span class="content">Sizing Images: the <span class="property">background-size</span> property</span></a> <li><a href="#background"><span class="secno">2.10</span> <span class="content"> Backgrounds Shorthand: the <span class="property">background</span> property</span></a> <li> <a href="#special-backgrounds"><span class="secno">2.11</span> <span class="content"> Backgrounds of Special Elements</span></a> <ol class="toc"> <li><a href="#root-background"><span class="secno">2.11.1</span> <span class="content"> The Canvas Background and the Root Element</span></a> <li><a href="#body-background"><span class="secno">2.11.2</span> <span class="content"> The Canvas Background and the HTML &lt;body> Element</span></a> <li><a href="#first-line-background"><span class="secno">2.11.3</span> <span class="content"> The <span class="css">::first-line</span> Pseudo-element‘s Background</span></a> </ol> </ol> <li> <a href="#borders"><span class="secno">3</span> <span class="content"> Borders</span></a> <ol class="toc"> <li><a href="#border-color"><span class="secno">3.1</span> <span class="content"> Line Colors: the <span class="property">border-color</span> properties</span></a> <li><a href="#border-style"><span class="secno">3.2</span> <span class="content">Line Patterns: the <span class="property">border-style</span> properties</span></a> <li><a href="#border-width"><span class="secno">3.3</span> <span class="content"> Line Thickness: the <span class="property">border-width</span> properties</span></a> <li><a href="#border-shorthands"><span class="secno">3.4</span> <span class="content"> Border Shorthand Properties</span></a> </ol> <li> <a href="#corners"><span class="secno">4</span> <span class="content"> Rounded Corners</span></a> <ol class="toc"> <li><a href="#border-radius"><span class="secno">4.1</span> <span class="content"> Curve Radii: the <span class="property">border-radius</span> properties</span></a> <li><a href="#corner-shaping"><span class="secno">4.2</span> <span class="content"> Corner Shaping</span></a> <li><a href="#corner-clipping"><span class="secno">4.3</span> <span class="content"> Corner Clipping</span></a> <li><a href="#corner-transitions"><span class="secno">4.4</span> <span class="content"> Color and Style Transitions</span></a> <li><a href="#corner-overlap"><span class="secno">4.5</span> <span class="content"> Overlapping Curves</span></a> <li><a href="#border-radius-tables"><span class="secno">4.6</span> <span class="content"> Effect on Tables</span></a> </ol> <li> <a href="#border-images"><span class="secno">5</span> <span class="content"> Border Images</span></a> <ol class="toc"> <li><a href="#border-image-source"><span class="secno">5.1</span> <span class="content"> Image Source: the <span class="property">border-image-source</span> property</span></a> <li><a href="#border-image-slice"><span class="secno">5.2</span> <span class="content"> Image Slicing: the <span class="property">border-image-slice</span> property</span></a> <li><a href="#border-image-width"><span class="secno">5.3</span> <span class="content"> Drawing Areas: the <span class="property">border-image-width</span> property</span></a> <li><a href="#border-image-outset"><span class="secno">5.4</span> <span class="content"> Edge Overhang: the <span class="property">border-image-outset</span> property</span></a> <li><a href="#border-image-repeat"><span class="secno">5.5</span> <span class="content"> Image Tiling: the <span class="property">border-image-repeat</span> property</span></a> <li><a href="#border-image-process"><span class="secno">5.6</span> <span class="content"> Drawing the Border Image</span></a> <li><a href="#border-image"><span class="secno">5.7</span> <span class="content"> Border Image Shorthand: the <span class="property">border-image</span> property</span></a> <li><a href="#border-image-tables"><span class="secno">5.8</span> <span class="content">Effect on Tables</span></a> </ol> <li> <a href="#misc"><span class="secno">6</span> <span class="content">Miscellaneous Effects</span></a> <ol class="toc"> <li> <a href="#box-shadow"><span class="secno">6.1</span> <span class="content">Drop Shadows: the <span class="property">box-shadow</span> property</span></a> <ol class="toc"> <li><a href="#shadow-shape"><span class="secno">6.1.1</span> <span class="content"> Shadow Shape, Spread, and Knockout</span></a> <li><a href="#shadow-blur"><span class="secno">6.1.2</span> <span class="content"> Blurring Shadow Edges</span></a> <li><a href="#shadow-layers"><span class="secno">6.1.3</span> <span class="content"> Layering, Layout, and Other Details</span></a> </ol> </ol> <li> <a href="#levels"><span class="secno">7</span> <span class="content"> Levels</span></a> <ol class="toc"> <li><a href="#level-1"><span class="secno">7.1</span> <span class="content"> Level 1</span></a> <li><a href="#level-2"><span class="secno">7.2</span> <span class="content"> Level 2</span></a> <li><a href="#level-3"><span class="secno">7.3</span> <span class="content"> Level 3</span></a> </ol> <li> <a href="#changes"><span class="secno">8</span> <span class="content"> Changes</span></a> <ol class="toc"> <li><a href="#changes-2023-02"><span class="secno">8.1</span> <span class="content"> Changes since the 14 February 2023 Candidate Recommendation Snapshot</span></a> <li><a href="#changes-2020-12"><span class="secno">8.2</span> <span class="content"> Changes since the 22 December 2020 Candidate Recommendation Snapshot</span></a> <li><a href="#changes-2017-10"><span class="secno">8.3</span> <span class="content"> Changes since the 17 October 2017 Candidate Recommendation</span></a> <li><a href="#changes-2014-09"><span class="secno">8.4</span> <span class="content"> Changes since the 9 September 2014 Candidate Recommendation</span></a> <li><a href="#changes-2014-02"><span class="secno">8.5</span> <span class="content"> Changes since the 4 February 2014 Last Call Working Draft</span></a> <li><a href="#changes-2012-07"><span class="secno">8.6</span> <span class="content"> Changes since the 24 July 2012 Candidate Recommendation</span></a> <li><a href="#changes-2012-04"><span class="secno">8.7</span> <span class="content"> Changes since the 17 April 2012 Candidate Recommendation</span></a> <li><a href="#changes-2012LC"><span class="secno">8.8</span> <span class="content"> Changes since the 14 February 2012 “Last Call” Working Draft</span></a> <li><a href="#changes-2011"><span class="secno">8.9</span> <span class="content"> Changes Since the 15 February 2011 Candidate Recommendation</span></a> <li><a href="#changes-2009"><span class="secno">8.10</span> <span class="content"> Changes Since the 17 December 2009 Candidate Recommendation</span></a> </ol> <li><a href="#acknowledgments"><span class="secno">9</span> <span class="content">Acknowledgments</span></a> <li><a href="#privacy"><span class="secno">10</span> <span class="content">Privacy Considerations</span></a> <li><a href="#security"><span class="secno">11</span> <span class="content">Security Considerations</span></a> <li> <a href="#w3c-conformance"><span class="secno"></span> <span class="content"> Conformance</span></a> <ol class="toc"> <li><a href="#w3c-conventions"><span class="secno"></span> <span class="content"> Document conventions</span></a> <li><a href="#w3c-conformance-classes"><span class="secno"></span> <span class="content"> Conformance classes</span></a> <li> <a href="#w3c-partial"><span class="secno"></span> <span class="content"> Partial implementations</span></a> <ol class="toc"> <li><a href="#w3c-conform-future-proofing"><span class="secno"></span> <span class="content"> Implementations of Unstable and Proprietary Features</span></a> </ol> <li><a href="#w3c-testing"><span class="secno"></span> <span class="content"> Non-experimental implementations</span></a> </ol> <li> <a href="#index"><span class="secno"></span> <span class="content">Index</span></a> <ol class="toc"> <li><a href="#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a> <li><a href="#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a> </ol> <li> <a href="#references"><span class="secno"></span> <span class="content">References</span></a> <ol class="toc"> <li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a> <li><a href="#informative"><span class="secno"></span> <span class="content">Informative References</span></a> </ol> <li><a href="#property-index"><span class="secno"></span> <span class="content">Property Index</span></a> </ol> </nav> <main> <h2 class="heading settled" data-level="1" id="introduction"><span class="secno">1. </span><span class="content">Introduction</span><a class="self-link" href="#introduction"></a></h2> <p><em>This subsection is not normative.</em></p> <p>When elements are rendered according to the <a href="https://www.w3.org/TR/css-box-3/#box-model">CSS box model</a> <a data-link-type="biblio" href="#biblio-css-box-3" title="CSS Box Model Module Level 3">[CSS-BOX-3]</a>, each element is either not displayed at all, or formatted as one or more rectangular boxes. Each box has a rectangular <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#content-area" id="ref-for-content-area">content area</a>, a band of <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding" id="ref-for-padding">padding</a> around the content, a <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border" id="ref-for-border">border</a> around the padding, and a <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#margin" id="ref-for-margin">margin</a> outside the border. (The margin may actually be negative, but margins have no influence on the background and border.)</p> <figure> <img alt="Diagram of a typical box, showing the content, padding, border and margin areas" height="278" src="images/box.png" width="458"> <figcaption> The various areas and edges of a typical box. (This diagram is explained in the CSS Box Model Module <a data-link-type="biblio" href="#biblio-css-box-3" title="CSS Box Model Module Level 3">[CSS-BOX-3]</a>.) </figcaption> </figure> <p>The properties of this module deal with the decoration of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-area" id="ref-for-border-area">border area</a> and with the background of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#content-area" id="ref-for-content-area①">content</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding-area" id="ref-for-padding-area">padding</a>, and <span id="ref-for-border-area①">border</span> areas. Additionally the box may be given a “drop-shadow” effect with the <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow①">box-shadow</a> property.</p> <p>If an element is broken into multiple <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#box-fragment" id="ref-for-box-fragment">box fragments</a>, <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break" id="ref-for-propdef-box-decoration-break">box-decoration-break</a> <a data-link-type="biblio" href="#biblio-css-break-3" title="CSS Fragmentation Module Level 3">[CSS-BREAK-3]</a> defines how the borders and background are divided over the various fragments. (An element can result in more than one fragment if it is broken at the end of a line, at the end of a column or at the end of a page; and continued in the next line, column or page.)</p> <p>The relative stacking order of backgrounds, borders, and shadows is given in this module. For how these layers interact with other rendered content, see Appendix E “Elaborate description of Stacking Contexts” in <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a>.</p> <h3 class="heading settled" data-level="1.1" id="placement"><span class="secno">1.1. </span><span class="content"> Module Interactions</span><a class="self-link" href="#placement"></a></h3> <p>This module replaces and extends the background and border features defined in <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a> sections 8.5 and 14.2.</p> <p>All properties in this module apply to the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-3/#first-letter0" id="ref-for-first-letter0">::first-letter</a> <a data-link-type="dfn" href="https://drafts.csswg.org/selectors-4/#pseudo-element" id="ref-for-pseudo-element">pseudo-element</a>. The <a href="#backgrounds">background properties</a> and <a href="#corners">border-radius properties</a> also apply to the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-3/#sel-first-line" id="ref-for-sel-first-line">::first-line</a> <span id="ref-for-pseudo-element①">pseudo-element</span>. The UA may (but is not required to) apply the <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image">border-image</a> or <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow②">box-shadow</a> properties to <span class="css" id="ref-for-sel-first-line①">::first-line</span>. The UA must not apply the <a href="#borders">border-color/style/width properties</a> to <span class="css" id="ref-for-sel-first-line②">::first-line</span>. <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a></p> <h3 class="heading settled" data-level="1.2" id="values"><span class="secno">1.2. </span><span class="content"> Value Definitions</span><a class="self-link" href="#values"></a></h3> <p>This specification follows the <a href="https://www.w3.org/TR/CSS2/about.html#property-defs">CSS property definition conventions</a> from <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a> using the <a href="https://www.w3.org/TR/css-values-3/#value-defs">value definition syntax</a> from <a data-link-type="biblio" href="#biblio-css-values-3" title="CSS Values and Units Module Level 3">[CSS-VALUES-3]</a>. Value types not defined in this specification are defined in CSS Values &amp; Units <span title="CSS Values and Units Module Level 3">[CSS-VALUES-3]</span>. Combination with other CSS modules may expand the definitions of these value types. For example, combining with <a href="https://www.w3.org/TR/css-images/">CSS Images</a> allows for using CSS gradients as <a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image">background-image</a> or <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image①">border-image</a> values. <a data-link-type="biblio" href="#biblio-css-images-3" title="CSS Images Module Level 3">[CSS-IMAGES-3]</a></p> <p>In addition to the property-specific values listed in their definitions, all properties defined in this specification also accept the <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#css-wide-keywords" id="ref-for-css-wide-keywords">CSS-wide keywords</a> as their property value. For readability they have not been repeated explicitly.</p> <h2 class="heading settled" data-level="2" id="backgrounds"><span class="secno">2. </span><span class="content"> Backgrounds</span><a class="self-link" href="#backgrounds"></a></h2> <p>Each box has a background layer that may be fully transparent (the default), or filled with a color and/or one or more images. The background properties specify what color (<a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color">background-color</a>) and images (<a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image①">background-image</a>) to use, and how they are sized, positioned, tiled, etc.</p> <p>The background properties are not inherited, but the parent box’s background will shine through by default because of the initial <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-transparent" id="ref-for-valdef-color-transparent">transparent</a> value on <a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color①">background-color</a>.</p> <h3 class="heading settled" data-level="2.1" id="layering"><span class="secno">2.1. </span><span class="content"> Layering Multiple Background Images</span><a class="self-link" href="#layering"></a></h3> <p>The background of a box can have multiple <dfn class="dfn-paneled" data-dfn-type="dfn" data-export data-local-lt="layer" data-lt="background image layer" id="background-image-layer">background image layers</dfn>. The number of layers is determined by the number of comma-separated values in the <a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image②">background-image</a> property. Note that a value of <a class="css" data-link-type="maybe" href="#valdef-background-image-none" id="ref-for-valdef-background-image-none">none</a> still creates a layer.</p> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-none-none-and-color.html" title="css/css-backgrounds/background-none-none-and-color.html">background-none-none-and-color.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-none-none-and-color.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-none-none-and-color.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/order-of-images.htm" title="css/css-backgrounds/order-of-images.htm">order-of-images.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/order-of-images.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/order-of-images.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/scroll-positioned-multiple-background-images.html" title="css/css-backgrounds/scroll-positioned-multiple-background-images.html">scroll-positioned-multiple-background-images.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/scroll-positioned-multiple-background-images.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/scroll-positioned-multiple-background-images.html"><small>(source)</small></a> </ul> </details> <p>Each of the <a data-link-type="dfn" href="#background-images" id="ref-for-background-images">background images</a> is sized, positioned, and tiled according to the corresponding value in the other background properties. The lists are matched up from the first value: excess values at the end are not used. If a property doesn’t have enough comma-separated values to match the number of layers, the <a data-link-type="dfn" href="https://drafts.csswg.org/css-2023/#user-agent" id="ref-for-user-agent">UA</a> must calculate its <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#used-value" id="ref-for-used-value">used value</a> by repeating the list of values until there are enough.</p> <div class="example" id="example-bef8b176"> <a class="self-link" href="#example-bef8b176"></a> For example, this set of declarations: <pre>background-image: url(flower.png), url(ball.png), url(grass.png); background-position: center center, 20% 80%, top left, bottom right; background-origin: border-box, content-box; background-repeat: no-repeat; </pre> <p>has exactly the same effect as this set, with the extra position dropped and the missing values for <a class="property css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin">background-origin</a> and <a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat">background-repeat</a> filled in (emphasized for clarity):</p> <pre>background-image: url(flower.png), url(ball.png), url(grass.png); background-position: center center, 20% 80%, top left; background-origin: border-box, content-box<strong>, border-box</strong>; background-repeat: no-repeat<strong>, no-repeat, no-repeat</strong>; </pre> </div> <p>The first image in the list is the <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer">layer</a> closest to the user, the next one is painted behind the first, and so on. The background color, if present, is painted below all of the other <span id="ref-for-background-image-layer①">layers</span>.</p> <p class="note" role="note"><span class="marker">Note:</span> The <a href="#border-images">border-image properties</a> can also define a background image, which, if present, is painted on top of the background <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer②">layers</a> created by the background properties.</p> <h3 class="heading settled" data-level="2.2" id="background-color"><span class="secno">2.2. </span><span class="content"> Base Color: the <a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color②">background-color</a> property</span><span id="the-background-color"></span><a class="self-link" href="#background-color"></a></h3> <table class="def propdef" data-link-for-hint="background-color"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background-color">background-color</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color">&lt;color></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>transparent <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>computed color <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>by computed value </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-backdrop-infinite-duration-crash.html" title="css/css-backgrounds/animations/background-color-animation-backdrop-infinite-duration-crash.html">background-color-animation-backdrop-infinite-duration-crash.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-backdrop-infinite-duration-crash.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-backdrop-infinite-duration-crash.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-element-not-visible-at-current-viewport.html" title="css/css-backgrounds/animations/background-color-animation-element-not-visible-at-current-viewport.html">background-color-animation-element-not-visible-at-current-viewport.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-element-not-visible-at-current-viewport.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-element-not-visible-at-current-viewport.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-fallback-additive-keyframe.html" title="css/css-backgrounds/animations/background-color-animation-fallback-additive-keyframe.html">background-color-animation-fallback-additive-keyframe.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-fallback-additive-keyframe.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-fallback-additive-keyframe.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-fallback-missing-0-percent.html" title="css/css-backgrounds/animations/background-color-animation-fallback-missing-0-percent.html">background-color-animation-fallback-missing-0-percent.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-fallback-missing-0-percent.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-fallback-missing-0-percent.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-fallback-missing-100-percent.html" title="css/css-backgrounds/animations/background-color-animation-fallback-missing-100-percent.html">background-color-animation-fallback-missing-100-percent.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-fallback-missing-100-percent.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-fallback-missing-100-percent.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-fallback-replace.html" title="css/css-backgrounds/animations/background-color-animation-fallback-replace.html">background-color-animation-fallback-replace.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-fallback-replace.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-fallback-replace.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-field-crash.html" title="css/css-backgrounds/animations/background-color-animation-field-crash.html">background-color-animation-field-crash.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-field-crash.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-field-crash.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-fragmented.html" title="css/css-backgrounds/animations/background-color-animation-fragmented.html">background-color-animation-fragmented.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-fragmented.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-fragmented.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-half-opaque.html" title="css/css-backgrounds/animations/background-color-animation-half-opaque.html">background-color-animation-half-opaque.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-half-opaque.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-half-opaque.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-in-body.html" title="css/css-backgrounds/animations/background-color-animation-in-body.html">background-color-animation-in-body.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-in-body.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-in-body.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-non-empty-no-draw-crash.html" title="css/css-backgrounds/animations/background-color-animation-non-empty-no-draw-crash.html">background-color-animation-non-empty-no-draw-crash.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-non-empty-no-draw-crash.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-non-empty-no-draw-crash.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-non-zero-size-element-change-to-zero.html" title="css/css-backgrounds/animations/background-color-animation-non-zero-size-element-change-to-zero.html">background-color-animation-non-zero-size-element-change-to-zero.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-non-zero-size-element-change-to-zero.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-non-zero-size-element-change-to-zero.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-pseudo-element.html" title="css/css-backgrounds/animations/background-color-animation-pseudo-element.html">background-color-animation-pseudo-element.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-pseudo-element.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-pseudo-element.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-removed-element-crash.html" title="css/css-backgrounds/animations/background-color-animation-removed-element-crash.html">background-color-animation-removed-element-crash.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-removed-element-crash.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-removed-element-crash.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-single-keyframe.html" title="css/css-backgrounds/animations/background-color-animation-single-keyframe.html">background-color-animation-single-keyframe.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-single-keyframe.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-single-keyframe.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-three-keyframes1.html" title="css/css-backgrounds/animations/background-color-animation-three-keyframes1.html">background-color-animation-three-keyframes1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-three-keyframes1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-three-keyframes1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-three-keyframes2.html" title="css/css-backgrounds/animations/background-color-animation-three-keyframes2.html">background-color-animation-three-keyframes2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-three-keyframes2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-three-keyframes2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-three-keyframes3.html" title="css/css-backgrounds/animations/background-color-animation-three-keyframes3.html">background-color-animation-three-keyframes3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-three-keyframes3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-three-keyframes3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-will-change-contents.html" title="css/css-backgrounds/animations/background-color-animation-will-change-contents.html">background-color-animation-will-change-contents.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-will-change-contents.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-will-change-contents.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-with-blur.html" title="css/css-backgrounds/animations/background-color-animation-with-blur.html">background-color-animation-with-blur.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-with-blur.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-with-blur.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-with-images.html" title="css/css-backgrounds/animations/background-color-animation-with-images.html">background-color-animation-with-images.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-with-images.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-with-images.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-with-mask.html" title="css/css-backgrounds/animations/background-color-animation-with-mask.html">background-color-animation-with-mask.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-with-mask.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-with-mask.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-with-table1.html" title="css/css-backgrounds/animations/background-color-animation-with-table1.html">background-color-animation-with-table1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-with-table1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-with-table1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-with-table2.html" title="css/css-backgrounds/animations/background-color-animation-with-table2.html">background-color-animation-with-table2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-with-table2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-with-table2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-with-table3.html" title="css/css-backgrounds/animations/background-color-animation-with-table3.html">background-color-animation-with-table3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-with-table3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-with-table3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-with-table4.html" title="css/css-backgrounds/animations/background-color-animation-with-table4.html">background-color-animation-with-table4.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-with-table4.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-with-table4.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-with-zero-playbackRate.html" title="css/css-backgrounds/animations/background-color-animation-with-zero-playbackRate.html">background-color-animation-with-zero-playbackRate.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-with-zero-playbackRate.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-with-zero-playbackRate.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-zero-size-element-change-to-non-zero.html" title="css/css-backgrounds/animations/background-color-animation-zero-size-element-change-to-non-zero.html">background-color-animation-zero-size-element-change-to-non-zero.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-zero-size-element-change-to-non-zero.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-zero-size-element-change-to-non-zero.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation-zero-size-element.html" title="css/css-backgrounds/animations/background-color-animation-zero-size-element.html">background-color-animation-zero-size-element.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation-zero-size-element.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation-zero-size-element.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-animation.html" title="css/css-backgrounds/animations/background-color-animation.html">background-color-animation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-animation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-animation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-interpolation.html" title="css/css-backgrounds/animations/background-color-interpolation.html">background-color-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-scroll-into-viewport.html" title="css/css-backgrounds/animations/background-color-scroll-into-viewport.html">background-color-scroll-into-viewport.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-scroll-into-viewport.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-scroll-into-viewport.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-transition-colormix.html" title="css/css-backgrounds/animations/background-color-transition-colormix.html">background-color-transition-colormix.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-transition-colormix.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-transition-colormix.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-transition-currentcolor.html" title="css/css-backgrounds/animations/background-color-transition-currentcolor.html">background-color-transition-currentcolor.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-transition-currentcolor.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-transition-currentcolor.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-transition.html" title="css/css-backgrounds/animations/background-color-transition.html">background-color-transition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-transition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-transition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-color-transparent-animation-in-body.html" title="css/css-backgrounds/animations/background-color-transparent-animation-in-body.html">background-color-transparent-animation-in-body.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-color-transparent-animation-in-body.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-color-transparent-animation-in-body.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/invalidation/background-color-animation-with-zero-alpha.html" title="css/css-backgrounds/animations/invalidation/background-color-animation-with-zero-alpha.html">background-color-animation-with-zero-alpha.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/invalidation/background-color-animation-with-zero-alpha.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/invalidation/background-color-animation-with-zero-alpha.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/invalidation/background-color-transition-obscured.html" title="css/css-backgrounds/animations/invalidation/background-color-transition-obscured.html">background-color-transition-obscured.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/invalidation/background-color-transition-obscured.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/invalidation/background-color-transition-obscured.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/invalidation/background-color-transition-with-delay.html" title="css/css-backgrounds/animations/invalidation/background-color-transition-with-delay.html">background-color-transition-with-delay.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/invalidation/background-color-transition-with-delay.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/invalidation/background-color-transition-with-delay.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/invalidation/background-color-transition-with-initially-transparent.html" title="css/css-backgrounds/animations/invalidation/background-color-transition-with-initially-transparent.html">background-color-transition-with-initially-transparent.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/invalidation/background-color-transition-with-initially-transparent.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/invalidation/background-color-transition-with-initially-transparent.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/two-background-color-animation-diff-length1.html" title="css/css-backgrounds/animations/two-background-color-animation-diff-length1.html">two-background-color-animation-diff-length1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/two-background-color-animation-diff-length1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/two-background-color-animation-diff-length1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/two-background-color-animation-diff-length2.html" title="css/css-backgrounds/animations/two-background-color-animation-diff-length2.html">two-background-color-animation-diff-length2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/two-background-color-animation-diff-length2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/two-background-color-animation-diff-length2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/two-background-color-animation-diff-length3.html" title="css/css-backgrounds/animations/two-background-color-animation-diff-length3.html">two-background-color-animation-diff-length3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/two-background-color-animation-diff-length3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/two-background-color-animation-diff-length3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-none-none-and-color.html" title="css/css-backgrounds/background-none-none-and-color.html">background-none-none-and-color.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-none-none-and-color.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-none-none-and-color.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-001.html" title="css/css-backgrounds/background-color-body-propagation-001.html">background-color-body-propagation-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-002.html" title="css/css-backgrounds/background-color-body-propagation-002.html">background-color-body-propagation-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-003.html" title="css/css-backgrounds/background-color-body-propagation-003.html">background-color-body-propagation-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-004.html" title="css/css-backgrounds/background-color-body-propagation-004.html">background-color-body-propagation-004.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-004.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-004.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-005.html" title="css/css-backgrounds/background-color-body-propagation-005.html">background-color-body-propagation-005.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-005.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-005.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-006.html" title="css/css-backgrounds/background-color-body-propagation-006.html">background-color-body-propagation-006.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-006.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-006.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-007.html" title="css/css-backgrounds/background-color-body-propagation-007.html">background-color-body-propagation-007.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-007.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-007.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-008.html" title="css/css-backgrounds/background-color-body-propagation-008.html">background-color-body-propagation-008.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-008.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-008.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-body-propagation-009.html" title="css/css-backgrounds/background-color-body-propagation-009.html">background-color-body-propagation-009.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-body-propagation-009.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-body-propagation-009.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-clip.html" title="css/css-backgrounds/background-color-clip.html">background-color-clip.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-clip.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-clip.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-root-propagation-001.html" title="css/css-backgrounds/background-color-root-propagation-001.html">background-color-root-propagation-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-root-propagation-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-root-propagation-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-color-root-propagation-002.html" title="css/css-backgrounds/background-color-root-propagation-002.html">background-color-root-propagation-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-color-root-propagation-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-color-root-propagation-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/bg-color-with-gradient.html" title="css/css-backgrounds/bg-color-with-gradient.html">bg-color-with-gradient.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/bg-color-with-gradient.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/bg-color-with-gradient.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/child-move-reveals-parent-background.html" title="css/css-backgrounds/child-move-reveals-parent-background.html">child-move-reveals-parent-background.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/child-move-reveals-parent-background.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/child-move-reveals-parent-background.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/color-mix-currentcolor-background-repaint-parent.html" title="css/css-backgrounds/color-mix-currentcolor-background-repaint-parent.html">color-mix-currentcolor-background-repaint-parent.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/color-mix-currentcolor-background-repaint-parent.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/color-mix-currentcolor-background-repaint-parent.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/color-mix-currentcolor-background-repaint.html" title="css/css-backgrounds/color-mix-currentcolor-background-repaint.html">color-mix-currentcolor-background-repaint.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/color-mix-currentcolor-background-repaint.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/color-mix-currentcolor-background-repaint.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/hidpi/simple-bg-color.html" title="css/css-backgrounds/hidpi/simple-bg-color.html">simple-bg-color.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/hidpi/simple-bg-color.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/hidpi/simple-bg-color.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inline-background-rtl-001.html" title="css/css-backgrounds/inline-background-rtl-001.html">inline-background-rtl-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inline-background-rtl-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inline-background-rtl-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-color-computed.html" title="css/css-backgrounds/parsing/background-color-computed.html">background-color-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-color-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-color-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-color-invalid.html" title="css/css-backgrounds/parsing/background-color-invalid.html">background-color-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-color-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-color-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-color-valid.html" title="css/css-backgrounds/parsing/background-color-valid.html">background-color-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-color-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-color-valid.html"><small>(source)</small></a> <li class="wpt-test"><span class="wpt-name">color-behind-images.htm (visual test) </span><a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/color-behind-images.htm"><small>(source)</small></a> </ul> </details> <p>This property sets the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="background-color-layer">background color</dfn> of a box. This color is drawn behind any background images.</p> <div class="example" id="example-ed26f60a"> <a class="self-link" href="#example-ed26f60a"></a> Example: <pre>h1 { background-color: #F00 } /* Sets background to red. */</pre> </div> <p>The <a data-link-type="dfn" href="#background-color-layer" id="ref-for-background-color-layer">background color</a> is clipped according to the <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip">background-clip</a> value associated with the bottom-most <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer③">background image layer</a>.</p> <h3 class="heading settled" data-level="2.3" id="background-image"><span class="secno">2.3. </span><span class="content"> Image Sources: the <a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image③">background-image</a> property</span><span id="the-background-image"></span><a class="self-link" href="#background-image"></a></h3> <table class="def propdef" data-link-for-hint="background-image"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background-image">background-image</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-bg-image" id="ref-for-typedef-bg-image">&lt;bg-image></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma">#</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>none <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>list, each item either an <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-images-3/#typedef-image" id="ref-for-typedef-image">&lt;image></a> or the keyword <a class="css" data-link-type="maybe" href="#valdef-background-image-none" id="ref-for-valdef-background-image-none①">none</a> <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>discrete </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-001.html" title="css/css-backgrounds/background-image-001.html">background-image-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-002.html" title="css/css-backgrounds/background-image-002.html">background-image-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-003.html" title="css/css-backgrounds/background-image-003.html">background-image-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-004.html" title="css/css-backgrounds/background-image-004.html">background-image-004.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-004.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-004.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-005.html" title="css/css-backgrounds/background-image-005.html">background-image-005.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-005.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-005.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-006.html" title="css/css-backgrounds/background-image-006.html">background-image-006.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-006.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-006.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-007.html" title="css/css-backgrounds/background-image-007.html">background-image-007.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-007.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-007.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-centered-with-border-radius.html" title="css/css-backgrounds/background-image-centered-with-border-radius.html">background-image-centered-with-border-radius.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-centered-with-border-radius.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-centered-with-border-radius.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-centered.html" title="css/css-backgrounds/background-image-centered.html">background-image-centered.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-centered.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-centered.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-cors-no-reload.html" title="css/css-backgrounds/background-image-cors-no-reload.html">background-image-cors-no-reload.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-cors-no-reload.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-cors-no-reload.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-cover-zoomed-1.html" title="css/css-backgrounds/background-image-cover-zoomed-1.html">background-image-cover-zoomed-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-cover-zoomed-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-cover-zoomed-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-first-letter.html" title="css/css-backgrounds/background-image-first-letter.html">background-image-first-letter.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-first-letter.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-first-letter.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-first-line.html" title="css/css-backgrounds/background-image-first-line.html">background-image-first-line.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-first-line.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-first-line.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-gradient-currentcolor-conic-repaint.html" title="css/css-backgrounds/background-image-gradient-currentcolor-conic-repaint.html">background-image-gradient-currentcolor-conic-repaint.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-gradient-currentcolor-conic-repaint.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-gradient-currentcolor-conic-repaint.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-gradient-currentcolor-linear-repaint.html" title="css/css-backgrounds/background-image-gradient-currentcolor-linear-repaint.html">background-image-gradient-currentcolor-linear-repaint.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-gradient-currentcolor-linear-repaint.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-gradient-currentcolor-linear-repaint.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-gradient-currentcolor-radial-repaint.html" title="css/css-backgrounds/background-image-gradient-currentcolor-radial-repaint.html">background-image-gradient-currentcolor-radial-repaint.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-gradient-currentcolor-radial-repaint.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-gradient-currentcolor-radial-repaint.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-gradient-currentcolor-visited.html" title="css/css-backgrounds/background-image-gradient-currentcolor-visited.html">background-image-gradient-currentcolor-visited.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-gradient-currentcolor-visited.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-gradient-currentcolor-visited.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-gradient-interpolation-repaint.html" title="css/css-backgrounds/background-image-gradient-interpolation-repaint.html">background-image-gradient-interpolation-repaint.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-gradient-interpolation-repaint.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-gradient-interpolation-repaint.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-large-with-auto.html" title="css/css-backgrounds/background-image-large-with-auto.html">background-image-large-with-auto.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-large-with-auto.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-large-with-auto.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-none-gradient-repaint.html" title="css/css-backgrounds/background-image-none-gradient-repaint.html">background-image-none-gradient-repaint.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-none-gradient-repaint.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-none-gradient-repaint.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-shared-stylesheet.html" title="css/css-backgrounds/background-image-shared-stylesheet.html">background-image-shared-stylesheet.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-shared-stylesheet.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-shared-stylesheet.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-table-cells-straddling-no-repeat.html" title="css/css-backgrounds/background-image-table-cells-straddling-no-repeat.html">background-image-table-cells-straddling-no-repeat.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-table-cells-straddling-no-repeat.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-table-cells-straddling-no-repeat.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-table-cells-zoomed.html" title="css/css-backgrounds/background-image-table-cells-zoomed.html">background-image-table-cells-zoomed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-table-cells-zoomed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-table-cells-zoomed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-image-with-border-radius-fidelity.html" title="css/css-backgrounds/background-image-with-border-radius-fidelity.html">background-image-with-border-radius-fidelity.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-image-with-border-radius-fidelity.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-image-with-border-radius-fidelity.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-image-interpolation.html" title="css/css-backgrounds/animations/background-image-interpolation.html">background-image-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-image-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-image-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-image-computed.sub.html" title="css/css-backgrounds/parsing/background-image-computed.sub.html">background-image-computed.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-image-computed.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-image-computed.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-image-invalid.html" title="css/css-backgrounds/parsing/background-image-invalid.html">background-image-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-image-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-image-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-image-valid.html" title="css/css-backgrounds/parsing/background-image-valid.html">background-image-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-image-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-image-valid.html"><small>(source)</small></a> </ul> </details> <p>This property specifies the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export data-local-lt="image" data-lt="background image" id="background-images">background image(s)</dfn> of an element. Images are drawn with the first specified one on top (closest to the user) and each subsequent image behind the previous one. The property’s value is given as a comma-separated list of <a class="production css" data-link-type="type" href="#typedef-bg-image" id="ref-for-typedef-bg-image①">&lt;bg-image></a> values where</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-bg-image"><a class="production" data-link-type="type" href="#typedef-bg-image" id="ref-for-typedef-bg-image②">&lt;bg-image></a></dfn> = <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-images-3/#typedef-image" id="ref-for-typedef-image①">&lt;image></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one">|</a> none</pre> <p>A value of <dfn class="dfn-paneled css" data-dfn-for="background-image" data-dfn-type="value" data-export id="valdef-background-image-none">none</dfn> counts as a <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer④">background image layer</a> but draws nothing. An image that is empty (zero width or zero height), that fails to download, or that cannot be displayed (e.g., because it is not in a supported image format) likewise counts as a <span id="ref-for-background-image-layer⑤">layer</span> but draws nothing.</p> <p>See <a href="#layering">§ 2.1 Layering Multiple Background Images</a> for how <a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image④">background-image</a> interacts with other comma-separated background properties to form each <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer⑥">background image layer</a>.</p> <p>When setting a background image, authors should also specify a <a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color③">background-color</a> that will preserve contrast with the text for when the image is unavailable.</p> <p>For accessibility reasons, authors should not use background images as the sole method of conveying important information. See <a href="https://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/F3">Web Content Accessibility Guideline F3</a> <a data-link-type="biblio" href="#biblio-wcag20" title="Web Content Accessibility Guidelines (WCAG) 2.0">[WCAG20]</a>. Images are not accessible in non-graphical presentations, and background images specifically might be turned off in high-contrast display modes.</p> <p class="note" role="note"><span class="marker">Note:</span> Stylistic foreground images can be provided in CSS with the <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-content-3/#propdef-content" id="ref-for-propdef-content">content</a> property. Semantically-important foreground images should be provided in the document markup, e.g. with the &lt;img> tag in HTML.</p> <p class="note" role="note"><span class="marker">Note:</span> <a href="https://www.w3.org/TR/media-frags/#naming-space">Media fragments</a> can be used to display a portion of an image. The <a href="https://www.w3.org/TR/css-images/">CSS Images</a> module will provide fallback syntax for image formats and include additional controls for image display.</p> <div class="example" id="example-b3c5ac2d"> <a class="self-link" href="#example-b3c5ac2d"></a> Some examples specifying background images: <pre>html { background-image: url("marble.svg") } p { background-image: none } div { background-image: url(tl.png), url(tr.png) } main { background-image: radial-gradient(at bottom right, transparent, white); } </pre> </div> <p>Implementations may optimize by not downloading and drawing images that are not visible (e.g., because they are behind other, fully opaque images).</p> <h3 class="heading settled" data-level="2.4" id="background-repeat"><span class="secno">2.4. </span><span class="content"> Tiling Images: the <a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat①">background-repeat</a> property</span><span id="the-background-repeat"></span><a class="self-link" href="#background-repeat"></a></h3> <table class="def propdef" data-link-for-hint="background-repeat"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background-repeat">background-repeat</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-repeat-style" id="ref-for-typedef-repeat-style">&lt;repeat-style></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma①">#</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>repeat <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>list, each item a pair of keywords, one per dimension <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>discrete </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/discrete-no-interpolation.html" title="css/css-backgrounds/animations/discrete-no-interpolation.html">discrete-no-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-round-1a.html" title="css/css-backgrounds/background-repeat-round-1a.html">background-repeat-round-1a.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-round-1a.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-round-1a.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-round-1b.html" title="css/css-backgrounds/background-repeat-round-1b.html">background-repeat-round-1b.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-round-1b.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-round-1b.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-round-1c.html" title="css/css-backgrounds/background-repeat-round-1c.html">background-repeat-round-1c.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-round-1c.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-round-1c.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-round-1d.html" title="css/css-backgrounds/background-repeat-round-1d.html">background-repeat-round-1d.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-round-1d.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-round-1d.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-round-1e.html" title="css/css-backgrounds/background-repeat-round-1e.html">background-repeat-round-1e.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-round-1e.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-round-1e.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-round-2.html" title="css/css-backgrounds/background-repeat-round-2.html">background-repeat-round-2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-round-2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-round-2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-round-3.html" title="css/css-backgrounds/background-repeat-round-3.html">background-repeat-round-3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-round-3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-round-3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-round-4.html" title="css/css-backgrounds/background-repeat-round-4.html">background-repeat-round-4.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-round-4.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-round-4.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-10.html" title="css/css-backgrounds/background-repeat-space-10.html">background-repeat-space-10.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-10.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-10.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-1a.html" title="css/css-backgrounds/background-repeat-space-1a.html">background-repeat-space-1a.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-1a.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-1a.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-1b.html" title="css/css-backgrounds/background-repeat-space-1b.html">background-repeat-space-1b.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-1b.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-1b.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-1c.html" title="css/css-backgrounds/background-repeat-space-1c.html">background-repeat-space-1c.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-1c.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-1c.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-2.html" title="css/css-backgrounds/background-repeat-space-2.html">background-repeat-space-2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-3.html" title="css/css-backgrounds/background-repeat-space-3.html">background-repeat-space-3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-4.html" title="css/css-backgrounds/background-repeat-space-4.html">background-repeat-space-4.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-4.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-4.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-5.html" title="css/css-backgrounds/background-repeat-space-5.html">background-repeat-space-5.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-5.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-5.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-6.html" title="css/css-backgrounds/background-repeat-space-6.html">background-repeat-space-6.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-6.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-6.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-7.html" title="css/css-backgrounds/background-repeat-space-7.html">background-repeat-space-7.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-7.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-7.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-8.html" title="css/css-backgrounds/background-repeat-space-8.html">background-repeat-space-8.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-8.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-8.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat-space-9.html" title="css/css-backgrounds/background-repeat-space-9.html">background-repeat-space-9.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat-space-9.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat-space-9.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat/background-repeat-no-repeat.xht" title="css/css-backgrounds/background-repeat/background-repeat-no-repeat.xht">background-repeat-no-repeat.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat/background-repeat-no-repeat.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat/background-repeat-no-repeat.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat/background-repeat-repeat-x.xht" title="css/css-backgrounds/background-repeat/background-repeat-repeat-x.xht">background-repeat-repeat-x.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat/background-repeat-repeat-x.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat/background-repeat-repeat-x.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat/background-repeat-repeat-y.xht" title="css/css-backgrounds/background-repeat/background-repeat-repeat-y.xht">background-repeat-repeat-y.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat/background-repeat-repeat-y.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat/background-repeat-repeat-y.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat/background-repeat-round-roundup.xht" title="css/css-backgrounds/background-repeat/background-repeat-round-roundup.xht">background-repeat-round-roundup.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat/background-repeat-round-roundup.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat/background-repeat-round-roundup.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat/background-repeat-round.xht" title="css/css-backgrounds/background-repeat/background-repeat-round.xht">background-repeat-round.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat/background-repeat-round.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat/background-repeat-round.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat/background-repeat-space.xht" title="css/css-backgrounds/background-repeat/background-repeat-space.xht">background-repeat-space.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat/background-repeat-space.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat/background-repeat-space.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-repeat/gradient-repeat-spaced-with-borders.html" title="css/css-backgrounds/background-repeat/gradient-repeat-spaced-with-borders.html">gradient-repeat-spaced-with-borders.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-repeat/gradient-repeat-spaced-with-borders.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-repeat/gradient-repeat-spaced-with-borders.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-repeat-computed.html" title="css/css-backgrounds/parsing/background-repeat-computed.html">background-repeat-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-repeat-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-repeat-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-repeat-invalid.html" title="css/css-backgrounds/parsing/background-repeat-invalid.html">background-repeat-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-repeat-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-repeat-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-repeat-valid.html" title="css/css-backgrounds/parsing/background-repeat-valid.html">background-repeat-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-repeat-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-repeat-valid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/subpixel-repeat-no-repeat-mix.html" title="css/css-backgrounds/subpixel-repeat-no-repeat-mix.html">subpixel-repeat-no-repeat-mix.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/subpixel-repeat-no-repeat-mix.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/subpixel-repeat-no-repeat-mix.html"><small>(source)</small></a> </ul> </details> <p>This property specifies how <a data-link-type="dfn" href="#background-images" id="ref-for-background-images①">background images</a> are tiled after they have been <a href="#background-size">sized</a> and <a href="#background-position">positioned</a>. The property’s value is given as a comma-separated list of <a class="production css" data-link-type="type" href="#typedef-repeat-style" id="ref-for-typedef-repeat-style①">&lt;repeat-style></a> values where</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-repeat-style"><a class="production" data-link-type="type" href="#typedef-repeat-style" id="ref-for-typedef-repeat-style②">&lt;repeat-style></a></dfn> = repeat-x <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①">|</a> repeat-y <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②">|</a> [repeat <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③">|</a> space <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④">|</a> round <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤">|</a> no-repeat]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range">{1,2}</a></pre> <p>Single values for <a class="production css" data-link-type="type" href="#typedef-repeat-style" id="ref-for-typedef-repeat-style③">&lt;repeat-style></a> have the following meanings:</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="background-repeat" data-dfn-type="value" data-export id="valdef-background-repeat-repeat-x">repeat-x</dfn> <dd> Computes to <span class="css">repeat no-repeat</span>. <dt><dfn class="dfn-paneled css" data-dfn-for="background-repeat" data-dfn-type="value" data-export id="valdef-background-repeat-repeat-y">repeat-y</dfn> <dd> Computes to <span class="css">no-repeat repeat</span>. <dt><a class="css" data-link-type="maybe" href="#valdef-background-repeat-repeat" id="ref-for-valdef-background-repeat-repeat">repeat</a> <dd> Computes to <span class="css">repeat repeat</span>. <dt><a class="css" data-link-type="maybe" href="#valdef-background-repeat-space" id="ref-for-valdef-background-repeat-space">space</a> <dd> Computes to <span class="css">space space</span> <dt><a class="css" data-link-type="maybe" href="#valdef-background-repeat-round" id="ref-for-valdef-background-repeat-round">round</a> <dd> Computes to <span class="css">round round</span> <dt><a class="css" data-link-type="maybe" href="#valdef-background-repeat-no-repeat" id="ref-for-valdef-background-repeat-no-repeat">no-repeat</a> <dd> Computes to <span class="css">no-repeat no-repeat</span> </dl> <p>If a <a class="production css" data-link-type="type" href="#typedef-repeat-style" id="ref-for-typedef-repeat-style④">&lt;repeat-style></a> value has two keywords, the first one applies to the horizontal axis, the second to the vertical one, as follows:</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="background-repeat" data-dfn-type="value" data-export id="valdef-background-repeat-repeat">repeat</dfn> <dd> The <a data-link-type="dfn" href="#background-images" id="ref-for-background-images②">image</a> is repeated in this direction as often as needed to cover the <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area">background painting area</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="background-repeat" data-dfn-type="value" data-export id="valdef-background-repeat-space">space</dfn> <dd> The <a data-link-type="dfn" href="#background-images" id="ref-for-background-images③">image</a> is repeated as often as will fit within the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area">background positioning area</a> without being clipped, and then the images are spaced out to fill the area. The first and last images touch the edges of the area. If the <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area①">background painting area</a> is larger than the <span id="ref-for-background-positioning-area①">background positioning area</span>, then the pattern repeats to fill the background painting area. The value of <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position">background-position</a> for this direction is ignored unless there is not enough space for two copies of the image in this axis, in which case only one image is placed, and <span class="property" id="ref-for-propdef-background-position①">background-position</span> determines its position in this axis. <dt><dfn class="dfn-paneled css" data-dfn-for="background-repeat" data-dfn-type="value" data-export id="valdef-background-repeat-round">round</dfn> <dd> The <a data-link-type="dfn" href="#background-images" id="ref-for-background-images④">image</a> is repeated as often as will fit within the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area②">background positioning area</a>. If it doesn’t fit a whole number of times, it is rescaled so that it does. See the formula under <a class="property css" data-link-type="property" href="#propdef-background-size" id="ref-for-propdef-background-size">background-size</a>. If the <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area②">background painting area</a> is larger than the background positioning area, then the pattern repeats to fill the background painting area. <dt><dfn class="dfn-paneled css" data-dfn-for="background-repeat" data-dfn-type="value" data-export id="valdef-background-repeat-no-repeat">no-repeat</dfn> <dd> The <a data-link-type="dfn" href="#background-images" id="ref-for-background-images⑤">image</a> is placed once and not repeated in this direction. </dl> <p>Unless one of the two keywords is <a class="css" data-link-type="maybe" href="#valdef-background-repeat-no-repeat" id="ref-for-valdef-background-repeat-no-repeat①">no-repeat</a>, the whole <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area③">background painting area</a> will be tiled, i.e., not just one vertical strip and one horizontal strip.</p> <div class="example" id="example-f2ed7ece"> <a class="self-link" href="#example-f2ed7ece"></a> <pre>body { background: white url("pendant.png"); background-repeat: repeat-y; background-position: center; } </pre> <figure> <img alt="A centered background image, with copies repeated up and down the border, padding, and content areas." height="334" src="images/bg-repeat.png" width="243"> <figcaption> The effect of <a class="css" data-link-type="maybe" href="#valdef-background-repeat-repeat-y" id="ref-for-valdef-background-repeat-repeat-y">repeat-y</a>: One copy of the background image is centered, and other copies are put above and below it to make a vertical band behind the element. </figcaption> </figure> </div> <div class="example" id="example-64e67bc4"> <a class="self-link" href="#example-64e67bc4"></a> <pre>body { background-image: url(dot.png) white; background-repeat: space } </pre> <figure> <img alt="Image of an element with a dotted background" height="365" src="images/bg-space.png" width="250"> <figcaption> The effect of <a class="css" data-link-type="maybe" href="#valdef-background-repeat-space" id="ref-for-valdef-background-repeat-space①">space</a>: the image of a dot is tiled to cover the whole background and the images are equally spaced. </figcaption> </figure> </div> <p>See <a href="#layering">§ 2.1 Layering Multiple Background Images</a> for how <a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat②">background-repeat</a> interacts with other comma-separated background properties to form each <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer⑦">background image layer</a>.</p> <h3 class="heading settled" data-level="2.5" id="background-attachment"><span class="secno">2.5. </span><span class="content"> Affixing Images: the <a class="property css" data-link-type="property" href="#propdef-background-attachment" id="ref-for-propdef-background-attachment">background-attachment</a> property</span><span id="the-background-attachment"></span><a class="self-link" href="#background-attachment"></a></h3> <table class="def propdef" data-link-for-hint="background-attachment"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background-attachment">background-attachment</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-attachment" id="ref-for-typedef-attachment">&lt;attachment></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma②">#</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>scroll <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>list, each item the keyword as specified <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>discrete </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/discrete-no-interpolation.html" title="css/css-backgrounds/animations/discrete-no-interpolation.html">discrete-no-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-350.html" title="css/css-backgrounds/background-attachment-350.html">background-attachment-350.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-350.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-350.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-353.html" title="css/css-backgrounds/background-attachment-353.html">background-attachment-353.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-353.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-353.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-fixed-block-002.html" title="css/css-backgrounds/background-attachment-fixed-block-002.html">background-attachment-fixed-block-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-fixed-block-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-fixed-block-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-fixed-border-radius-offset.html" title="css/css-backgrounds/background-attachment-fixed-border-radius-offset.html">background-attachment-fixed-border-radius-offset.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-fixed-border-radius-offset.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-fixed-border-radius-offset.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-fixed-inline-002.html" title="css/css-backgrounds/background-attachment-fixed-inline-002.html">background-attachment-fixed-inline-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-fixed-inline-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-fixed-inline-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-fixed-inline-scrolled.html" title="css/css-backgrounds/background-attachment-fixed-inline-scrolled.html">background-attachment-fixed-inline-scrolled.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-fixed-inline-scrolled.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-fixed-inline-scrolled.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-fixed-inside-transform-1.html" title="css/css-backgrounds/background-attachment-fixed-inside-transform-1.html">background-attachment-fixed-inside-transform-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-fixed-inside-transform-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-fixed-inside-transform-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local-block-002.html" title="css/css-backgrounds/background-attachment-local-block-002.html">background-attachment-local-block-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local-block-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local-block-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local-hidden.html" title="css/css-backgrounds/background-attachment-local-hidden.html">background-attachment-local-hidden.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local-hidden.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local-hidden.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-1.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-1.html">attachment-local-clipping-color-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-2.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-2.html">attachment-local-clipping-color-2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-3.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-3.html">attachment-local-clipping-color-3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-4.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-4.html">attachment-local-clipping-color-4.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-4.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-4.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-5.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-5.html">attachment-local-clipping-color-5.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-5.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-5.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-6.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-6.html">attachment-local-clipping-color-6.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-6.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-color-6.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-1.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-1.html">attachment-local-clipping-image-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-2.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-2.html">attachment-local-clipping-image-2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-3.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-3.html">attachment-local-clipping-image-3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-4.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-4.html">attachment-local-clipping-image-4.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-4.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-4.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-5.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-5.html">attachment-local-clipping-image-5.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-5.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-5.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-6.html" title="css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-6.html">attachment-local-clipping-image-6.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-6.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-clipping-image-6.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-positioning-2.html" title="css/css-backgrounds/background-attachment-local/attachment-local-positioning-2.html">attachment-local-positioning-2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-positioning-2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-positioning-2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-positioning-3.html" title="css/css-backgrounds/background-attachment-local/attachment-local-positioning-3.html">attachment-local-positioning-3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-positioning-3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-positioning-3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-positioning-4.html" title="css/css-backgrounds/background-attachment-local/attachment-local-positioning-4.html">attachment-local-positioning-4.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-positioning-4.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-positioning-4.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-local-positioning-5.html" title="css/css-backgrounds/background-attachment-local/attachment-local-positioning-5.html">attachment-local-positioning-5.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-local-positioning-5.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-local-positioning-5.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-local/attachment-scroll-positioning-1.html" title="css/css-backgrounds/background-attachment-local/attachment-scroll-positioning-1.html">attachment-scroll-positioning-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-local/attachment-scroll-positioning-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-local/attachment-scroll-positioning-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-margin-root-001.html" title="css/css-backgrounds/background-attachment-margin-root-001.html">background-attachment-margin-root-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-margin-root-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-margin-root-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-attachment-margin-root-002.html" title="css/css-backgrounds/background-attachment-margin-root-002.html">background-attachment-margin-root-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-attachment-margin-root-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-attachment-margin-root-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/local-attachment-content-box-scroll.html" title="css/css-backgrounds/local-attachment-content-box-scroll.html">local-attachment-content-box-scroll.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/local-attachment-content-box-scroll.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/local-attachment-content-box-scroll.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-attachment-computed.html" title="css/css-backgrounds/parsing/background-attachment-computed.html">background-attachment-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-attachment-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-attachment-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-attachment-invalid.html" title="css/css-backgrounds/parsing/background-attachment-invalid.html">background-attachment-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-attachment-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-attachment-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-attachment-valid.html" title="css/css-backgrounds/parsing/background-attachment-valid.html">background-attachment-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-attachment-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-attachment-valid.html"><small>(source)</small></a> </ul> </details> <p>If <a data-link-type="dfn" href="#background-images" id="ref-for-background-images⑥">background images</a> are specified, this property specifies whether they are fixed with regard to the <a data-link-type="dfn">viewport</a> (<a class="css" data-link-type="maybe" href="#valdef-background-attachment-fixed" id="ref-for-valdef-background-attachment-fixed">fixed</a>) or scroll along with the box (<a class="css" data-link-type="maybe" href="#valdef-background-attachment-scroll" id="ref-for-valdef-background-attachment-scroll">scroll</a>) or its contents (<a class="css" data-link-type="maybe" href="#valdef-background-attachment-local" id="ref-for-valdef-background-attachment-local">local</a>). The property’s value is given as a comma-separated list of <a class="production css" data-link-type="type" href="#typedef-attachment" id="ref-for-typedef-attachment①">&lt;attachment></a> keywords where</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-attachment"><a class="production" data-link-type="type" href="#typedef-attachment" id="ref-for-typedef-attachment②">&lt;attachment></a></dfn> = scroll <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥">|</a> fixed <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦">|</a> local</pre> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="background-attachment" data-dfn-type="value" data-export id="valdef-background-attachment-fixed">fixed</dfn> <dd> The background is fixed with regard to the viewport. In <a data-link-type="dfn" href="https://drafts.csswg.org/mediaqueries-5/#paged-media" id="ref-for-paged-media">paged media</a> where there is no viewport, a <a class="css" data-link-type="maybe" href="#valdef-background-attachment-fixed" id="ref-for-valdef-background-attachment-fixed①">fixed</a> background is fixed with respect to the <a href="https://www.w3.org/TR/CSS2/page.html#page-box">page box</a> and therefore replicated on every page. <p class="note" role="note"><span class="marker">Note:</span> There is only one viewport per view. Even if an box is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container" id="ref-for-scroll-container">scroll container</a>, a <a class="css" data-link-type="maybe" href="#valdef-background-attachment-fixed" id="ref-for-valdef-background-attachment-fixed②">fixed</a> background doesn’t move with the box.</p> <dt><dfn class="dfn-paneled css" data-dfn-for="background-attachment" data-dfn-type="value" data-export id="valdef-background-attachment-local">local</dfn> <dd> The background is fixed with regard to the box’s contents: if the box has a scrolling mechanism, the background scrolls with the box’s contents, and the <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area④">background painting area</a> and <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area③">background positioning area</a> are relative to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollable-overflow-region" id="ref-for-scrollable-overflow-region">scrollable overflow area</a> of the box rather than to the border framing them. Because the <span id="ref-for-scrollable-overflow-region①">scrollable overflow area</span> does not include the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-area" id="ref-for-border-area②">border area</a>, for <a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container" id="ref-for-scroll-container①">scroll containers</a> the <a class="css" data-link-type="maybe" href="#valdef-background-clip-border-box" id="ref-for-valdef-background-clip-border-box">border-box</a> value of <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip①">background-clip</a> may be treated the same as <a class="css" data-link-type="maybe" href="#valdef-background-clip-padding-box" id="ref-for-valdef-background-clip-padding-box">padding-box</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="background-attachment" data-dfn-type="value" data-export id="valdef-background-attachment-scroll">scroll</dfn> <dd> The background is fixed with regard to the box itself and does not scroll with its contents. (It is effectively attached to the box’s border.) </dl> <p>Even if the image is fixed, it is still only visible when it is in the <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area⑤">background painting area</a> of the box or otherwise unclipped. (See <a href="#special-backgrounds">§ 2.11 Backgrounds of Special Elements</a> for the cases when background images are not clipped.) Thus, unless the image is tiled, it may be invisible.</p> <div class="example" id="example-e97d52e0"> <a class="self-link" href="#example-e97d52e0"></a> This example creates an infinite vertical band that remains “glued” to the viewport when the document is scrolled. <pre>body { background: red url("pendant.gif"); background-repeat: repeat-y; background-attachment: fixed; } </pre> </div> <p class="note" role="note"><span class="marker">Note:</span> User agents that do not support <a class="css" data-link-type="maybe" href="#valdef-background-attachment-fixed" id="ref-for-valdef-background-attachment-fixed③">fixed</a> backgrounds (for example due to limitations of the hardware platform) <a href="https://www.w3.org/TR/CSS/#partial">will ignore declarations</a> with the keyword <span class="css" id="ref-for-valdef-background-attachment-fixed④">fixed</span>. For example:</p> <pre class="example" id="example-6e8f559e"><a class="self-link" href="#example-6e8f559e"></a>body { /* For all UAs: */ background: white url(paper.png) scroll; /* For UAs that do fixed backgrounds: */ background: white url(ledger.png) fixed; } h1 { /* For all UAs: */ background: silver; /* For UAs that do fixed backgrounds: */ background: url(stripe.png) fixed, white url(ledger.png) fixed; } </pre> <p>See <a href="#layering">§ 2.1 Layering Multiple Background Images</a> for how <a class="property css" data-link-type="property" href="#propdef-background-attachment" id="ref-for-propdef-background-attachment①">background-attachment</a> interacts with other comma-separated background properties to form each <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer⑧">background image layer</a>.</p> <h3 class="heading settled" data-level="2.6" id="background-position"><span class="secno">2.6. </span><span class="content">Positioning Images: the <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position②">background-position</a> property</span><span id="the-background-position"></span><a class="self-link" href="#background-position"></a></h3> <table class="def propdef" data-link-for-hint="background-position"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background-position">background-position</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-bg-position" id="ref-for-typedef-bg-position">&lt;bg-position></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma③">#</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>0% 0% <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>refer to size of <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area④">background positioning area</a> <em>minus</em> size of background image; see text <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>list, each item a pair of offsets (horizontal and vertical) from the top left origin each given as a computed <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage">&lt;length-percentage></a> value <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>repeatable list </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-position-interpolation.html" title="css/css-backgrounds/animations/background-position-interpolation.html">background-position-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-position-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-position-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-position-x-interpolation.html" title="css/css-backgrounds/animations/background-position-x-interpolation.html">background-position-x-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-position-x-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-position-x-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-position-y-interpolation.html" title="css/css-backgrounds/animations/background-position-y-interpolation.html">background-position-y-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-position-y-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-position-y-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-position-calc-minmax-001.html" title="css/css-backgrounds/background-position-calc-minmax-001.html">background-position-calc-minmax-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-position-calc-minmax-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-position-calc-minmax-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-position-negative-percentage-comparison-002.html" title="css/css-backgrounds/background-position-negative-percentage-comparison-002.html">background-position-negative-percentage-comparison-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-position-negative-percentage-comparison-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-position-negative-percentage-comparison-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-position-negative-percentage-comparison.html" title="css/css-backgrounds/background-position-negative-percentage-comparison.html">background-position-negative-percentage-comparison.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-position-negative-percentage-comparison.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-position-negative-percentage-comparison.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-position-three-four-values.html" title="css/css-backgrounds/background-position-three-four-values.html">background-position-three-four-values.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-position-three-four-values.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-position-three-four-values.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-position-xy-three-four-values-passthru.html" title="css/css-backgrounds/background-position-xy-three-four-values-passthru.html">background-position-xy-three-four-values-passthru.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-position-xy-three-four-values-passthru.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-position-xy-three-four-values-passthru.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-position/background-position-bottom-right-repeat-round.html" title="css/css-backgrounds/background-position/background-position-bottom-right-repeat-round.html">background-position-bottom-right-repeat-round.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-position/background-position-bottom-right-repeat-round.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-position/background-position-bottom-right-repeat-round.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-position/background-position-right-in-body.html" title="css/css-backgrounds/background-position/background-position-right-in-body.html">background-position-right-in-body.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-position/background-position-right-in-body.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-position/background-position-right-in-body.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-computed.html" title="css/css-backgrounds/parsing/background-position-computed.html">background-position-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-invalid.html" title="css/css-backgrounds/parsing/background-position-invalid.html">background-position-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-valid.html" title="css/css-backgrounds/parsing/background-position-valid.html">background-position-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-valid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-x-computed.html" title="css/css-backgrounds/parsing/background-position-x-computed.html">background-position-x-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-x-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-x-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-x-invalid.html" title="css/css-backgrounds/parsing/background-position-x-invalid.html">background-position-x-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-x-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-x-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-x-valid.html" title="css/css-backgrounds/parsing/background-position-x-valid.html">background-position-x-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-x-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-x-valid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-y-computed.html" title="css/css-backgrounds/parsing/background-position-y-computed.html">background-position-y-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-y-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-y-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-y-invalid.html" title="css/css-backgrounds/parsing/background-position-y-invalid.html">background-position-y-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-y-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-y-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-position-y-valid.html" title="css/css-backgrounds/parsing/background-position-y-valid.html">background-position-y-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-position-y-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-position-y-valid.html"><small>(source)</small></a> </ul> </details> <p>If <a data-link-type="dfn" href="#background-images" id="ref-for-background-images⑦">background images</a> have been specified, this property specifies their initial position (after any <a href="#background-size">resizing</a>) within their corresponding <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area⑤">background positioning area</a>.</p> <p>The property’s value is given as a comma-separated list of <a class="production css" data-link-type="type" href="#typedef-bg-position" id="ref-for-typedef-bg-position①">&lt;bg-position></a> values where</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-bg-position"><a class="production" data-link-type="type" href="#typedef-bg-position" id="ref-for-typedef-bg-position②">&lt;bg-position></a></dfn> = [ [ left <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧">|</a> center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨">|</a> right <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪">|</a> top <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①">|</a> bottom <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②">|</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①">&lt;length-percentage></a> ] <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①③">|</a> [ left <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①④">|</a> center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑤">|</a> right <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑥">|</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage②">&lt;length-percentage></a> ] [ top <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑦">|</a> center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑧">|</a> bottom <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑨">|</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage③">&lt;length-percentage></a> ] <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⓪">|</a> [ center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②①">|</a> [ left <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②②">|</a> right ] <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage④">&lt;length-percentage></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt">?</a> ] <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-all" id="ref-for-comb-all">&amp;&amp;</a> [ center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②③">|</a> [ top <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②④">|</a> bottom ] <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage⑤">&lt;length-percentage></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt①">?</a> ] ] </pre> <p>If only one value is specified, the second value is assumed to be <a class="css" data-link-type="maybe" href="#valdef-background-position-center" id="ref-for-valdef-background-position-center">center</a>. If two values are given, a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage⑥">&lt;length-percentage></a> as the first value represents the horizontal position (or offset) and a <span class="production" id="ref-for-typedef-length-percentage⑦">&lt;length-percentage></span> as the second value represents the vertical position (or offset). The <span class="production" id="ref-for-typedef-length-percentage⑧">&lt;length-percentage></span> values here represent an offset of the top left corner of the background image from the top left corner of the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area⑥">background positioning area</a>.</p> <p class="note" role="note"><span class="marker">Note:</span> A pair of keywords can be reordered, while a combination of keyword and length or percentage cannot. So <span class="css">center left</span> is valid while <span class="css">50% left</span> is not.</p> <p>If three or four values are given, then each <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage⑨">&lt;length-percentage></a> represents an offset and must be preceded by a keyword, which specifies from which edge the offset is given. For example, <a class="css" data-link-type="propdesc" href="#propdef-background-position" id="ref-for-propdef-background-position③">background-position: bottom 10px right 20px</a> represents a <span class="css">10px</span> vertical offset up from the bottom edge and a <span class="css">20px</span> horizontal offset leftward from the right edge. If three values are given, the missing offset is assumed to be zero.</p> <p>Positive values represent an offset <em>inward</em> from the edge of the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area⑦">background positioning area</a>. Negative values represent an offset <em>outward</em> from the edge of the <span id="ref-for-background-positioning-area⑧">background positioning area</span>.</p> <div class="example" id="example-b28c564d"> <a class="self-link" href="#example-b28c564d"></a> The following declarations give the stated (horizontal, vertical) offsets from the top left corner: <pre>background-position: left 10px top 15px; /* 10px, 15px */ background-position: left top ; /* 0px, 0px */ background-position: 10px 15px; /* 10px, 15px */ background-position: left 15px; /* 0px, 15px */ background-position: 10px top ; /* 10px, 0px */ background-position: left top 15px; /* 0px, 15px */ background-position: left 10px top ; /* 10px, 0px */ </pre> </div> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="background-position" data-dfn-type="value" data-export id="valdef-background-position-percentage"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#percentage-value" id="ref-for-percentage-value">&lt;percentage></a></dfn> <dd> A percentage for the horizontal offset is relative to (<var>width of <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area⑨">background positioning area</a></var> - <var>width of <a data-link-type="dfn" href="#background-images" id="ref-for-background-images⑧">background image</a></var>). A percentage for the vertical offset is relative to (<var>height of <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area①⓪">background positioning area</a></var> - <var>height of <a data-link-type="dfn" href="#background-images" id="ref-for-background-images⑨">background image</a></var>), where the size of the image is the size given by <a class="property css" data-link-type="property" href="#propdef-background-size" id="ref-for-propdef-background-size①">background-size</a>. <div class="example" id="example-c27a0cea"> <a class="self-link" href="#example-c27a0cea"></a> For example, with a value pair of <span class="css">0% 0%</span>, the upper left corner of the image is aligned with the upper left corner of, usually, the box’s <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding-edge" id="ref-for-padding-edge">padding edge</a>. A value pair of <span class="css">100% 100%</span> places the lower right corner of the image in the lower right corner of the area. With a value pair of <span class="css">75% 50%</span>, the point 75% across and 50% down the image is to be placed at the point 75% across and 50% down the area. <figure> <img alt="Diagram of image position within element" height="269" src="images/bg-pos.png" width="397"> <figcaption> Diagram of the meaning of <a class="css" data-link-type="propdesc" href="#propdef-background-position" id="ref-for-propdef-background-position④">background-position: 75% 50%</a>. </figcaption> </figure> </div> <dt><dfn class="dfn-paneled css" data-dfn-for="background-position" data-dfn-type="value" data-export id="valdef-background-position-length"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value">&lt;length></a></dfn> <dd> A length value gives a fixed length as the offset. For example, with a value pair of <span class="css">2cm 1cm</span>, the upper left corner of the image is placed 2cm to the right and 1cm below the upper left corner of the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area①①">background positioning area</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="background-position" data-dfn-type="value" data-export id="valdef-background-position-top"><a class="css" data-link-type="maybe" href="#valdef-background-position-top" id="ref-for-valdef-background-position-top">top</a></dfn> <dd> Computes to <span class="css">0%</span> for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset. <dt><dfn class="dfn-paneled css" data-dfn-for="background-position" data-dfn-type="value" data-export id="valdef-background-position-right"><a class="css" data-link-type="maybe" href="#valdef-background-position-right" id="ref-for-valdef-background-position-right">right</a></dfn> <dd> Computes to <span class="css">100%</span> for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset. <dt><dfn class="dfn-paneled css" data-dfn-for="background-position" data-dfn-type="value" data-export id="valdef-background-position-bottom"><a class="css" data-link-type="maybe" href="#valdef-background-position-bottom" id="ref-for-valdef-background-position-bottom">bottom</a></dfn> <dd> Computes to <span class="css">100%</span> for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset. <dt><dfn class="dfn-paneled css" data-dfn-for="background-position" data-dfn-type="value" data-export id="valdef-background-position-left"><a class="css" data-link-type="maybe" href="#valdef-background-position-left" id="ref-for-valdef-background-position-left">left</a></dfn> <dd> Computes to <span class="css">0%</span> for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset. <dt><dfn class="dfn-paneled css" data-dfn-for="background-position" data-dfn-type="value" data-export id="valdef-background-position-center"><a class="css" data-link-type="maybe" href="#valdef-background-position-center" id="ref-for-valdef-background-position-center①">center</a></dfn> <dd> Computes to <span class="css">50%</span> (<span class="css">left 50%</span>) for the horizontal position if the horizontal position is not otherwise specified, or <span class="css">50%</span> (<span class="css">top 50%</span>) for the vertical position if it is. </dl> <div class="example" id="example-4c5187aa"> <a class="self-link" href="#example-4c5187aa"></a> The following <a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background">background</a> shorthand declarations use keywords to set <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position⑤">background-position</a> to the stated percentage values. <pre>body { background: url("banner.jpeg") right top } /* 100% 0% */ body { background: url("banner.jpeg") top center } /* 50% 0% */ body { background: url("banner.jpeg") center } /* 50% 50% */ body { background: url("banner.jpeg") bottom } /* 50% 100% */ </pre> </div> <div class="example" id="example-6c448699"> <a class="self-link" href="#example-6c448699"></a> In the example below, the (single) image is placed in the lower-right corner of the viewport. <pre>body { background-image: url("logo.png"); background-attachment: fixed; background-position: 100% 100%; background-repeat: no-repeat; } </pre> </div> <div class="example" id="example-1d05ddd8"> <a class="self-link" href="#example-1d05ddd8"></a> Background positions can also be relative to other corners than the top left. For example, the following puts the background image 10px from the bottom and 3em from the right: <pre>background-position: right 3em bottom 10px</pre> </div> <p>See <a href="#layering">§ 2.1 Layering Multiple Background Images</a> for how <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position⑥">background-position</a> interacts with other comma-separated background properties to form each <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer⑨">background image layer</a>.</p> <h4 class="heading settled" data-level="2.6.1" id="bg-position-serialization"><span class="secno">2.6.1. </span><span class="content"> Serialization of <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position⑦">background-position</a> values</span><a class="self-link" href="#bg-position-serialization"></a></h4> <p>The <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#specified-value" id="ref-for-specified-value">specified value</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#computed-value" id="ref-for-computed-value">computed value</a> of the <a class="production css" data-link-type="type" href="#typedef-bg-position" id="ref-for-typedef-bg-position③">&lt;bg-position></a> type serialize exactly as defined in <a data-link-type="biblio" href="#biblio-css-values-4" title="CSS Values and Units Module Level 4">[CSS-VALUES-4]</a> for <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#typedef-position" id="ref-for-typedef-position">&lt;position></a>. For 3-value productions (which are not valid in <span class="production" id="ref-for-typedef-position①">&lt;position></span>), the <span id="ref-for-specified-value①">specified value</span> serialization is identical to the equivalent 4-value syntax except that the omitted offset remains omitted.</p> <h3 class="heading settled" data-level="2.7" id="background-clip"><span class="secno">2.7. </span><span class="content"> Painting Area: the <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip②">background-clip</a> property</span><span id="the-background-clip"></span><a class="self-link" href="#background-clip"></a></h3> <table class="def propdef" data-link-for-hint="background-clip"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background-clip">background-clip</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-box-4/#typedef-visual-box" id="ref-for-typedef-visual-box">&lt;visual-box></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma④">#</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>border-box <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>list, each item a keyword as specified <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>repeatable list </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/discrete-no-interpolation.html" title="css/css-backgrounds/animations/discrete-no-interpolation.html">discrete-no-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-001.html" title="css/css-backgrounds/background-clip-001.html">background-clip-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-002.html" title="css/css-backgrounds/background-clip-002.html">background-clip-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-003.html" title="css/css-backgrounds/background-clip-003.html">background-clip-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-004.html" title="css/css-backgrounds/background-clip-004.html">background-clip-004.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-004.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-004.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-005.html" title="css/css-backgrounds/background-clip-005.html">background-clip-005.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-005.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-005.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-006.html" title="css/css-backgrounds/background-clip-006.html">background-clip-006.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-006.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-006.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-007.html" title="css/css-backgrounds/background-clip-007.html">background-clip-007.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-007.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-007.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-008.html" title="css/css-backgrounds/background-clip-008.html">background-clip-008.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-008.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-008.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-009.html" title="css/css-backgrounds/background-clip-009.html">background-clip-009.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-009.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-009.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-010.html" title="css/css-backgrounds/background-clip-010.html">background-clip-010.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-010.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-010.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-color-repaint.html" title="css/css-backgrounds/background-clip-color-repaint.html">background-clip-color-repaint.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-color-repaint.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-color-repaint.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-color.html" title="css/css-backgrounds/background-clip-color.html">background-clip-color.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-color.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-color.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-content-box-001.html" title="css/css-backgrounds/background-clip-content-box-001.html">background-clip-content-box-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-content-box-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-content-box-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-content-box-002.html" title="css/css-backgrounds/background-clip-content-box-002.html">background-clip-content-box-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-content-box-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-content-box-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-padding-box-001.html" title="css/css-backgrounds/background-clip-padding-box-001.html">background-clip-padding-box-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-padding-box-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-padding-box-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip-padding-box-with-border-radius.html" title="css/css-backgrounds/background-clip-padding-box-with-border-radius.html">background-clip-padding-box-with-border-radius.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip-padding-box-with-border-radius.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip-padding-box-with-border-radius.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip/clip-rounded-corner.html" title="css/css-backgrounds/background-clip/clip-rounded-corner.html">clip-rounded-corner.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip/clip-rounded-corner.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip/clip-rounded-corner.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip/clip-text-animated-text.html" title="css/css-backgrounds/background-clip/clip-text-animated-text.html">clip-text-animated-text.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip/clip-text-animated-text.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip/clip-text-animated-text.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip/clip-text-dynamic-2.html" title="css/css-backgrounds/background-clip/clip-text-dynamic-2.html">clip-text-dynamic-2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip/clip-text-dynamic-2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip/clip-text-dynamic-2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip/clip-text-flex.html" title="css/css-backgrounds/background-clip/clip-text-flex.html">clip-text-flex.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip/clip-text-flex.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip/clip-text-flex.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip/clip-text-multi-line.html" title="css/css-backgrounds/background-clip/clip-text-multi-line.html">clip-text-multi-line.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip/clip-text-multi-line.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip/clip-text-multi-line.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-clip_padding-box.html" title="css/css-backgrounds/background-clip_padding-box.html">background-clip_padding-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-clip_padding-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-clip_padding-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-paint-order-001.html" title="css/css-backgrounds/background-paint-order-001.html">background-paint-order-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-paint-order-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-paint-order-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-rounded-image-clip-001.html" title="css/css-backgrounds/background-rounded-image-clip-001.html">background-rounded-image-clip-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-rounded-image-clip-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-rounded-image-clip-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-rounded-image-clip-002.html" title="css/css-backgrounds/background-rounded-image-clip-002.html">background-rounded-image-clip-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-rounded-image-clip-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-rounded-image-clip-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-clip-border-box.html" title="css/css-backgrounds/css3-background-clip-border-box.html">css3-background-clip-border-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-clip-border-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-clip-border-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-clip-content-box.html" title="css/css-backgrounds/css3-background-clip-content-box.html">css3-background-clip-content-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-clip-content-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-clip-content-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-clip-padding-box.html" title="css/css-backgrounds/css3-background-clip-padding-box.html">css3-background-clip-padding-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-clip-padding-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-clip-padding-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-clip.html" title="css/css-backgrounds/css3-background-clip.html">css3-background-clip.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-clip.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-clip.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/local-attachment-content-box-scroll.html" title="css/css-backgrounds/local-attachment-content-box-scroll.html">local-attachment-content-box-scroll.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/local-attachment-content-box-scroll.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/local-attachment-content-box-scroll.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-clip-computed.html" title="css/css-backgrounds/parsing/background-clip-computed.html">background-clip-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-clip-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-clip-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-clip-invalid.html" title="css/css-backgrounds/parsing/background-clip-invalid.html">background-clip-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-clip-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-clip-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-clip-valid.html" title="css/css-backgrounds/parsing/background-clip-valid.html">background-clip-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-clip-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-clip-valid.html"><small>(source)</small></a> </ul> </details> <p>Determines the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="background-painting-area">background painting area</dfn>, which determines the area within which the background is painted. Values have the following meanings:</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="background-clip" data-dfn-type="value" data-export id="valdef-background-clip-border-box">border-box</dfn> <dd> The background is painted within (clipped to) the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box">border box</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="background-clip" data-dfn-type="value" data-export id="valdef-background-clip-padding-box">padding-box</dfn> <dd> The background is painted within (clipped to) the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding-box" id="ref-for-padding-box">padding box</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="background-clip" data-dfn-type="value" data-export id="valdef-background-clip-content-box">content-box</dfn> <dd> The background is painted within (clipped to) the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#content-box" id="ref-for-content-box">content box</a>. </dl> <p class="note" role="note"><span class="marker">Note:</span> The root element has a different <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area⑥">background painting area</a> and thus the <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip③">background-clip</a> property has no effect when specified on it. See <a href="#special-backgrounds">§ 2.11 Backgrounds of Special Elements</a>.</p> <p class="note" role="note"><span class="marker">Note:</span> The background is always drawn <em>behind</em> the border, if any. See “Elaborate description of Stacking Contexts” in <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a> Appendix E.</p> <p>See <a href="#corner-shaping">§ 4.2 Corner Shaping</a> for how <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius">border-radius</a> affects the shape of the <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area⑦">background painting area</a>.</p> <p>See <a href="#layering">§ 2.1 Layering Multiple Background Images</a> for how <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip④">background-clip</a> interacts with other comma-separated background properties to form each <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer①⓪">background image layer</a>.</p> <h3 class="heading settled" data-level="2.8" id="background-origin"><span class="secno">2.8. </span><span class="content"> Positioning Area: the <a class="property css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin①">background-origin</a> property</span><span id="the-background-origin"></span><a class="self-link" href="#background-origin"></a></h3> <table class="def propdef" data-link-for-hint="background-origin"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background-origin">background-origin</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-box-4/#typedef-visual-box" id="ref-for-typedef-visual-box①">&lt;visual-box></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑤">#</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>padding-box <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>list, each item a keyword as specified <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>repeatable list </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/discrete-no-interpolation.html" title="css/css-backgrounds/animations/discrete-no-interpolation.html">discrete-no-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-position-origin-interpolation.html" title="css/css-backgrounds/animations/background-position-origin-interpolation.html">background-position-origin-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-position-origin-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-position-origin-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-gradient-subpixel-fills-area.html" title="css/css-backgrounds/background-gradient-subpixel-fills-area.html">background-gradient-subpixel-fills-area.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-gradient-subpixel-fills-area.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-gradient-subpixel-fills-area.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin-001.html" title="css/css-backgrounds/background-origin-001.html">background-origin-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin-002.html" title="css/css-backgrounds/background-origin-002.html">background-origin-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin-003.html" title="css/css-backgrounds/background-origin-003.html">background-origin-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin-004.html" title="css/css-backgrounds/background-origin-004.html">background-origin-004.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin-004.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin-004.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin-005.html" title="css/css-backgrounds/background-origin-005.html">background-origin-005.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin-005.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin-005.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin-006.html" title="css/css-backgrounds/background-origin-006.html">background-origin-006.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin-006.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin-006.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin-007.html" title="css/css-backgrounds/background-origin-007.html">background-origin-007.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin-007.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin-007.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin-008.html" title="css/css-backgrounds/background-origin-008.html">background-origin-008.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin-008.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin-008.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-border-box.html" title="css/css-backgrounds/background-origin/origin-border-box.html">origin-border-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-border-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-border-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-border-box_with_position.html" title="css/css-backgrounds/background-origin/origin-border-box_with_position.html">origin-border-box_with_position.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-border-box_with_position.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-border-box_with_position.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-border-box_with_radius.html" title="css/css-backgrounds/background-origin/origin-border-box_with_radius.html">origin-border-box_with_radius.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-border-box_with_radius.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-border-box_with_radius.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-border-box_with_size.html" title="css/css-backgrounds/background-origin/origin-border-box_with_size.html">origin-border-box_with_size.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-border-box_with_size.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-border-box_with_size.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-content-box.html" title="css/css-backgrounds/background-origin/origin-content-box.html">origin-content-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-content-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-content-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-content-box_with_position.html" title="css/css-backgrounds/background-origin/origin-content-box_with_position.html">origin-content-box_with_position.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-content-box_with_position.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-content-box_with_position.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-content-box_with_radius.html" title="css/css-backgrounds/background-origin/origin-content-box_with_radius.html">origin-content-box_with_radius.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-content-box_with_radius.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-content-box_with_radius.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-content-box_with_size.html" title="css/css-backgrounds/background-origin/origin-content-box_with_size.html">origin-content-box_with_size.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-content-box_with_size.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-content-box_with_size.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-padding-box.html" title="css/css-backgrounds/background-origin/origin-padding-box.html">origin-padding-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-padding-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-padding-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-padding-box_with_position.html" title="css/css-backgrounds/background-origin/origin-padding-box_with_position.html">origin-padding-box_with_position.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-padding-box_with_position.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-padding-box_with_position.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-padding-box_with_radius.html" title="css/css-backgrounds/background-origin/origin-padding-box_with_radius.html">origin-padding-box_with_radius.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-padding-box_with_radius.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-padding-box_with_radius.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-origin/origin-padding-box_with_size.html" title="css/css-backgrounds/background-origin/origin-padding-box_with_size.html">origin-padding-box_with_size.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-origin/origin-padding-box_with_size.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-origin/origin-padding-box_with_size.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-origin-border-box.html" title="css/css-backgrounds/css3-background-origin-border-box.html">css3-background-origin-border-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-origin-border-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-origin-border-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-origin-content-box.html" title="css/css-backgrounds/css3-background-origin-content-box.html">css3-background-origin-content-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-origin-content-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-origin-content-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-origin-padding-box.html" title="css/css-backgrounds/css3-background-origin-padding-box.html">css3-background-origin-padding-box.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-origin-padding-box.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-origin-padding-box.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-origin-computed.html" title="css/css-backgrounds/parsing/background-origin-computed.html">background-origin-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-origin-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-origin-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-origin-invalid.html" title="css/css-backgrounds/parsing/background-origin-invalid.html">background-origin-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-origin-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-origin-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-origin-valid.html" title="css/css-backgrounds/parsing/background-origin-valid.html">background-origin-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-origin-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-origin-valid.html"><small>(source)</small></a> </ul> </details> <p>This property determines the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="background-positioning-area">background positioning area</dfn>: the area within which any background images are positioned. For elements rendered as multiple <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#box-fragment" id="ref-for-box-fragment①">box fragments</a> (e.g., inline boxes on several lines, boxes on several pages), specifies which boxes <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break" id="ref-for-propdef-box-decoration-break①">box-decoration-break</a> <a data-link-type="biblio" href="#biblio-css-break-3" title="CSS Fragmentation Module Level 3">[CSS-BREAK-3]</a> operates on to determine the background positioning area(s).</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="background-origin" data-dfn-type="value" data-export id="valdef-background-origin-padding-box">padding-box</dfn> <dd> The position is relative to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding-box" id="ref-for-padding-box①">padding box</a>. (For single boxes <span class="css">0 0</span> is the upper left corner of the padding edge, <span class="css">100% 100%</span> is the lower right corner.) <dt><dfn class="dfn-paneled css" data-dfn-for="background-origin" data-dfn-type="value" data-export id="valdef-background-origin-border-box">border-box</dfn> <dd> The position is relative to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box①">border box</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="background-origin" data-dfn-type="value" data-export id="valdef-background-origin-content-box">content-box</dfn> <dd> The position is relative to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#content-box" id="ref-for-content-box①">content box</a>. </dl> <p>If the <a class="property css" data-link-type="property" href="#propdef-background-attachment" id="ref-for-propdef-background-attachment②">background-attachment</a> value for this <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer①①">layer</a> is <a class="css" data-link-type="maybe" href="#valdef-background-attachment-fixed" id="ref-for-valdef-background-attachment-fixed⑤">fixed</a>, then this property has no effect: in this case the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area①②">background positioning area</a> is the <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-4/#initial-containing-block" id="ref-for-initial-containing-block">initial containing block</a>.</p> <p class="note" role="note"><span class="marker">Note:</span> If <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip⑤">background-clip</a> is <a class="css" data-link-type="maybe" href="#valdef-background-clip-padding-box" id="ref-for-valdef-background-clip-padding-box①">padding-box</a>, <a class="property css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin②">background-origin</a> is <a class="css" data-link-type="maybe" href="#valdef-background-origin-border-box" id="ref-for-valdef-background-origin-border-box">border-box</a>, <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position⑧">background-position</a> is <span class="css">top left</span> (the initial value), and the element has a non-zero border, then the top and left edges of the <a data-link-type="dfn" href="#background-images" id="ref-for-background-images①⓪">background image</a> will be clipped.</p> <p>See <a href="#layering">§ 2.1 Layering Multiple Background Images</a> for how <a class="property css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin③">background-origin</a> interacts with other comma-separated background properties to form each <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer①②">background image layer</a>.</p> <h3 class="heading settled" data-level="2.9" id="background-size"><span class="secno">2.9. </span><span class="content">Sizing Images: the <a class="property css" data-link-type="property" href="#propdef-background-size" id="ref-for-propdef-background-size②">background-size</a> property</span><span id="the-background-size"></span><a class="self-link" href="#background-size"></a></h3> <table class="def propdef" data-link-for-hint="background-size"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background-size">background-size</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-bg-size" id="ref-for-typedef-bg-size">&lt;bg-size></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑥">#</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>auto <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>see text <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>list, each item a pair of sizes (one per axis) each represented as either a keyword or a computed <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①⓪">&lt;length-percentage></a> value <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>repeatable list </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/background-size-interpolation.html" title="css/css-backgrounds/animations/background-size-interpolation.html">background-size-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/background-size-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/background-size-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-001.html" title="css/css-backgrounds/background-size-001.html">background-size-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-002.html" title="css/css-backgrounds/background-size-002.html">background-size-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-005.html" title="css/css-backgrounds/background-size-005.html">background-size-005.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-005.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-005.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-006.html" title="css/css-backgrounds/background-size-006.html">background-size-006.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-006.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-006.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-007.html" title="css/css-backgrounds/background-size-007.html">background-size-007.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-007.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-007.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-008.html" title="css/css-backgrounds/background-size-008.html">background-size-008.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-008.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-008.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-009.html" title="css/css-backgrounds/background-size-009.html">background-size-009.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-009.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-009.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-010.html" title="css/css-backgrounds/background-size-010.html">background-size-010.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-010.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-010.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-011.html" title="css/css-backgrounds/background-size-011.html">background-size-011.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-011.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-011.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-012.html" title="css/css-backgrounds/background-size-012.html">background-size-012.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-012.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-012.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-013.html" title="css/css-backgrounds/background-size-013.html">background-size-013.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-013.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-013.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-014.html" title="css/css-backgrounds/background-size-014.html">background-size-014.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-014.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-014.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-015.html" title="css/css-backgrounds/background-size-015.html">background-size-015.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-015.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-015.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-016.html" title="css/css-backgrounds/background-size-016.html">background-size-016.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-016.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-016.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-017.html" title="css/css-backgrounds/background-size-017.html">background-size-017.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-017.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-017.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-018.html" title="css/css-backgrounds/background-size-018.html">background-size-018.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-018.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-018.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-019.html" title="css/css-backgrounds/background-size-019.html">background-size-019.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-019.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-019.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-020.html" title="css/css-backgrounds/background-size-020.html">background-size-020.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-020.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-020.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-021.html" title="css/css-backgrounds/background-size-021.html">background-size-021.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-021.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-021.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-025.html" title="css/css-backgrounds/background-size-025.html">background-size-025.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-025.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-025.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-026.html" title="css/css-backgrounds/background-size-026.html">background-size-026.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-026.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-026.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-027.html" title="css/css-backgrounds/background-size-027.html">background-size-027.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-027.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-027.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-028.html" title="css/css-backgrounds/background-size-028.html">background-size-028.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-028.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-028.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-029.html" title="css/css-backgrounds/background-size-029.html">background-size-029.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-029.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-029.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-030.html" title="css/css-backgrounds/background-size-030.html">background-size-030.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-030.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-030.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-031.html" title="css/css-backgrounds/background-size-031.html">background-size-031.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-031.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-031.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-034.html" title="css/css-backgrounds/background-size-034.html">background-size-034.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-034.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-034.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-041.html" title="css/css-backgrounds/background-size-041.html">background-size-041.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-041.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-041.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-042.html" title="css/css-backgrounds/background-size-042.html">background-size-042.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-042.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-042.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-043.html" title="css/css-backgrounds/background-size-043.html">background-size-043.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-043.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-043.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-044.html" title="css/css-backgrounds/background-size-044.html">background-size-044.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-044.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-044.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-contain-001.html" title="css/css-backgrounds/background-size-contain-001.html">background-size-contain-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-contain-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-contain-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-contain-002.html" title="css/css-backgrounds/background-size-contain-002.html">background-size-contain-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-contain-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-contain-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-cover-001.html" title="css/css-backgrounds/background-size-cover-001.html">background-size-cover-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-cover-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-cover-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-cover-002.html" title="css/css-backgrounds/background-size-cover-002.html">background-size-cover-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-cover-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-cover-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-cover-003.html" title="css/css-backgrounds/background-size-cover-003.html">background-size-cover-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-cover-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-cover-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-one-value-1x1-image.html" title="css/css-backgrounds/background-size-one-value-1x1-image.html">background-size-one-value-1x1-image.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-one-value-1x1-image.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-one-value-1x1-image.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-percentage-root.html" title="css/css-backgrounds/background-size-percentage-root.html">background-size-percentage-root.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-percentage-root.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-percentage-root.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size-with-negative-value.html" title="css/css-backgrounds/background-size-with-negative-value.html">background-size-with-negative-value.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size-with-negative-value.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size-with-negative-value.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-contain-svg-view.html" title="css/css-backgrounds/background-size/background-size-contain-svg-view.html">background-size-contain-svg-view.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-contain-svg-view.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-contain-svg-view.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-contain.xht" title="css/css-backgrounds/background-size/background-size-contain.xht">background-size-contain.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-contain.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-contain.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-cover-contain-001.xht" title="css/css-backgrounds/background-size/background-size-cover-contain-001.xht">background-size-cover-contain-001.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-cover-contain-001.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-cover-contain-001.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-cover-contain-002.xht" title="css/css-backgrounds/background-size/background-size-cover-contain-002.xht">background-size-cover-contain-002.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-cover-contain-002.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-cover-contain-002.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-cover-svg-view.html" title="css/css-backgrounds/background-size/background-size-cover-svg-view.html">background-size-cover-svg-view.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-cover-svg-view.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-cover-svg-view.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-cover-svg.html" title="css/css-backgrounds/background-size/background-size-cover-svg.html">background-size-cover-svg.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-cover-svg.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-cover-svg.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-cover.xht" title="css/css-backgrounds/background-size/background-size-cover.xht">background-size-cover.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-cover.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-cover.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-near-zero-color.html" title="css/css-backgrounds/background-size/background-size-near-zero-color.html">background-size-near-zero-color.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-near-zero-color.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-near-zero-color.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-near-zero-gradient.html" title="css/css-backgrounds/background-size/background-size-near-zero-gradient.html">background-size-near-zero-gradient.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-near-zero-gradient.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-near-zero-gradient.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-near-zero-png.html" title="css/css-backgrounds/background-size/background-size-near-zero-png.html">background-size-near-zero-png.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-near-zero-png.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-near-zero-png.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/background-size-near-zero-svg.html" title="css/css-backgrounds/background-size/background-size-near-zero-svg.html">background-size-near-zero-svg.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/background-size-near-zero-svg.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/background-size-near-zero-svg.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-001.html" title="css/css-backgrounds/background-size/vector/background-size-vector-001.html">background-size-vector-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-002.html" title="css/css-backgrounds/background-size/vector/background-size-vector-002.html">background-size-vector-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-003.html" title="css/css-backgrounds/background-size/vector/background-size-vector-003.html">background-size-vector-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-004.html" title="css/css-backgrounds/background-size/vector/background-size-vector-004.html">background-size-vector-004.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-004.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-004.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-005.html" title="css/css-backgrounds/background-size/vector/background-size-vector-005.html">background-size-vector-005.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-005.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-005.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-006.html" title="css/css-backgrounds/background-size/vector/background-size-vector-006.html">background-size-vector-006.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-006.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-006.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-007.html" title="css/css-backgrounds/background-size/vector/background-size-vector-007.html">background-size-vector-007.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-007.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-007.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-008.html" title="css/css-backgrounds/background-size/vector/background-size-vector-008.html">background-size-vector-008.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-008.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-008.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-009.html" title="css/css-backgrounds/background-size/vector/background-size-vector-009.html">background-size-vector-009.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-009.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-009.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-010.html" title="css/css-backgrounds/background-size/vector/background-size-vector-010.html">background-size-vector-010.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-010.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-010.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-011.html" title="css/css-backgrounds/background-size/vector/background-size-vector-011.html">background-size-vector-011.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-011.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-011.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-012.html" title="css/css-backgrounds/background-size/vector/background-size-vector-012.html">background-size-vector-012.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-012.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-012.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-013.html" title="css/css-backgrounds/background-size/vector/background-size-vector-013.html">background-size-vector-013.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-013.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-013.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-014.html" title="css/css-backgrounds/background-size/vector/background-size-vector-014.html">background-size-vector-014.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-014.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-014.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-015.html" title="css/css-backgrounds/background-size/vector/background-size-vector-015.html">background-size-vector-015.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-015.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-015.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-016.html" title="css/css-backgrounds/background-size/vector/background-size-vector-016.html">background-size-vector-016.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-016.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-016.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-017.html" title="css/css-backgrounds/background-size/vector/background-size-vector-017.html">background-size-vector-017.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-017.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-017.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-018.html" title="css/css-backgrounds/background-size/vector/background-size-vector-018.html">background-size-vector-018.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-018.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-018.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-019.html" title="css/css-backgrounds/background-size/vector/background-size-vector-019.html">background-size-vector-019.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-019.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-019.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-020.html" title="css/css-backgrounds/background-size/vector/background-size-vector-020.html">background-size-vector-020.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-020.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-020.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-021.html" title="css/css-backgrounds/background-size/vector/background-size-vector-021.html">background-size-vector-021.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-021.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-021.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-022.html" title="css/css-backgrounds/background-size/vector/background-size-vector-022.html">background-size-vector-022.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-022.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-022.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-023.html" title="css/css-backgrounds/background-size/vector/background-size-vector-023.html">background-size-vector-023.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-023.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-023.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-024.html" title="css/css-backgrounds/background-size/vector/background-size-vector-024.html">background-size-vector-024.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-024.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-024.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-025.html" title="css/css-backgrounds/background-size/vector/background-size-vector-025.html">background-size-vector-025.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-025.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-025.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-026.html" title="css/css-backgrounds/background-size/vector/background-size-vector-026.html">background-size-vector-026.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-026.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-026.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-027.html" title="css/css-backgrounds/background-size/vector/background-size-vector-027.html">background-size-vector-027.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-027.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-027.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-028.html" title="css/css-backgrounds/background-size/vector/background-size-vector-028.html">background-size-vector-028.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-028.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-028.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/background-size-vector-029.html" title="css/css-backgrounds/background-size/vector/background-size-vector-029.html">background-size-vector-029.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/background-size-vector-029.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/background-size-vector-029.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/diagonal-percentage-vector-background.html" title="css/css-backgrounds/background-size/vector/diagonal-percentage-vector-background.html">diagonal-percentage-vector-background.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/diagonal-percentage-vector-background.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/diagonal-percentage-vector-background.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto--omitted-width-percent-height.html">tall--auto--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto--percent-width-nonpercent-height-viewbox.html">tall--auto--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto--percent-width-nonpercent-height.html">tall--auto--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto--percent-width-omitted-height-viewbox.html">tall--auto--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--auto--percent-width-omitted-height.html">tall--auto--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto--percent-width-percent-height-viewbox.html">tall--auto--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto--percent-width-percent-height.html">tall--auto--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-nonpercent-height-viewbox.html">tall--auto-32px--nonpercent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-nonpercent-height.html">tall--auto-32px--nonpercent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-omitted-height-viewbox.html">tall--auto-32px--nonpercent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-omitted-height.html">tall--auto-32px--nonpercent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-percent-height-viewbox.html">tall--auto-32px--nonpercent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-percent-height.html">tall--auto-32px--nonpercent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--nonpercent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-nonpercent-height-viewbox.html">tall--auto-32px--omitted-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-nonpercent-height.html">tall--auto-32px--omitted-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-omitted-height-viewbox.html">tall--auto-32px--omitted-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-omitted-height.html">tall--auto-32px--omitted-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-percent-height-viewbox.html">tall--auto-32px--omitted-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-percent-height.html">tall--auto-32px--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-nonpercent-height-viewbox.html">tall--auto-32px--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-nonpercent-height.html">tall--auto-32px--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-omitted-height-viewbox.html">tall--auto-32px--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-omitted-height.html">tall--auto-32px--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-percent-height-viewbox.html">tall--auto-32px--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-percent-height.html">tall--auto-32px--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--auto-32px--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--height.html" title="css/css-backgrounds/background-size/vector/tall--contain--height.html">tall--contain--height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-nonpercent-height-viewbox.html">tall--contain--nonpercent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-nonpercent-height.html">tall--contain--nonpercent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-omitted-height-viewbox.html">tall--contain--nonpercent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-omitted-height.html">tall--contain--nonpercent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-percent-height-viewbox.html">tall--contain--nonpercent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-percent-height.html">tall--contain--nonpercent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--nonpercent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--omitted-width-nonpercent-height-viewbox.html">tall--contain--omitted-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--omitted-width-nonpercent-height.html">tall--contain--omitted-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--omitted-width-omitted-height-viewbox.html">tall--contain--omitted-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--omitted-width-omitted-height.html">tall--contain--omitted-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--omitted-width-percent-height-viewbox.html">tall--contain--omitted-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--omitted-width-percent-height.html">tall--contain--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--percent-width-nonpercent-height-viewbox.html">tall--contain--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--percent-width-nonpercent-height.html">tall--contain--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--percent-width-omitted-height-viewbox.html">tall--contain--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--percent-width-omitted-height.html">tall--contain--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--contain--percent-width-percent-height-viewbox.html">tall--contain--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--contain--percent-width-percent-height.html">tall--contain--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--contain--width.html" title="css/css-backgrounds/background-size/vector/tall--contain--width.html">tall--contain--width.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--contain--width.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--contain--width.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--height.html" title="css/css-backgrounds/background-size/vector/tall--cover--height.html">tall--cover--height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height--crisp.html" title="css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height--crisp.html">tall--cover--nonpercent-width-nonpercent-height--crisp.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height--crisp.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height--crisp.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height-viewbox--crisp.html" title="css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height-viewbox--crisp.html">tall--cover--nonpercent-width-nonpercent-height-viewbox--crisp.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height-viewbox--crisp.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height-viewbox--crisp.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height-viewbox.html">tall--cover--nonpercent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height.html">tall--cover--nonpercent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-omitted-height-viewbox.html">tall--cover--nonpercent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-omitted-height.html">tall--cover--nonpercent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-percent-height-viewbox.html">tall--cover--nonpercent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-percent-height.html">tall--cover--nonpercent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--nonpercent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--omitted-width-nonpercent-height-viewbox.html">tall--cover--omitted-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--omitted-width-nonpercent-height.html">tall--cover--omitted-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--omitted-width-omitted-height-viewbox.html">tall--cover--omitted-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--omitted-width-omitted-height.html">tall--cover--omitted-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--omitted-width-percent-height-viewbox.html">tall--cover--omitted-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--omitted-width-percent-height.html">tall--cover--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--percent-width-nonpercent-height-viewbox.html">tall--cover--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--percent-width-nonpercent-height.html">tall--cover--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--percent-width-omitted-height-viewbox.html">tall--cover--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--percent-width-omitted-height.html">tall--cover--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/tall--cover--percent-width-percent-height-viewbox.html">tall--cover--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/tall--cover--percent-width-percent-height.html">tall--cover--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/tall--cover--width.html" title="css/css-backgrounds/background-size/vector/tall--cover--width.html">tall--cover--width.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/tall--cover--width.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/tall--cover--width.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-nonpercent-height-viewbox.html">wide--12px-auto--nonpercent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-nonpercent-height.html">wide--12px-auto--nonpercent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-omitted-height-viewbox.html">wide--12px-auto--nonpercent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-omitted-height.html">wide--12px-auto--nonpercent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-percent-height-viewbox.html">wide--12px-auto--nonpercent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-percent-height.html">wide--12px-auto--nonpercent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--nonpercent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-nonpercent-height-viewbox.html">wide--12px-auto--omitted-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-nonpercent-height.html">wide--12px-auto--omitted-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-omitted-height-viewbox.html">wide--12px-auto--omitted-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-omitted-height.html">wide--12px-auto--omitted-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-percent-height-viewbox.html">wide--12px-auto--omitted-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-percent-height.html">wide--12px-auto--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-nonpercent-height-viewbox.html">wide--12px-auto--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-nonpercent-height.html">wide--12px-auto--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-omitted-height-viewbox.html">wide--12px-auto--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-omitted-height.html">wide--12px-auto--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-percent-height-viewbox.html">wide--12px-auto--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-percent-height.html">wide--12px-auto--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--12px-auto--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-nonpercent-height-viewbox.html">wide--auto--nonpercent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-nonpercent-height.html">wide--auto--nonpercent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-omitted-height-viewbox.html">wide--auto--nonpercent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-omitted-height.html">wide--auto--nonpercent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-percent-height-viewbox.html">wide--auto--nonpercent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-percent-height.html">wide--auto--nonpercent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--nonpercent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--omitted-width-nonpercent-height-viewbox.html">wide--auto--omitted-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--omitted-width-nonpercent-height.html">wide--auto--omitted-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--omitted-width-omitted-height-viewbox.html">wide--auto--omitted-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--omitted-width-omitted-height.html">wide--auto--omitted-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--omitted-width-percent-height-viewbox.html">wide--auto--omitted-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--omitted-width-percent-height.html">wide--auto--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--percent-width-nonpercent-height-viewbox.html">wide--auto--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--percent-width-nonpercent-height.html">wide--auto--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--percent-width-omitted-height-viewbox.html">wide--auto--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--percent-width-omitted-height.html">wide--auto--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto--percent-width-percent-height-viewbox.html">wide--auto--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto--percent-width-percent-height.html">wide--auto--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-nonpercent-height-viewbox.html">wide--auto-32px--nonpercent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-nonpercent-height.html">wide--auto-32px--nonpercent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-omitted-height-viewbox.html">wide--auto-32px--nonpercent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-omitted-height.html">wide--auto-32px--nonpercent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-percent-height-viewbox.html">wide--auto-32px--nonpercent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-percent-height.html">wide--auto-32px--nonpercent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--nonpercent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-nonpercent-height-viewbox.html">wide--auto-32px--omitted-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-nonpercent-height.html">wide--auto-32px--omitted-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-omitted-height-viewbox.html">wide--auto-32px--omitted-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-omitted-height.html">wide--auto-32px--omitted-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-percent-height-viewbox.html">wide--auto-32px--omitted-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-percent-height.html">wide--auto-32px--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-nonpercent-height-viewbox.html">wide--auto-32px--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-nonpercent-height.html">wide--auto-32px--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-omitted-height-viewbox.html">wide--auto-32px--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-omitted-height.html">wide--auto-32px--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-percent-height-viewbox.html">wide--auto-32px--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-percent-height.html">wide--auto-32px--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--auto-32px--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--height.html" title="css/css-backgrounds/background-size/vector/wide--contain--height.html">wide--contain--height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-nonpercent-height-viewbox.html">wide--contain--nonpercent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-nonpercent-height.html">wide--contain--nonpercent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-omitted-height-viewbox.html">wide--contain--nonpercent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-omitted-height.html">wide--contain--nonpercent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-percent-height-viewbox.html">wide--contain--nonpercent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-percent-height.html">wide--contain--nonpercent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--nonpercent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--omitted-width-nonpercent-height-viewbox.html">wide--contain--omitted-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--omitted-width-nonpercent-height.html">wide--contain--omitted-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--omitted-width-omitted-height-viewbox.html">wide--contain--omitted-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--omitted-width-omitted-height.html">wide--contain--omitted-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--omitted-width-percent-height-viewbox.html">wide--contain--omitted-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--omitted-width-percent-height.html">wide--contain--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--percent-width-nonpercent-height-viewbox.html">wide--contain--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--percent-width-nonpercent-height.html">wide--contain--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--percent-width-omitted-height-viewbox.html">wide--contain--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--percent-width-omitted-height.html">wide--contain--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--contain--percent-width-percent-height-viewbox.html">wide--contain--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--contain--percent-width-percent-height.html">wide--contain--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--contain--width.html" title="css/css-backgrounds/background-size/vector/wide--contain--width.html">wide--contain--width.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--contain--width.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--contain--width.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--height.html" title="css/css-backgrounds/background-size/vector/wide--cover--height.html">wide--cover--height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height-viewbox.html">wide--cover--nonpercent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height.html">wide--cover--nonpercent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-omitted-height-viewbox.html">wide--cover--nonpercent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-omitted-height.html">wide--cover--nonpercent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-percent-height-viewbox.html">wide--cover--nonpercent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-percent-height.html">wide--cover--nonpercent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--omitted-width-nonpercent-height-viewbox.html">wide--cover--omitted-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--omitted-width-nonpercent-height.html">wide--cover--omitted-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--omitted-width-omitted-height-viewbox.html">wide--cover--omitted-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--omitted-width-omitted-height.html">wide--cover--omitted-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--omitted-width-percent-height-viewbox.html">wide--cover--omitted-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--omitted-width-percent-height.html">wide--cover--omitted-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--omitted-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--percent-width-nonpercent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--percent-width-nonpercent-height-viewbox.html">wide--cover--percent-width-nonpercent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--percent-width-nonpercent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--percent-width-nonpercent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--percent-width-nonpercent-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--percent-width-nonpercent-height.html">wide--cover--percent-width-nonpercent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--percent-width-nonpercent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--percent-width-nonpercent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--percent-width-omitted-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--percent-width-omitted-height-viewbox.html">wide--cover--percent-width-omitted-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--percent-width-omitted-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--percent-width-omitted-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--percent-width-omitted-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--percent-width-omitted-height.html">wide--cover--percent-width-omitted-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--percent-width-omitted-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--percent-width-omitted-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--percent-width-percent-height-viewbox.html" title="css/css-backgrounds/background-size/vector/wide--cover--percent-width-percent-height-viewbox.html">wide--cover--percent-width-percent-height-viewbox.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--percent-width-percent-height-viewbox.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--percent-width-percent-height-viewbox.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--percent-width-percent-height.html" title="css/css-backgrounds/background-size/vector/wide--cover--percent-width-percent-height.html">wide--cover--percent-width-percent-height.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--percent-width-percent-height.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--percent-width-percent-height.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/wide--cover--width.html" title="css/css-backgrounds/background-size/vector/wide--cover--width.html">wide--cover--width.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/wide--cover--width.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/wide--cover--width.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-height-ratio-5px-auto.html" title="css/css-backgrounds/background-size/vector/zero-height-ratio-5px-auto.html">zero-height-ratio-5px-auto.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-height-ratio-5px-auto.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-height-ratio-5px-auto.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-height-ratio-auto-5px.html" title="css/css-backgrounds/background-size/vector/zero-height-ratio-auto-5px.html">zero-height-ratio-auto-5px.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-height-ratio-auto-5px.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-height-ratio-auto-5px.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-height-ratio-auto-auto.html" title="css/css-backgrounds/background-size/vector/zero-height-ratio-auto-auto.html">zero-height-ratio-auto-auto.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-height-ratio-auto-auto.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-height-ratio-auto-auto.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-height-ratio-contain.html" title="css/css-backgrounds/background-size/vector/zero-height-ratio-contain.html">zero-height-ratio-contain.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-height-ratio-contain.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-height-ratio-contain.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-height-ratio-cover.html" title="css/css-backgrounds/background-size/vector/zero-height-ratio-cover.html">zero-height-ratio-cover.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-height-ratio-cover.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-height-ratio-cover.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-5px-auto.html" title="css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-5px-auto.html">zero-ratio-no-dimensions-5px-auto.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-5px-auto.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-5px-auto.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-auto-5px.html" title="css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-auto-5px.html">zero-ratio-no-dimensions-auto-5px.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-auto-5px.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-auto-5px.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-auto-auto.html" title="css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-auto-auto.html">zero-ratio-no-dimensions-auto-auto.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-auto-auto.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-auto-auto.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-contain.html" title="css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-contain.html">zero-ratio-no-dimensions-contain.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-contain.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-contain.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-cover.html" title="css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-cover.html">zero-ratio-no-dimensions-cover.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-cover.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-ratio-no-dimensions-cover.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-width-ratio-5px-auto.html" title="css/css-backgrounds/background-size/vector/zero-width-ratio-5px-auto.html">zero-width-ratio-5px-auto.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-width-ratio-5px-auto.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-width-ratio-5px-auto.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-width-ratio-auto-5px.html" title="css/css-backgrounds/background-size/vector/zero-width-ratio-auto-5px.html">zero-width-ratio-auto-5px.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-width-ratio-auto-5px.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-width-ratio-auto-5px.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-width-ratio-auto-auto.html" title="css/css-backgrounds/background-size/vector/zero-width-ratio-auto-auto.html">zero-width-ratio-auto-auto.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-width-ratio-auto-auto.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-width-ratio-auto-auto.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-width-ratio-contain.html" title="css/css-backgrounds/background-size/vector/zero-width-ratio-contain.html">zero-width-ratio-contain.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-width-ratio-contain.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-width-ratio-contain.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-size/vector/zero-width-ratio-cover.html" title="css/css-backgrounds/background-size/vector/zero-width-ratio-cover.html">zero-width-ratio-cover.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-size/vector/zero-width-ratio-cover.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-size/vector/zero-width-ratio-cover.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-size-001.html" title="css/css-backgrounds/css3-background-size-001.html">css3-background-size-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-size-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-size-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-size-contain.html" title="css/css-backgrounds/css3-background-size-contain.html">css3-background-size-contain.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-size-contain.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-size-contain.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-background-size.html" title="css/css-backgrounds/css3-background-size.html">css3-background-size.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-background-size.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-background-size.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/subpixel-repeat-no-repeat-mix.html" title="css/css-backgrounds/subpixel-repeat-no-repeat-mix.html">subpixel-repeat-no-repeat-mix.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/subpixel-repeat-no-repeat-mix.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/subpixel-repeat-no-repeat-mix.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-size-computed.html" title="css/css-backgrounds/parsing/background-size-computed.html">background-size-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-size-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-size-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-size-invalid.html" title="css/css-backgrounds/parsing/background-size-invalid.html">background-size-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-size-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-size-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-size-valid.html" title="css/css-backgrounds/parsing/background-size-valid.html">background-size-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-size-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-size-valid.html"><small>(source)</small></a> </ul> </details> <p>This property specifies the size of each <a data-link-type="dfn" href="#background-images" id="ref-for-background-images①①">background image</a>. The property’s value is given as a comma-separated list of <a class="production css" data-link-type="type" href="#typedef-bg-size" id="ref-for-typedef-bg-size①">&lt;bg-size></a> values where</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-bg-size"><a class="production" data-link-type="type" href="#typedef-bg-size" id="ref-for-typedef-bg-size②">&lt;bg-size></a></dfn> = [ <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①①">&lt;length-percentage [0,∞]></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑤">|</a> auto ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range①">{1,2}</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑥">|</a> cover <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑦">|</a> contain</pre> <p>Values have the following meanings:</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="background-size" data-dfn-type="value" data-export id="valdef-background-size-contain">contain</dfn> <dd> Scale the image, while preserving its <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-aspect-ratio" id="ref-for-natural-aspect-ratio">natural aspect ratio</a> (if any), to the largest size such that both its width and its height can fit inside the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area①③">background positioning area</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="background-size" data-dfn-type="value" data-export id="valdef-background-size-cover">cover</dfn> <dd> Scale the image, while preserving its <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-aspect-ratio" id="ref-for-natural-aspect-ratio①">natural aspect ratio</a> (if any), to the smallest size such that both its width and its height can completely cover the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area①④">background positioning area</a>. <dt>[ <dfn class="dfn-paneled css" data-dfn-for="background-size" data-dfn-type="value" data-export id="valdef-background-size-length-percentage-0"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①②">&lt;length-percentage [0,∞]></a></dfn> | <dfn class="dfn-paneled css" data-dfn-for="background-size" data-dfn-type="value" data-export id="valdef-background-size-auto">auto</dfn> ]{1,2} <dd> The first value gives the width of the corresponding image, the second value its height. If only one value is given the second is assumed to be <a class="css" data-link-type="maybe" href="#valdef-background-size-auto" id="ref-for-valdef-background-size-auto">auto</a>. <p>A <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#percentage-value" id="ref-for-percentage-value①">&lt;percentage></a> is relative to the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area①⑤">background positioning area</a>.</p> <p>An <a class="css" data-link-type="maybe" href="#valdef-background-size-auto" id="ref-for-valdef-background-size-auto①">auto</a> value for one dimension is resolved by using the image’s <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-aspect-ratio" id="ref-for-natural-aspect-ratio②">natural aspect ratio</a> and the size of the other dimension, or failing that, using the image’s <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-size" id="ref-for-natural-size">natural size</a>, or failing that, treating it as <span class="css">100%</span>.</p> <p>If both values are <a class="css" data-link-type="maybe" href="#valdef-background-size-auto" id="ref-for-valdef-background-size-auto②">auto</a> then the <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-width" id="ref-for-natural-width">natural width</a> and/or <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-height" id="ref-for-natural-height">height</a> of the image should be used, if any, the missing dimension (if any) behaving as <span class="css" id="ref-for-valdef-background-size-auto③">auto</span> as described above. If the image has neither <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-size" id="ref-for-natural-size①">natural size</a>, its size is determined as for <a class="css" data-link-type="maybe" href="#valdef-background-size-contain" id="ref-for-valdef-background-size-contain">contain</a>.</p> <p>Negative values are invalid.</p> </dl> <div class="example" id="example-bb1c7b0c"> <a class="self-link" href="#example-bb1c7b0c"></a> Here are some examples. The first example stretches the background image independently in both dimensions to completely cover the content area: <pre>div { background-image: url(plasma.png); background-repeat: no-repeat; background-size: 100% 100%; background-origin: content-box } </pre> <p>The second example stretches the image so that exactly two copies fit horizontally. The aspect ratio is preserved:</p> <pre>p { background-image: url(tubes.png); background-size: 50% auto; background-origin: border-box } </pre> <p>This example forces the background image to be 15 by 15 pixels:</p> <pre>p { background-size: 15px 15px; background-image: url(tile.png)} </pre> <p>This example uses the image’s natural size. Note that this is the only possible behavior in CSS level 1 and 2.</p> <pre>body { background-size: auto; /* default */ background-image: url(flower.png) } </pre> <p>The following example rounds the height of the image to 33.3%, up from the specified value of 30%. At 30%, three images would fit entirely and a fourth only partially. After rounding, three images fit exactly. The width of the image is 20% of the background positioning area width and is not rounded.</p> <pre>p { background-image: url(chain.png); background-repeat: no-repeat round; background-size: 20% 30% } </pre> </div> <p>If <a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat③">background-repeat</a> is <a class="css" data-link-type="maybe" href="#valdef-background-repeat-round" id="ref-for-valdef-background-repeat-round①">round</a> for one (or both) dimensions, there is a second step. The UA must scale the image in that dimension (or both dimensions) so that it fits a whole number of times in the <a data-link-type="dfn" href="#background-positioning-area" id="ref-for-background-positioning-area①⑥">background positioning area</a>. In the case of the width (height is analogous):</p> <blockquote> If <var>X</var> ≠ 0 is the width of the image after step one and <var>W</var> is the width of the background positioning area, then the rounded width <var>X'</var> = <var>W</var> / round(<var>W</var> / <var>X</var>) where round() is a function that returns the nearest natural number (integer greater than zero). </blockquote> <p>If <a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat④">background-repeat</a> is <a class="css" data-link-type="maybe" href="#valdef-background-repeat-round" id="ref-for-valdef-background-repeat-round②">round</a> for one dimension only and if <a class="property css" data-link-type="property" href="#propdef-background-size" id="ref-for-propdef-background-size③">background-size</a> is <a class="css" data-link-type="maybe" href="#valdef-background-size-auto" id="ref-for-valdef-background-size-auto④">auto</a> for the other dimension, then there is a third step: that other dimension is scaled so that the original aspect ratio is restored.</p> <div class="example" id="example-a61fb097"> <a class="self-link" href="#example-a61fb097"></a> In this example the background image is shown at its natural size: <pre>div { background-image: url(image1.png); background-repeat: repeat; /* default */ background-size: auto } /* default */ </pre> <p>In the following example, the background is shown with a width of 3em and its height is scaled proportionally to keep the original aspect ratio:</p> <pre>div { background-image: url(image2.png); background-repeat: repeat; /* default */ background-size: 3em } /* = '3em auto' */ </pre> <p>In the following example, the background is shown with a width of approximately 3em: scaled so that it fits a whole number of times in the width of the background. The height is scaled proportionally to keep the original aspect ratio:</p> <pre>div { background-image: url(image3.png); background-repeat: round repeat; background-size: 3em auto } </pre> <p>In the following example, the background image is shown with a width of 3em and a height that is either the height corresponding to that width at the original aspect ratio or slightly less:</p> <pre>div { background-image: url(image4.png); background-repeat: repeat round; background-size: 3em auto } </pre> <p>In the following example, the background image is shown with a height of approximately 4em: scaled slightly so that it fits a whole number of times in the background height. The width is the approximately the width that corresponds to a 4em height at the original aspect ratio: scaled slightly so that it fits a whole number of times in the background width.</p> <pre>div { background-image: url(image5.png); background-repeat: round; background-size: auto 4em } </pre> </div> <p>If the background image’s width or height resolves to zero, this causes the image not to be displayed. (The effect is the same as if it had been a transparent image.)</p> <p>See <a href="#layering">§ 2.1 Layering Multiple Background Images</a> for how <a class="property css" data-link-type="property" href="#propdef-background-size" id="ref-for-propdef-background-size④">background-size</a> interacts with other comma-separated background properties to form each <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer①③">background image layer</a>.</p> <h3 class="heading settled" data-level="2.10" id="background"><span class="secno">2.10. </span><span class="content"> Backgrounds Shorthand: the <a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background①">background</a> property</span><span id="the-background"></span><a class="self-link" href="#background"></a></h3> <table class="def propdef" data-link-for-hint="background"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-background">background</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-bg-layer" id="ref-for-typedef-bg-layer">&lt;bg-layer></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑦">#</a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt②">?</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-comma" id="ref-for-comb-comma">,</a> <a class="production css" data-link-type="type" href="#typedef-final-bg-layer" id="ref-for-typedef-final-bg-layer">&lt;final-bg-layer></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>see individual properties </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-331.html" title="css/css-backgrounds/background-331.html">background-331.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-331.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-331.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-332.html" title="css/css-backgrounds/background-332.html">background-332.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-332.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-332.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-333.html" title="css/css-backgrounds/background-333.html">background-333.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-333.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-333.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-334.html" title="css/css-backgrounds/background-334.html">background-334.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-334.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-334.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-335.html" title="css/css-backgrounds/background-335.html">background-335.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-335.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-335.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-336.html" title="css/css-backgrounds/background-336.html">background-336.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-336.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-336.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-computed.html" title="css/css-backgrounds/parsing/background-computed.html">background-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-invalid.html" title="css/css-backgrounds/parsing/background-invalid.html">background-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-shorthand-serialization.html" title="css/css-backgrounds/parsing/background-shorthand-serialization.html">background-shorthand-serialization.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-shorthand-serialization.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-shorthand-serialization.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/background-valid.html" title="css/css-backgrounds/parsing/background-valid.html">background-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/background-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/background-valid.html"><small>(source)</small></a> </ul> </details> <p>The <a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background②">background</a> property is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#shorthand-property" id="ref-for-shorthand-property">shorthand property</a> for setting most background properties at the same place in the style sheet. The number of comma-separated items defines the number of <a data-link-type="dfn" href="#background-image-layer" id="ref-for-background-image-layer①④">background image layers</a>. Given a valid declaration, for each layer the shorthand first sets the corresponding value of each of <a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image⑤">background-image</a>, <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position⑨">background-position</a>, <a class="property css" data-link-type="property" href="#propdef-background-size" id="ref-for-propdef-background-size⑤">background-size</a>, <a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat⑤">background-repeat</a>, <a class="property css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin④">background-origin</a>, <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip⑥">background-clip</a> and <a class="property css" data-link-type="property" href="#propdef-background-attachment" id="ref-for-propdef-background-attachment③">background-attachment</a> to that property’s <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#initial-value" id="ref-for-initial-value">initial value</a>, then assigns any explicit values specified for this layer in the declaration. Finally <a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color④">background-color</a> is set to the specified color, if any, else set to its initial value.</p> <p>This property’s value is given as a comma-separated list of values where</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-bg-layer">&lt;bg-layer></dfn> = <a class="production" data-link-type="type" href="#typedef-bg-image" id="ref-for-typedef-bg-image③">&lt;bg-image></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any">||</a> <a class="production" data-link-type="type" href="#typedef-bg-position" id="ref-for-typedef-bg-position④">&lt;bg-position></a> [ / <a class="production" data-link-type="type" href="#typedef-bg-size" id="ref-for-typedef-bg-size③">&lt;bg-size></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt③">?</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any①">||</a> <a class="production" data-link-type="type" href="#typedef-repeat-style" id="ref-for-typedef-repeat-style⑤">&lt;repeat-style></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any②">||</a> <a class="production" data-link-type="type" href="#typedef-attachment" id="ref-for-typedef-attachment③">&lt;attachment></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any③">||</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-box-4/#typedef-visual-box" id="ref-for-typedef-visual-box②">&lt;visual-box></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any④">||</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-box-4/#typedef-visual-box" id="ref-for-typedef-visual-box③">&lt;visual-box></a> <dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-final-bg-layer">&lt;final-bg-layer></dfn> = <a class="production" data-link-type="type" href="#typedef-bg-image" id="ref-for-typedef-bg-image④">&lt;bg-image></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any⑤">||</a> <a class="production" data-link-type="type" href="#typedef-bg-position" id="ref-for-typedef-bg-position⑤">&lt;bg-position></a> [ / <a class="production" data-link-type="type" href="#typedef-bg-size" id="ref-for-typedef-bg-size④">&lt;bg-size></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt④">?</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any⑥">||</a> <a class="production" data-link-type="type" href="#typedef-repeat-style" id="ref-for-typedef-repeat-style⑥">&lt;repeat-style></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any⑦">||</a> <a class="production" data-link-type="type" href="#typedef-attachment" id="ref-for-typedef-attachment④">&lt;attachment></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any⑧">||</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-box-4/#typedef-visual-box" id="ref-for-typedef-visual-box④">&lt;visual-box></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any⑨">||</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-box-4/#typedef-visual-box" id="ref-for-typedef-visual-box⑤">&lt;visual-box></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any①⓪">||</a> <a class="production" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color⑤">&lt;'background-color'></a></pre> <p class="note" role="note"><span class="marker">Note:</span> A color is permitted in <a class="production css" data-link-type="type" href="#typedef-final-bg-layer" id="ref-for-typedef-final-bg-layer①">&lt;final-bg-layer></a>, but not in <a class="production css" data-link-type="type" href="#typedef-bg-layer" id="ref-for-typedef-bg-layer①">&lt;bg-layer></a>.</p> <p>If one <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-box-4/#typedef-visual-box" id="ref-for-typedef-visual-box⑥">&lt;visual-box></a> value is present then it sets both <a class="property css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin⑤">background-origin</a> and <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip⑦">background-clip</a> to that value. If two values are present, then the first sets <span class="property" id="ref-for-propdef-background-origin⑥">background-origin</span> and the second <span class="property" id="ref-for-propdef-background-clip⑧">background-clip</span>.</p> <div class="example" id="example-15a7e3d5"> <a class="self-link" href="#example-15a7e3d5"></a> In the first rule of the following example, only a value for <a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color⑥">background-color</a> has been given and the other individual properties are set to their initial values. In the second rule, many individual properties have been specified. <pre>body { background: red } p { background: url("chess.png") 40% / 10em gray round fixed border-box; } </pre> <p>The first rule is equivalent to:</p> <pre>body { background-color: red; background-position: 0% 0%; background-size: auto; background-repeat: repeat; background-clip: border-box; background-origin: padding-box; background-attachment: scroll; background-image: none } </pre> <p>The second is equivalent to:</p> <pre>p { background-color: gray; background-position: 40% 50%; background-size: 10em auto; background-repeat: round; background-clip: border-box; background-origin: border-box; background-attachment: fixed; background-image: url(chess.png) } </pre> </div> <div class="example" id="example-ff3ed279"> <a class="self-link" href="#example-ff3ed279"></a> The following example shows how a both a background color (<span class="css">#CCC</span>) and a background image (<span class="css">url(metal.jpg)</span>) are set. The image is rescaled to the full width of the element: <pre>E { background: #CCC url("metal.jpg") top left / 100% auto no-repeat} </pre> </div> <div class="example" id="example-1a1113f1"> <a class="self-link" href="#example-1a1113f1"></a> Another example shows equivalence: <pre>div { background: padding-box url(paper.jpg) white center } div { background-color: white; background-image: url(paper.jpg); background-repeat: repeat; background-attachment: scroll; background-position: center; background-clip: padding-box; background-origin: padding-box; background-size: auto auto } </pre> </div> <div class="example" id="example-3524ad83"> <a class="self-link" href="#example-3524ad83"></a> The following declaration with multiple, comma-separated values <pre>background: url(a.png) top left no-repeat, url(b.png) center / 100% 100% no-repeat, url(c.png) white; </pre> <p>is equivalent to</p> <pre>background-image: url(a.png), url(b.png), url(c.png); background-position: top left, center, top left; background-repeat: no-repeat, no-repeat, repeat; background-clip: border-box, border-box, border-box; background-origin: padding-box, padding-box, padding-box; background-size: auto auto, 100% 100%, auto auto; background-attachment: scroll, scroll, scroll; background-color: white; </pre> </div> <h3 class="heading settled" data-level="2.11" id="special-backgrounds"><span class="secno">2.11. </span><span class="content"> Backgrounds of Special Elements</span><a class="self-link" href="#special-backgrounds"></a></h3> <p>The document <a href="https://www.w3.org/TR/CSS2/intro.html#the-canvas">canvas</a> is the infinite surface over which the document is rendered. <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a> Since no element corresponds to the canvas, in order to allow styling of the canvas CSS propagates the background of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-4/#root-element" id="ref-for-root-element">root element</a> (or, in the case of HTML, the &lt;body> element) as described below. However, if the element whose background would be used for the canvas is <a class="css" data-link-type="propdesc">display: none</a>, then the <a data-link-type="dfn" href="#canvas-background" id="ref-for-canvas-background">canvas background</a> is transparent.</p> <p>If the <a data-link-type="dfn" href="#canvas-background" id="ref-for-canvas-background①">canvas background</a> is not opaque, the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="canvas-surface">canvas surface</dfn> below it shows through. The texture of the <a data-link-type="dfn" href="#canvas-surface" id="ref-for-canvas-surface">canvas surface</a> is UA-dependent (but is typically an opaque white).</p> <h4 class="heading settled" data-level="2.11.1" id="root-background"><span class="secno">2.11.1. </span><span class="content"> The Canvas Background and the Root Element</span><a class="self-link" href="#root-background"></a></h4> <p>The background of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-4/#root-element" id="ref-for-root-element①">root element</a> becomes the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="canvas-background">canvas background</dfn> and its <a data-link-type="dfn" href="#background-painting-area" id="ref-for-background-painting-area⑧">background painting area</a> extends to cover the entire <a href="https://www.w3.org/TR/CSS2/intro.html#the-canvas">canvas</a>. However, any images are sized and positioned relative to the root element’s box as if they were painted for that element alone. (In other words, the <a href="#background-positioning-area" id="ref-for-background-positioning-area①⑦">background <em>positioning</em> area</a> is determined as for the root element.) The root element does not paint this background again, i.e., the <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#used-value" id="ref-for-used-value①">used value</a> of its background is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-transparent" id="ref-for-valdef-color-transparent①">transparent</a>.</p> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-margin-iframe-root.html" title="css/css-backgrounds/background-margin-iframe-root.html">background-margin-iframe-root.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-margin-iframe-root.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-margin-iframe-root.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-margin-root.html" title="css/css-backgrounds/background-margin-root.html">background-margin-root.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-margin-root.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-margin-root.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-margin-transformed-root.html" title="css/css-backgrounds/background-margin-transformed-root.html">background-margin-transformed-root.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-margin-transformed-root.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-margin-transformed-root.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/background-margin-will-change-root.html" title="css/css-backgrounds/background-margin-will-change-root.html">background-margin-will-change-root.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/background-margin-will-change-root.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/background-margin-will-change-root.html"><small>(source)</small></a> </ul> </details> <h4 class="heading settled" data-level="2.11.2" id="body-background"><span class="secno">2.11.2. </span><span class="content"> The Canvas Background and the HTML &lt;body> Element</span><a class="self-link" href="#body-background"></a></h4> <p>For documents whose root element is an HTML <code class="html">HTML</code> element or an XHTML <code class="html">html</code> element <a data-link-type="biblio" href="#biblio-html" title="HTML Standard">[HTML]</a>: if the <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#computed-value" id="ref-for-computed-value①">computed value</a> of <a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image⑥">background-image</a> on the <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-4/#root-element" id="ref-for-root-element②">root element</a> is <a class="css" data-link-type="maybe" href="#valdef-background-image-none" id="ref-for-valdef-background-image-none②">none</a> and its <a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color⑦">background-color</a> is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-transparent" id="ref-for-valdef-color-transparent②">transparent</a>, user agents must instead propagate the <span id="ref-for-computed-value②">computed values</span> of the background properties from that element’s first HTML <code class="html">BODY</code> or XHTML <code class="html">body</code> child element. The <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#used-value" id="ref-for-used-value②">used values</a> of that <code class="html">BODY</code> element’s background properties are their <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#initial-value" id="ref-for-initial-value①">initial values</a>, and the propagated values are treated as if they were specified on the root element. It is recommended that authors of HTML documents specify the canvas background using the <code class="html">BODY</code> element rather than the <code class="html">HTML</code> element.</p> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/document-canvas-remove-body.html" title="css/css-backgrounds/document-canvas-remove-body.html">document-canvas-remove-body.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/document-canvas-remove-body.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/document-canvas-remove-body.html"><small>(source)</small></a> </ul> </details> <p class="note" role="note"><span class="marker">Note:</span> Using <a data-link-type="dfn" href="https://drafts.csswg.org/css-contain-2/#containment" id="ref-for-containment">containment</a> disables this special handling of the HTML <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/sections.html#the-body-element" id="ref-for-the-body-element">body</a></code> element. See the <a href="https://drafts.csswg.org/css-contain-1/#contain-property"><cite>CSS Containment 1</cite> § 2 Strong Containment: the contain property</a> for details.</p> <div class="example" id="example-8733c37a"> <a class="self-link" href="#example-8733c37a"></a> According to these rules, the canvas underlying the following HTML document will have a “marble” background: <pre>&lt;!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.0//EN' > &lt;html> &lt;head> &lt;title>Setting the canvas background&lt;/title> &lt;style type="text/css"> body { background: url("http://example.org/marble.png") } &lt;/style> &lt;/head> &lt;body> &lt;p>My background is marble.&lt;/p> &lt;/body> &lt;/html> </pre> </div> <h4 class="heading settled" data-level="2.11.3" id="first-line-background"><span class="secno">2.11.3. </span><span class="content"> The <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-3/#sel-first-line" id="ref-for-sel-first-line③">::first-line</a> Pseudo-element‘s Background</span><a class="self-link" href="#first-line-background"></a></h4> <p>The <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-3/#sel-first-line" id="ref-for-sel-first-line④">::first-line</a> pseudo-element is like an inline-level element for the purposes of the background (see section 5.12.1 of <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a>). That means, e.g., that in a left-justified first line, the background does not necessarily extend all the way to the right edge.</p> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/linear-gradient-currentcolor-first-line.html" title="css/css-backgrounds/linear-gradient-currentcolor-first-line.html">linear-gradient-currentcolor-first-line.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/linear-gradient-currentcolor-first-line.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/linear-gradient-currentcolor-first-line.html"><small>(source)</small></a> </ul> </details> <h2 class="heading settled" data-level="3" id="borders"><span class="secno">3. </span><span class="content"> Borders</span><a class="self-link" href="#borders"></a></h2> <p>The <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border" id="ref-for-border①">border</a> can either be a predefined style (solid line, double line, dotted line, pseudo-3D border, etc.) or it can be an image. In the former case, various properties define the style (<a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style">border-style</a>), color (<a class="property css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color">border-color</a>), and thickness (<a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width">border-width</a>) of the border.</p> <h3 class="heading settled" data-level="3.1" id="border-color"><span class="secno">3.1. </span><span class="content"> Line Colors: the <a class="property css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color①">border-color</a> properties</span><span id="the-border-color"></span><a class="self-link" href="#border-color"></a></h3> <table class="def propdef" data-link-for-hint="border-top-color"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-top-color">border-top-color</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-right-color">border-right-color</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-bottom-color">border-bottom-color</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-left-color">border-left-color</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color①">&lt;color></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td><a href="https://www.w3.org/TR/css-color-4/#currentcolor-color">currentColor</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements except <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box①">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box①">ruby annotation containers</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>computed color <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>by computed value <tr> <th><a href="https://drafts.csswg.org/css-logical-1/#logical-property-group">Logical property group:</a> <td><a class="css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color②">border-color</a> </table> <table class="def propdef" data-link-for-hint="border-color"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-color">border-color</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color②">&lt;color></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range②">{1,4}</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>(see individual properties) <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements except <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box②">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box②">ruby annotation containers</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>see individual properties </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-color-interpolation.html" title="css/css-backgrounds/animations/border-color-interpolation.html">border-color-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-color-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-color-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-displayed-with-transparent-border-color.html" title="css/css-backgrounds/border-image-displayed-with-transparent-border-color.html">border-image-displayed-with-transparent-border-color.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-displayed-with-transparent-border-color.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-displayed-with-transparent-border-color.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/color-mix-currentcolor-border-repaint-parent.html" title="css/css-backgrounds/color-mix-currentcolor-border-repaint-parent.html">color-mix-currentcolor-border-repaint-parent.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/color-mix-currentcolor-border-repaint-parent.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/color-mix-currentcolor-border-repaint-parent.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/color-mix-currentcolor-border-repaint.html" title="css/css-backgrounds/color-mix-currentcolor-border-repaint.html">color-mix-currentcolor-border-repaint.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/color-mix-currentcolor-border-repaint.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/color-mix-currentcolor-border-repaint.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/currentcolor-border-repaint-parent.html" title="css/css-backgrounds/currentcolor-border-repaint-parent.html">currentcolor-border-repaint-parent.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/currentcolor-border-repaint-parent.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/currentcolor-border-repaint-parent.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-color-computed.html" title="css/css-backgrounds/parsing/border-color-computed.html">border-color-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-color-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-color-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-color-invalid.html" title="css/css-backgrounds/parsing/border-color-invalid.html">border-color-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-color-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-color-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-color-shorthand.html" title="css/css-backgrounds/parsing/border-color-shorthand.html">border-color-shorthand.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-color-shorthand.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-color-shorthand.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-color-valid.html" title="css/css-backgrounds/parsing/border-color-valid.html">border-color-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-color-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-color-valid.html"><small>(source)</small></a> </ul> </details> <p>These properties set the foreground <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="border color" data-noexport id="border-color-dfn">color</dfn> of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border" id="ref-for-border②">border</a> specified by the <a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style①">border-style</a> properties.</p> <p>The <a class="property css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color③">border-color</a> property is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#shorthand-property" id="ref-for-shorthand-property①">shorthand property</a> for setting <a class="property css" data-link-type="property" href="#propdef-border-top-color" id="ref-for-propdef-border-top-color">border-top-color</a>, <a class="property css" data-link-type="property" href="#propdef-border-right-color" id="ref-for-propdef-border-right-color">border-right-color</a>, <a class="property css" data-link-type="property" href="#propdef-border-bottom-color" id="ref-for-propdef-border-bottom-color">border-bottom-color</a>, and <a class="property css" data-link-type="property" href="#propdef-border-left-color" id="ref-for-propdef-border-left-color">border-left-color</a> in a single declaration.</p> <p>If there is only one component value, it applies to all sides. If there are two values, the top and bottom are set to the first value and the right and left are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.</p> <h3 class="heading settled" data-level="3.2" id="border-style"><span class="secno">3.2. </span><span class="content">Line Patterns: the <a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style②">border-style</a> properties</span><span id="the-border-style"></span><a class="self-link" href="#border-style"></a></h3> <table class="def propdef" data-link-for-hint="border-top-style"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-top-style">border-top-style</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-right-style">border-right-style</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-bottom-style">border-bottom-style</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-left-style">border-left-style</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-line-style" id="ref-for-typedef-line-style">&lt;line-style></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>none <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements except <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box③">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box③">ruby annotation containers</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>specified keyword <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>discrete <tr> <th><a href="https://drafts.csswg.org/css-logical-1/#logical-property-group">Logical property group:</a> <td><a class="css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style③">border-style</a> </table> <table class="def propdef" data-link-for-hint="border-style"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-style">border-style</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-line-style" id="ref-for-typedef-line-style①">&lt;line-style></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range③">{1,4}</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>(see individual properties) <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements except <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box④">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box④">ruby annotation containers</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>see individual properties </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-style-computed.html" title="css/css-backgrounds/parsing/border-style-computed.html">border-style-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-style-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-style-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-style-invalid.html" title="css/css-backgrounds/parsing/border-style-invalid.html">border-style-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-style-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-style-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-style-shorthand.html" title="css/css-backgrounds/parsing/border-style-shorthand.html">border-style-shorthand.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-style-shorthand.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-style-shorthand.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-style-valid.html" title="css/css-backgrounds/parsing/border-style-valid.html">border-style-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-style-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-style-valid.html"><small>(source)</small></a> </ul> </details> <p>These properties control whether a <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border" id="ref-for-border③">border</a> appears, and if it does what <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="border style" data-noexport id="border-style-dfn">style</dfn> it’s drawn in (if it is not overridden by a <a href="#border-images">border image</a>).</p> <p>The <a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style④">border-style</a> property is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#shorthand-property" id="ref-for-shorthand-property②">shorthand property</a> for setting <a class="property css" data-link-type="property" href="#propdef-border-top-style" id="ref-for-propdef-border-top-style">border-top-style</a>, <a class="property css" data-link-type="property" href="#propdef-border-right-style" id="ref-for-propdef-border-right-style">border-right-style</a>, <a class="property css" data-link-type="property" href="#propdef-border-bottom-style" id="ref-for-propdef-border-bottom-style">border-bottom-style</a>, and <a class="property css" data-link-type="property" href="#propdef-border-left-style" id="ref-for-propdef-border-left-style">border-left-style</a> in a single declaration.</p> <p>If there is only one component value, it applies to all sides. If there are two values, the top and bottom are set to the first value and the right and left are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.</p> <p>The style is specified as a <a class="production css" data-link-type="type" href="#typedef-line-style" id="ref-for-typedef-line-style②">&lt;line-style></a> keyword, where</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-line-style"><a class="production" data-link-type="type" href="#typedef-line-style" id="ref-for-typedef-line-style③">&lt;line-style></a></dfn> = none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑧">|</a> hidden <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑨">|</a> dotted <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⓪">|</a> dashed <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③①">|</a> solid <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③②">|</a> double <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③③">|</a> groove <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③④">|</a> ridge <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑤">|</a> inset <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑥">|</a> outset</pre> <p>Values have the following meanings:</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-none">none</dfn> <dd> No border. Color and width are ignored (i.e., the border has width 0). Note this means that the initial value of <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width">border-image-width</a> will also resolve to zero. <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-hidden">hidden</dfn> <dd> Same as <a class="css" data-link-type="maybe" href="#valdef-line-style-none" id="ref-for-valdef-line-style-none">none</a>, but has different behavior in the border conflict resolution rules for border-collapsed tables <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-dotted">dotted</dfn> <dd> A series of round dots. <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-dashed">dashed</dfn> <dd> A series of square-ended dashes. <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-solid">solid</dfn> <dd> A single line segment. <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-double">double</dfn> <dd> Two parallel solid lines with some space between them. (The thickness of the lines is not specified, but the sum of the lines and the space must equal <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width①">border-width</a>.) <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-groove">groove</dfn> <dd> Looks as if it were carved in the canvas. (This is typically achieved by creating a “shadow” from two colors that are slightly lighter and darker than the specified <a class="property css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color④">border-color</a>.) <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-ridge">ridge</dfn> <dd> Looks as if it were coming out of the canvas. <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-inset">inset</dfn> <dd> Looks as if the content on the inside of the border is sunken into the canvas. Treated as <span class="css">ridge</span> in the <a href="https://www.w3.org/TR/CSS2/tables.html#collapsing-borders">collapsing border model</a>. <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a> <dt><dfn class="dfn-paneled css" data-dfn-for="<line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border" data-dfn-type="value" data-export id="valdef-line-style-outset">outset</dfn> <dd> Looks as if the content on the inside of the border is raised out of the canvas. Treated as <span class="css">groove</span> in the <a href="https://www.w3.org/TR/CSS2/tables.html#collapsing-borders">collapsing border model</a>. <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a> </dl> <p>Borders are drawn in front of the element’s background, but behind the element’s content (in case it overlaps).</p> <figure> <img alt="Examples of border styles" height="383" src="images/borderstyles.png" width="669"> <figcaption>Example renderings of the predefined border styles.</figcaption> </figure> <p class="note" role="note"><span class="marker">Note:</span> Border colors close to black or white may need different color calculations than colors in between in order to create the required “3D” effect of <span class="css">groove</span>, <span class="css">ridge</span>, <a class="css" data-link-type="maybe" href="#valdef-line-style-inset" id="ref-for-valdef-line-style-inset">inset</a>, or <a class="css" data-link-type="maybe" href="#valdef-line-style-outset" id="ref-for-valdef-line-style-outset">outset</a>.</p> <p class="note" role="note"><span class="marker">Note:</span> There is no control over the spacing of the dots and dashes, nor over the length of the dashes. Implementations are encouraged to choose a spacing that makes the corners symmetrical.</p> <p class="note" role="note"><span class="marker">Note:</span> This specification does not define how borders of different styles should be joined in the corner. Also note that rounded corners may cause the corners and the contents to overlap, if the padding is less than the radius of the corner.</p> <h3 class="heading settled" data-level="3.3" id="border-width"><span class="secno">3.3. </span><span class="content"> Line Thickness: the <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width②">border-width</a> properties</span><span id="the-border-width"></span><a class="self-link" href="#border-width"></a></h3> <table class="def propdef" data-link-for-hint="border-top-width"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-top-width">border-top-width</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-right-width">border-right-width</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-bottom-width">border-bottom-width</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-left-width">border-left-width</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-line-width" id="ref-for-typedef-line-width">&lt;line-width></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>medium <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements except <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box⑤">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box⑤">ruby annotation containers</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>absolute length, <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width" id="ref-for-snap-a-length-as-a-border-width">snapped as a border width</a>; zero if the border style is <a class="css" data-link-type="maybe" href="#valdef-line-style-none" id="ref-for-valdef-line-style-none①">none</a> or <span class="css">hidden</span> <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>by computed value <tr> <th><a href="https://drafts.csswg.org/css-logical-1/#logical-property-group">Logical property group:</a> <td><a class="css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width③">border-width</a> </table> <table class="def propdef" data-link-for-hint="border-width"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-width">border-width</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-line-width" id="ref-for-typedef-line-width①">&lt;line-width></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range④">{1,4}</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>(see individual properties) <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements except <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box⑥">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box⑥">ruby annotation containers</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>see individual properties </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-bottom-width-composition.html" title="css/css-backgrounds/animations/border-bottom-width-composition.html">border-bottom-width-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-bottom-width-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-bottom-width-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-image-width-composition.html" title="css/css-backgrounds/animations/border-image-width-composition.html">border-image-width-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-image-width-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-image-width-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-image-width-interpolation.html" title="css/css-backgrounds/animations/border-image-width-interpolation.html">border-image-width-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-image-width-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-image-width-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-left-width-composition.html" title="css/css-backgrounds/animations/border-left-width-composition.html">border-left-width-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-left-width-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-left-width-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-right-width-composition.html" title="css/css-backgrounds/animations/border-right-width-composition.html">border-right-width-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-right-width-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-right-width-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-top-width-composition.html" title="css/css-backgrounds/animations/border-top-width-composition.html">border-top-width-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-top-width-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-top-width-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-width-interpolation.html" title="css/css-backgrounds/animations/border-width-interpolation.html">border-width-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-width-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-width-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-width-medium.html" title="css/css-backgrounds/border-bottom-width-medium.html">border-bottom-width-medium.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-width-medium.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-width-medium.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-width-thick.html" title="css/css-backgrounds/border-bottom-width-thick.html">border-bottom-width-thick.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-width-thick.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-width-thick.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-width-thin.html" title="css/css-backgrounds/border-bottom-width-thin.html">border-bottom-width-thin.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-width-thin.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-width-thin.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-left-width-medium.html" title="css/css-backgrounds/border-left-width-medium.html">border-left-width-medium.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-left-width-medium.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-left-width-medium.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-left-width-thick.html" title="css/css-backgrounds/border-left-width-thick.html">border-left-width-thick.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-left-width-thick.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-left-width-thick.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-left-width-thin.html" title="css/css-backgrounds/border-left-width-thin.html">border-left-width-thin.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-left-width-thin.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-left-width-thin.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-right-width-medium.html" title="css/css-backgrounds/border-right-width-medium.html">border-right-width-medium.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-right-width-medium.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-right-width-medium.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-right-width-thick.html" title="css/css-backgrounds/border-right-width-thick.html">border-right-width-thick.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-right-width-thick.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-right-width-thick.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-right-width-thin.html" title="css/css-backgrounds/border-right-width-thin.html">border-right-width-thin.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-right-width-thin.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-right-width-thin.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-width-medium.html" title="css/css-backgrounds/border-top-width-medium.html">border-top-width-medium.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-width-medium.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-width-medium.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-width-thick.html" title="css/css-backgrounds/border-top-width-thick.html">border-top-width-thick.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-width-thick.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-width-thick.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-width-thin.html" title="css/css-backgrounds/border-top-width-thin.html">border-top-width-thin.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-width-thin.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-width-thin.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-width-cssom.html" title="css/css-backgrounds/border-width-cssom.html">border-width-cssom.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-width-cssom.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-width-cssom.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-width-pixel-snapping-001-a.html" title="css/css-backgrounds/border-width-pixel-snapping-001-a.html">border-width-pixel-snapping-001-a.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-width-pixel-snapping-001-a.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-width-pixel-snapping-001-a.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-width-pixel-snapping-001-b.html" title="css/css-backgrounds/border-width-pixel-snapping-001-b.html">border-width-pixel-snapping-001-b.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-width-pixel-snapping-001-b.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-width-pixel-snapping-001-b.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-width-small-values-001-a.html" title="css/css-backgrounds/border-width-small-values-001-a.html">border-width-small-values-001-a.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-width-small-values-001-a.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-width-small-values-001-a.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-width-small-values-001-b.html" title="css/css-backgrounds/border-width-small-values-001-b.html">border-width-small-values-001-b.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-width-small-values-001-b.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-width-small-values-001-b.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-width-small-values-001-c.html" title="css/css-backgrounds/border-width-small-values-001-c.html">border-width-small-values-001-c.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-width-small-values-001-c.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-width-small-values-001-c.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-width-small-values-001-d.html" title="css/css-backgrounds/border-width-small-values-001-d.html">border-width-small-values-001-d.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-width-small-values-001-d.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-width-small-values-001-d.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-width-small-values-001-e.html" title="css/css-backgrounds/border-width-small-values-001-e.html">border-width-small-values-001-e.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-width-small-values-001-e.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-width-small-values-001-e.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-width-computed.html" title="css/css-backgrounds/parsing/border-width-computed.html">border-width-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-width-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-width-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-width-invalid.html" title="css/css-backgrounds/parsing/border-width-invalid.html">border-width-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-width-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-width-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-width-shorthand.html" title="css/css-backgrounds/parsing/border-width-shorthand.html">border-width-shorthand.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-width-shorthand.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-width-shorthand.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-width-valid.html" title="css/css-backgrounds/parsing/border-width-valid.html">border-width-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-width-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-width-valid.html"><small>(source)</small></a> </ul> </details> <p>These properties specify the thickness of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border" id="ref-for-border④">border</a>, i.e. the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="border-width-dfn">border width</dfn>. Where</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-line-width"><a class="production" data-link-type="type" href="#typedef-line-width" id="ref-for-typedef-line-width②">&lt;line-width></a></dfn> = <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value①">&lt;length [0,∞]></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑦">|</a> thin <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑧">|</a> medium <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑨">|</a> thick</pre> <p> Negative values are invalid. The <dfn class="dfn-paneled css" data-dfn-for="<line-width>, border-width, border-top-width, border-left-width, border-bottom-width, border-right-width, border" data-dfn-type="value" data-export id="valdef-line-width-thin">thin</dfn>, <dfn class="dfn-paneled css" data-dfn-for="<line-width>, border-width, border-top-width, border-left-width, border-bottom-width, border-right-width, border" data-dfn-type="value" data-export id="valdef-line-width-medium">medium</dfn>, and <dfn class="dfn-paneled css" data-dfn-for="<line-width>, border-width, border-top-width, border-left-width, border-bottom-width, border-right-width, border" data-dfn-type="value" data-export id="valdef-line-width-thick">thick</dfn> keywords are equivalent to <span class="css">1px</span>, <span class="css">3px</span>, and <span class="css">5px</span>, respectively. </p> <p>The <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width④">border-width</a> property is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#shorthand-property" id="ref-for-shorthand-property③">shorthand property</a> for setting <a class="property css" data-link-type="property" href="#propdef-border-top-width" id="ref-for-propdef-border-top-width">border-top-width</a>, <a class="property css" data-link-type="property" href="#propdef-border-right-width" id="ref-for-propdef-border-right-width">border-right-width</a>, <a class="property css" data-link-type="property" href="#propdef-border-bottom-width" id="ref-for-propdef-border-bottom-width">border-bottom-width</a>, and <a class="property css" data-link-type="property" href="#propdef-border-left-width" id="ref-for-propdef-border-left-width">border-left-width</a> in a single declaration.</p> <p>If there is only one component value, it applies to all sides. If there are two values, the top and bottom are set to the first value and the right and left are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.</p> <p class="note" role="note"><span class="marker">Note:</span> Although the <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#initial-value" id="ref-for-initial-value②">initial</a> width is <a class="css" data-link-type="maybe" href="#valdef-line-width-medium" id="ref-for-valdef-line-width-medium">medium</a>, the <span id="ref-for-initial-value③">initial</span> style is <a class="css" data-link-type="maybe" href="#valdef-line-style-none" id="ref-for-valdef-line-style-none②">none</a>; therefore the <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#used-value" id="ref-for-used-value③">used</a> initial width is 0.</p> <h3 class="heading settled" data-level="3.4" id="border-shorthands"><span class="secno">3.4. </span><span class="content"> Border Shorthand Properties</span><span id="the-border-shorthands"></span><a class="self-link" href="#border-shorthands"></a></h3> <table class="def propdef" data-link-for-hint="border-top"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-top">border-top</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-right">border-right</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-bottom">border-bottom</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-left">border-left</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-line-width" id="ref-for-typedef-line-width③">&lt;line-width></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any①①">||</a> <a class="production css" data-link-type="type" href="#typedef-line-style" id="ref-for-typedef-line-style④">&lt;line-style></a> <span id="ref-for-comb-any①②">||</span> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color③">&lt;color></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>See individual properties <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements except <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box⑦">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box⑦">ruby annotation containers</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>see individual properties </table> <p>These <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#shorthand-property" id="ref-for-shorthand-property④">shorthand properties</a> set the <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width⑤">border-width</a>, <a class="property css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color⑤">border-color</a>, and <a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style⑤">border-style</a> of the top, right, bottom, and left <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border" id="ref-for-border⑤">borders</a> of a box. Omitted values are set to their <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#initial-value" id="ref-for-initial-value④">initial values</a>.</p> <table class="def propdef" data-link-for-hint="border"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border">border</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="#typedef-line-width" id="ref-for-typedef-line-width④">&lt;line-width></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any①③">||</a> <a class="production css" data-link-type="type" href="#typedef-line-style" id="ref-for-typedef-line-style⑤">&lt;line-style></a> <span id="ref-for-comb-any①④">||</span> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color④">&lt;color></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>See individual properties <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements except <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box" id="ref-for-ruby-base-container-box⑧">ruby base containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box" id="ref-for-ruby-annotation-container-box⑧">ruby annotation containers</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>see individual properties </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-invalid.html" title="css/css-backgrounds/parsing/border-invalid.html">border-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-shorthand.html" title="css/css-backgrounds/parsing/border-shorthand.html">border-shorthand.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-shorthand.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-shorthand.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-valid.html" title="css/css-backgrounds/parsing/border-valid.html">border-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-valid.html"><small>(source)</small></a> </ul> </details> <p>The <a class="property css" data-link-type="property" href="#propdef-border" id="ref-for-propdef-border①">border</a> property is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#shorthand-property" id="ref-for-shorthand-property⑤">shorthand property</a> for setting the same <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width⑥">border-width</a>, <a class="property css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color⑥">border-color</a>, and <a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style⑥">border-style</a> for all four borders of a box. Unlike the shorthand <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-box-4/#propdef-margin" id="ref-for-propdef-margin">margin</a> and <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-box-4/#propdef-padding" id="ref-for-propdef-padding">padding</a> properties, the <span class="property" id="ref-for-propdef-border②">border</span> property cannot set different values on the four borders. To do so, one or more of the other border properties must be used.</p> <p>The <a class="property css" data-link-type="property" href="#propdef-border" id="ref-for-propdef-border③">border</a> shorthand also resets <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image②">border-image</a> to its initial value. It is therefore recommended that authors use the <span class="property" id="ref-for-propdef-border④">border</span> shorthand, rather than other shorthands or the individual properties, to override any border settings earlier in the cascade. This will ensure that <span class="property" id="ref-for-propdef-border-image③">border-image</span> has also been reset to allow the new styles to take effect.</p> <p class="note" role="note"><span class="marker">Note:</span> The CSS Working Group intends for the <a class="property css" data-link-type="property" href="#propdef-border" id="ref-for-propdef-border⑤">border</a> shorthand to reset all border properties in future levels of CSS as well. For example, if a <span class="css">border-characters</span> property is introduced in the future to allow glyphs as borders, it will also be reset by the <span class="property" id="ref-for-propdef-border⑥">border</span> shorthand. By using the <span class="property" id="ref-for-propdef-border⑦">border</span> shorthand to reset borders, authors can be guaranteed a “blank canvas” no matter what properties are introduced in the future.</p> <div class="example" id="example-e8ed94e0"> <a class="self-link" href="#example-e8ed94e0"></a> For example, the first rule below is equivalent to the set of five rules shown after it: <pre>p { border: solid red } p { border-top: solid red; border-right: solid red; border-bottom: solid red; border-left: solid red; border-image: none; } </pre> </div> <p>Since, to some extent, the properties have overlapping functionality, the order in which the rules are specified is important.</p> <div class="example" id="example-10fca894"> <a class="self-link" href="#example-10fca894"></a> Consider this example: <pre>blockquote { border-color: red; border-left: double; color: black } </pre> <p>In the above example, the color of the left border is black, while the other borders are red. This is due to <a class="property css" data-link-type="property" href="#propdef-border-left" id="ref-for-propdef-border-left">border-left</a> setting the width, style, and color. Since the color value is not given by the <span class="property" id="ref-for-propdef-border-left①">border-left</span> property, it will be taken from the <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-color-4/#propdef-color" id="ref-for-propdef-color">color</a> property. The fact that the <span class="property" id="ref-for-propdef-color①">color</span> property is set after the <span class="property" id="ref-for-propdef-border-left②">border-left</span> property is not relevant.</p> </div> <h2 class="heading settled" data-level="4" id="corners"><span class="secno">4. </span><span class="content"> Rounded Corners</span><a class="self-link" href="#corners"></a></h2> <h3 class="heading settled" data-level="4.1" id="border-radius"><span class="secno">4.1. </span><span class="content"> Curve Radii: the <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius①">border-radius</a> properties</span><span id="the-border-radius"></span><a class="self-link" href="#border-radius"></a></h3> <table class="def propdef" data-link-for-hint="border-top-left-radius"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-top-left-radius">border-top-left-radius</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-top-right-radius">border-top-right-radius</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-bottom-right-radius">border-bottom-right-radius</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-bottom-left-radius">border-bottom-left-radius</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①③">&lt;length-percentage [0,∞]></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range⑤">{1,2}</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>0 <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements (but see prose) <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>Refer to corresponding dimension of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box②">border box</a>. <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>pair of computed <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①④">&lt;length-percentage></a> values <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>by computed value <tr> <th><a href="https://drafts.csswg.org/css-logical-1/#logical-property-group">Logical property group:</a> <td><a class="css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius②">border-radius</a> </table> <table class="def propdef" data-link-for-hint="border-radius"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-radius">border-radius</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①⑤">&lt;length-percentage [0,∞]></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range⑥">{1,4}</a> [ / <span class="production" id="ref-for-typedef-length-percentage①⑥">&lt;length-percentage [0,∞]></span><span id="ref-for-mult-num-range⑦">{1,4}</span> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt⑤">?</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>all elements (but see prose) <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>Refer to corresponding dimension of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box③">border box</a>. <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>see individual properties <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>see individual properties </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-bottom-left-radius-composition.html" title="css/css-backgrounds/animations/border-bottom-left-radius-composition.html">border-bottom-left-radius-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-bottom-left-radius-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-bottom-left-radius-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-bottom-right-radius-composition.html" title="css/css-backgrounds/animations/border-bottom-right-radius-composition.html">border-bottom-right-radius-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-bottom-right-radius-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-bottom-right-radius-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-radius-interpolation.html" title="css/css-backgrounds/animations/border-radius-interpolation.html">border-radius-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-radius-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-radius-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-top-left-radius-composition.html" title="css/css-backgrounds/animations/border-top-left-radius-composition.html">border-top-left-radius-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-top-left-radius-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-top-left-radius-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-top-right-radius-composition.html" title="css/css-backgrounds/animations/border-top-right-radius-composition.html">border-top-right-radius-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-top-right-radius-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-top-right-radius-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-left-radius-001.xht" title="css/css-backgrounds/border-bottom-left-radius-001.xht">border-bottom-left-radius-001.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-left-radius-001.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-left-radius-001.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-left-radius-004.xht" title="css/css-backgrounds/border-bottom-left-radius-004.xht">border-bottom-left-radius-004.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-left-radius-004.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-left-radius-004.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-left-radius-005.xht" title="css/css-backgrounds/border-bottom-left-radius-005.xht">border-bottom-left-radius-005.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-left-radius-005.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-left-radius-005.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-left-radius-010.xht" title="css/css-backgrounds/border-bottom-left-radius-010.xht">border-bottom-left-radius-010.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-left-radius-010.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-left-radius-010.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-left-radius-011.xht" title="css/css-backgrounds/border-bottom-left-radius-011.xht">border-bottom-left-radius-011.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-left-radius-011.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-left-radius-011.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-left-radius-014.xht" title="css/css-backgrounds/border-bottom-left-radius-014.xht">border-bottom-left-radius-014.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-left-radius-014.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-left-radius-014.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-right-radius-001.xht" title="css/css-backgrounds/border-bottom-right-radius-001.xht">border-bottom-right-radius-001.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-right-radius-001.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-right-radius-001.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-right-radius-004.xht" title="css/css-backgrounds/border-bottom-right-radius-004.xht">border-bottom-right-radius-004.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-right-radius-004.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-right-radius-004.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-right-radius-005.xht" title="css/css-backgrounds/border-bottom-right-radius-005.xht">border-bottom-right-radius-005.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-right-radius-005.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-right-radius-005.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-right-radius-010.xht" title="css/css-backgrounds/border-bottom-right-radius-010.xht">border-bottom-right-radius-010.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-right-radius-010.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-right-radius-010.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-right-radius-011.xht" title="css/css-backgrounds/border-bottom-right-radius-011.xht">border-bottom-right-radius-011.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-right-radius-011.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-right-radius-011.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-bottom-right-radius-014.xht" title="css/css-backgrounds/border-bottom-right-radius-014.xht">border-bottom-right-radius-014.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-bottom-right-radius-014.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-bottom-right-radius-014.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-001.xht" title="css/css-backgrounds/border-radius-001.xht">border-radius-001.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-001.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-001.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-002.xht" title="css/css-backgrounds/border-radius-002.xht">border-radius-002.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-002.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-002.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-003.xht" title="css/css-backgrounds/border-radius-003.xht">border-radius-003.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-003.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-003.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-004.xht" title="css/css-backgrounds/border-radius-004.xht">border-radius-004.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-004.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-004.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-005.xht" title="css/css-backgrounds/border-radius-005.xht">border-radius-005.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-005.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-005.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-006.xht" title="css/css-backgrounds/border-radius-006.xht">border-radius-006.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-006.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-006.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-007.xht" title="css/css-backgrounds/border-radius-007.xht">border-radius-007.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-007.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-007.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-008.xht" title="css/css-backgrounds/border-radius-008.xht">border-radius-008.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-008.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-008.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-009.xht" title="css/css-backgrounds/border-radius-009.xht">border-radius-009.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-009.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-009.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-010.xht" title="css/css-backgrounds/border-radius-010.xht">border-radius-010.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-010.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-010.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-011.xht" title="css/css-backgrounds/border-radius-011.xht">border-radius-011.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-011.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-011.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-012.html" title="css/css-backgrounds/border-radius-012.html">border-radius-012.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-012.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-012.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-013.html" title="css/css-backgrounds/border-radius-013.html">border-radius-013.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-013.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-013.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-clip-001.html" title="css/css-backgrounds/border-radius-clip-001.html">border-radius-clip-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-clip-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-clip-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-clip-002.htm" title="css/css-backgrounds/border-radius-clip-002.htm">border-radius-clip-002.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-clip-002.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-clip-002.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-clipping-002.html" title="css/css-backgrounds/border-radius-clipping-002.html">border-radius-clipping-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-clipping-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-clipping-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-clipping-with-transform-001.html" title="css/css-backgrounds/border-radius-clipping-with-transform-001.html">border-radius-clipping-with-transform-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-clipping-with-transform-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-clipping-with-transform-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-css-text.html" title="css/css-backgrounds/border-radius-css-text.html">border-radius-css-text.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-css-text.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-css-text.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-dynamic-from-no-radius.html" title="css/css-backgrounds/border-radius-dynamic-from-no-radius.html">border-radius-dynamic-from-no-radius.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-dynamic-from-no-radius.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-dynamic-from-no-radius.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-horizontal-value-is-zero.html" title="css/css-backgrounds/border-radius-horizontal-value-is-zero.html">border-radius-horizontal-value-is-zero.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-horizontal-value-is-zero.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-horizontal-value-is-zero.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-radius-shorthand-002.html" title="css/css-backgrounds/border-radius-shorthand-002.html">border-radius-shorthand-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-radius-shorthand-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-radius-shorthand-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-left-radius-001.xht" title="css/css-backgrounds/border-top-left-radius-001.xht">border-top-left-radius-001.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-left-radius-001.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-left-radius-001.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-left-radius-004.xht" title="css/css-backgrounds/border-top-left-radius-004.xht">border-top-left-radius-004.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-left-radius-004.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-left-radius-004.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-left-radius-005.xht" title="css/css-backgrounds/border-top-left-radius-005.xht">border-top-left-radius-005.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-left-radius-005.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-left-radius-005.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-left-radius-010.xht" title="css/css-backgrounds/border-top-left-radius-010.xht">border-top-left-radius-010.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-left-radius-010.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-left-radius-010.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-left-radius-011.xht" title="css/css-backgrounds/border-top-left-radius-011.xht">border-top-left-radius-011.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-left-radius-011.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-left-radius-011.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-left-radius-014.xht" title="css/css-backgrounds/border-top-left-radius-014.xht">border-top-left-radius-014.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-left-radius-014.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-left-radius-014.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-right-radius-001.xht" title="css/css-backgrounds/border-top-right-radius-001.xht">border-top-right-radius-001.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-right-radius-001.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-right-radius-001.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-right-radius-004.xht" title="css/css-backgrounds/border-top-right-radius-004.xht">border-top-right-radius-004.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-right-radius-004.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-right-radius-004.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-right-radius-005.xht" title="css/css-backgrounds/border-top-right-radius-005.xht">border-top-right-radius-005.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-right-radius-005.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-right-radius-005.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-right-radius-010.xht" title="css/css-backgrounds/border-top-right-radius-010.xht">border-top-right-radius-010.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-right-radius-010.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-right-radius-010.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-right-radius-011.xht" title="css/css-backgrounds/border-top-right-radius-011.xht">border-top-right-radius-011.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-right-radius-011.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-right-radius-011.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-top-right-radius-014.xht" title="css/css-backgrounds/border-top-right-radius-014.xht">border-top-right-radius-014.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-top-right-radius-014.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-top-right-radius-014.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-border-radius-001.html" title="css/css-backgrounds/box-shadow-border-radius-001.html">box-shadow-border-radius-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-border-radius-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-border-radius-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css-border-radius-001.html" title="css/css-backgrounds/css-border-radius-001.html">css-border-radius-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css-border-radius-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css-border-radius-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inner-border-non-renderable.html" title="css/css-backgrounds/inner-border-non-renderable.html">inner-border-non-renderable.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inner-border-non-renderable.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inner-border-non-renderable.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-radius-computed.html" title="css/css-backgrounds/parsing/border-radius-computed.html">border-radius-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-radius-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-radius-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-radius-invalid.html" title="css/css-backgrounds/parsing/border-radius-invalid.html">border-radius-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-radius-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-radius-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-radius-valid.html" title="css/css-backgrounds/parsing/border-radius-valid.html">border-radius-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-radius-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-radius-valid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/webkit-border-radius-valid.html" title="css/css-backgrounds/parsing/webkit-border-radius-valid.html">webkit-border-radius-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/webkit-border-radius-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/webkit-border-radius-valid.html"><small>(source)</small></a> </ul> </details> <p>The two <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①⑦">&lt;length-percentage></a> values of the <a class="property css" data-link-type="property">border-*-radius</a> properties define the <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="border radius" data-noexport id="border-radii">radii</dfn> of a quarter ellipse that defines the shape of the corner of the outer <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-edge" id="ref-for-border-edge">border edge</a> (see the diagram below). The first value is the horizontal radius, the second the vertical radius. If the second value is omitted it is copied from the first. If either length is zero, the corner is square, not rounded. Percentages for the horizontal radius refer to the width of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box④">border box</a>, whereas percentages for the vertical radius refer to the height of the <span id="ref-for-border-box⑤">border box</span>. Negative values are invalid.</p> <figure> <img alt="Diagram of the inscribed ellipse" height="179" src="images/corner.png" width="289"> <figcaption> The two values of <a class="css" data-link-type="propdesc" href="#propdef-border-top-left-radius" id="ref-for-propdef-border-top-left-radius">border-top-left-radius: 55pt 25pt</a> define the curvature of the corner. </figcaption> </figure> <div class="example" id="example-6b4b7b7d"> <a class="self-link" href="#example-6b4b7b7d"></a> This example draws ovals of 15em wide and 10em high: <pre>DIV.standout { width: 13em; height: 8em; border: solid black 1em; border-radius: 7.5em 5em } </pre> </div> <p>The <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius③">border-radius</a> shorthand sets all four <a class="property css" data-link-type="property">border-*-radius</a> properties. If values are given before and after the slash, then the values before the slash set the horizontal radii and the values after the slash set the vertical radii. If there is no slash, then the values set the radii in both axes equally. The four values for each radii are given in the order top-left, top-right, bottom-right, bottom-left. If bottom-left is omitted it is the same as top-right. If bottom-right is omitted it is the same as top-left. If top-right is omitted it is the same as top-left.</p> <div class="example" id="example-19e399d6"> <a class="self-link" href="#example-19e399d6"></a> <pre>border-radius: 4em; </pre> <p>is equivalent to</p> <pre>border-top-left-radius: 4em; border-top-right-radius: 4em; border-bottom-right-radius: 4em; border-bottom-left-radius: 4em; </pre> <p>and</p> <pre>border-radius: 2em 1em 4em / 0.5em 3em; </pre> <p>is equivalent to</p> <pre>border-top-left-radius: 2em 0.5em; border-top-right-radius: 1em 3em; border-bottom-right-radius: 4em 0.5em; border-bottom-left-radius: 1em 3em; </pre> </div> <h3 class="heading settled" data-level="4.2" id="corner-shaping"><span class="secno">4.2. </span><span class="content"> Corner Shaping</span><a class="self-link" href="#corner-shaping"></a></h3> <p>The <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding-edge" id="ref-for-padding-edge①">padding edge</a> (inner border) radius is the outer border radius minus the corresponding border thickness. In the case where this results in a negative value, the inner radius is zero. (In such cases the center of the border’s inner curve might not coincide with that of its outer curve.) Likewise the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#content-edge" id="ref-for-content-edge">content edge</a> radius is the <span id="ref-for-padding-edge②">padding edge</span> radius minus the corresponding <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding" id="ref-for-padding①">padding</a>, or if that is negative, zero. The border and padding thicknesses in the curved region are thus interpolated from the adjoining sides, and when two adjoining borders are of different thicknesses the corner will show a smooth transition between the thicker and thinner borders.</p> <p>All border styles (<span class="css">solid</span>, <span class="css">dotted</span>, <a class="css" data-link-type="maybe" href="#valdef-line-style-inset" id="ref-for-valdef-line-style-inset①">inset</a>, etc.) follow the curve of the border.</p> <figure> <img alt="The effect of rounded corners on unequal borders" height="176" src="images/smooth-radius.png" width="407"> <figcaption> The effect of a rounded corner when the two borders it connects are of unequal thickness (left) and the effect of a rounded corner on borders that are thicker than the radius of the corner (right). </figcaption> </figure> <p class="note" role="note"><span class="marker">Note:</span> If the center of a corner’s outer curve is past an opposite <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding-edge" id="ref-for-padding-edge③">padding edge</a> (in the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-area" id="ref-for-border-area③">border area</a> of a side opposite the corner), the inner curve will not be a full quarter ellipse.</p> <figure> <table> <tbody> <tr> <td> <pre>p { width: 70px; height: 70px; border: solid 30px; border-color: orange orange silver silver; border-top-right-radius: 100%; } </pre> <td> <img alt="The curved corner is an arc from the top left corner sweeping across the top right corner to the bottom right corner, describing a quarter-ellipse; but since the opposite sides have a border thickness the padding edge curve starts inward from the outer arc&apos;s endpoints." height="142" src="images/partial-curve.png" width="141"> </table> <figcaption> Where the border-radius curve extends into the opposite sides' borders, the arc of the padding edge is less than 90°. </figcaption> </figure> <p>The <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#margin-edge" id="ref-for-margin-edge">margin edge</a>, being outside the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-edge" id="ref-for-border-edge①">border edge</a>, calculates its radius by <em>adding</em> the corresponding margin thickness to each border radius. However, in order to create a sharper corner when the border radius is small (and thus ensure continuity between round and sharp corners), when the <a data-link-type="dfn" href="#border-radii" id="ref-for-border-radii">border radius</a> is less than the margin, the margin is multiplied by the proportion 1 + (<var>r</var>-1)<sup>3</sup>, where <var>r</var> is the ratio of the border radius to the margin, in calculating the corner radii of the margin box shape.</p> <h3 class="heading settled" data-level="4.3" id="corner-clipping"><span class="secno">4.3. </span><span class="content"> Corner Clipping</span><a class="self-link" href="#corner-clipping"></a></h3> <p>Although <a href="#border-image">border images</a> are not affected by <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius④">border-radius</a>, other effects that clip painting or event handling to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-edge" id="ref-for-border-edge②">border</a>, <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#padding-edge" id="ref-for-padding-edge④">padding</a>, or <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#content-edge" id="ref-for-content-edge①">content</a> edge must clip to their respective curves. For example, backgrounds clip to the curve specified by <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip⑨">background-clip</a>, <a class="property css" data-link-type="property">overflow</a> values other than <span class="css">visible</span> to the curved <span id="ref-for-padding-edge⑤">padding edge</span> (when <span class="property">overflow</span> on both axes is not <span class="css">visible</span>), <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-4/#replaced-element" id="ref-for-replaced-element">replaced element</a> content to the curved <span id="ref-for-content-edge②">content edge</span>, pointer events to the curved <span id="ref-for-border-edge③">border edge</span>, etc.</p> <p class="note" role="note"><span class="marker">Note:</span> As <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius⑤">border-radius</a> reduces the interactive area of an element authors should make sure the remaining interactive area conforms to recommended minima for the platforms they target; in particular, conforming to recommended minimum touch target sizes may require larger widths and heights when <span class="property" id="ref-for-propdef-border-radius⑥">border-radius</span> is used.</p> <div class="example" id="example-b5486bac"> <a class="self-link" href="#example-b5486bac"></a> This example adds appropriate padding, so that the contents do not overflow the corners. Note that there is no border, but the background will still have rounded corners. <pre>DIV { background: black; color: white; border-radius: 1em; padding: 1em } </pre> </div> <h3 class="heading settled" data-level="4.4" id="corner-transitions"><span class="secno">4.4. </span><span class="content"> Color and Style Transitions</span><a class="self-link" href="#corner-transitions"></a></h3> <p>Color and style transitions must be contained within the segment of the border that intersects the smallest rectangle that contains both border radii as well as the center of the inner curve (which may be a point representing the corner of the padding edge, if the border radii are smaller than the <a data-link-type="dfn" href="#border-width-dfn" id="ref-for-border-width-dfn">border width</a>).</p> <p>If one of these borders is zero-width, then the other border takes up the entire transitional area. Otherwise, the center of color and style transitions between adjoining borders is a point along the curve that is a continuous monotonic function of the ratio of the border widths. However it is not defined what these transitions look like or what function maps from this ratio to a point on the curve.</p> <figure> <img alt="Illustration of the transition region on curved corners" height="178" src="images/transition-region.png" width="600"> <figcaption> Given these corner shapes, color and style transitions must be contained within the green region. In case D the rectangle defined by the border radii does not include the center of the inner curve (which is a sharp corner), so the transition region is expanded to include that corner. Transitions may take up the entire transition region, but are not required to: For example, a gradient color transition between two solid border styles might take up only the region bounded by the tips of the outer radii and the tips of the inner radii (represented in case D by the dark green region). </figcaption> </figure> <h3 class="heading settled" data-level="4.5" id="corner-overlap"><span class="secno">4.5. </span><span class="content"> Overlapping Curves</span><a class="self-link" href="#corner-overlap"></a></h3> <p>Corner curves must not overlap: When the sum of any two adjacent border radii exceeds the size of the border box, UAs must proportionally reduce the used values of all border radii until none of them overlap. The algorithm for reducing radii is as follows:</p> <p>Let <var>f</var> = min(<var>L<sub>i</sub></var>/<var>S<sub>i</sub></var>), where <var>i</var> ∈ {top, right, bottom, left}, <var>S<sub>i</sub></var> is the sum of the two corresponding radii of the corners on side <var>i</var>, and <var>L<sub>top</sub></var> = <var>L<sub>bottom</sub></var> = the width of the box, and <var>L<sub>left</sub></var> = <var>L<sub>right</sub></var> = the height of the box. If <var>f</var> &lt; 1, then all corner radii are reduced by multiplying them by <var>f</var>.</p> <p class="note" role="note"><span class="marker">Note:</span> This formula ensures that quarter circles remain quarter circles and large radii remain larger than smaller ones, but it may reduce corners that were already small enough, which may make borders of nearby elements that should look the same look different.</p> <p>If the curve interferes with UI elements such as scrollbars, the UA may further reduce the used value of the affected border radii (and only the affected border radii) as much as necessary, but no more.</p> <div class="example" id="example-830e0800"> <a class="self-link" href="#example-830e0800"></a> For example, the borders A of the <a href="#reduced-radius">figure below</a> might be the result of <pre>box-sizing: border-box; width: 6em; height: 2.5em; border-radius: 0.5em 2em 0.5em 2em </pre> <p>The height (2.5em) is enough for the specified radii (0.5em plus 2.0em). However, if the height is only 2em,</p> <pre>box-sizing: border-box; width: 6em; height: 2em; border-radius: 0.5em 2em 0.5em 2em </pre> <p>all corners need to be reduced by a factor 0.8 to make them fit. The used border radii thus are 0.4em (instead of 0.5em) and 1.6em (instead of 2em). See borders B in the figure.</p> <figure id="reduced-radius"> <img alt="[image: rectangle with two tiny rounded corners and two very large ones, on opposite corners]" height="168" src="images/corner-large-mix.png" width="432"> <figcaption> These rounded corner might be the result of 'width: 6em; height: 2.5em; border-radius: 0.5em 2em 0.5em 2em'' for A; and ditto but with <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-sizing-3/#propdef-height" id="ref-for-propdef-height">height: 2em</a> for B. </figcaption> </figure> </div> <h3 class="heading settled" data-level="4.6" id="border-radius-tables"><span class="secno">4.6. </span><span class="content"> Effect on Tables</span><a class="self-link" href="#border-radius-tables"></a></h3> <p>The <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius⑦">border-radius</a> properties do apply to <span class="css">table</span>, <span class="css">inline-table</span>, and <span class="css">table-cell</span> boxes in separated borders mode (<a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-tables-3/#propdef-border-collapse" id="ref-for-propdef-border-collapse">border-collapse: separate</a>). When <span class="property" id="ref-for-propdef-border-collapse①">border-collapse</span> is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css2/#valdef-border-collapse-collapse" id="ref-for-valdef-border-collapse-collapse">collapse</a>, they have no effect.</p> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/table-cell-background-local-002.html" title="css/css-backgrounds/table-cell-background-local-002.html">table-cell-background-local-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/table-cell-background-local-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/table-cell-background-local-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/table-cell-background-local-003.html" title="css/css-backgrounds/table-cell-background-local-003.html">table-cell-background-local-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/table-cell-background-local-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/table-cell-background-local-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/table-cell-background-local.html" title="css/css-backgrounds/table-cell-background-local.html">table-cell-background-local.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/table-cell-background-local.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/table-cell-background-local.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/ttwf-reftest-borderRadius.html" title="css/css-backgrounds/ttwf-reftest-borderRadius.html">ttwf-reftest-borderRadius.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/ttwf-reftest-borderRadius.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/ttwf-reftest-borderRadius.html"><small>(source)</small></a> </ul> </details> <h2 class="heading settled" data-level="5" id="border-images"><span class="secno">5. </span><span class="content"> Border Images</span><a class="self-link" href="#border-images"></a></h2> <p>Authors can specify an image to be used in place of the border styles. In this case, the border’s design is taken from the sides and corners of an image specified with <a class="property css" data-link-type="property" href="#propdef-border-image-source" id="ref-for-propdef-border-image-source">border-image-source</a>, whose pieces may be sliced, scaled, and stretched in various ways to fit the size of the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area">border image area</a>. The border-image properties do not affect layout: layout of the box, its content, and surrounding content is based on the <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width⑦">border-width</a> and <a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style⑦">border-style</a> properties only.</p> <div class="example" id="example-8488cbd9"> <a class="self-link" href="#example-8488cbd9"></a> This example creates a top and bottom border consisting of a whole number of orange diamonds and a left and right border of a single, stretched diamond. The corners are diamonds of a different color. The image to tile is as follows. Apart from the diamonds, it is transparent: <p><img alt="Tile for border" height="81" src="images/border.png" width="81"></p> <p>The image is 81 by 81 pixels and has to be divided into 9 equal parts. The style rules could thus be as follows:</p> <pre>DIV { border: double orange 1em; border-image: url("border.png") 27 round stretch; } </pre> <p>The result, when applied to a DIV of 12 by 5em, will be similar to this:</p> <p><img alt="element with a diamond border" height="116" src="images/borderresult.png" width="239"></p> </div> <div class="example" id="example-28370333"> <a class="self-link" href="#example-28370333"></a> This shows a more complicated example, demonstrating how the border image corresponds to the fallback border-style but can also extend beyond the border area. The border image is a wavy green border with an extended corner effect: <figure> <img alt="Diagram: The border image shows a wavy green border with more exaggerated waves towards the corners, which are capped by a disconnected green circle. Four cuts at 124px offsets from each side divide the image into 124px-wide square corners, 124px-wide but thin side slices, and a small center square." height="375" src="images/groovy-border-image-slice.png" width="396"> <figcaption> The <a class="property css" data-link-type="property" href="#propdef-border-image-source" id="ref-for-propdef-border-image-source①">border-image-source</a> image, with the four <a class="property css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice">border-image-slice</a> cuts at 124px dividing the image into nine parts. </figcaption> </figure> <p>The rest of the border properties then interact to lay out the tiles as follows:</p> <figure> <img alt="Diagram: The image-less (fallback) rendering has a green double border. The rendering with border-image shows the wavy green border, ith the waves getting longer as they reach the corners. The corner tiles render as 124px-wide squares and the side tiles repeat a whole number of times to fill the space in between. Because of the gradual corner effects, the tiles extend deep into the padding area. The whole border image effect is outset 31px, so that the troughs of the waves align just outside the padding edge." height="537" src="images/border-image.png" width="452"> <figcaption> Diagram of all border-image properties and how they interact, and showing the rendering with and without the border-image in effect. </figcaption> </figure> <p>Here, even though the <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width⑧">border-width</a> is 12px, the <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width①">border-image-width</a> property computes to 124px. The <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area①">border image area</a> is then outset 31px from the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box⑥">border box</a> and into the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#margin-area" id="ref-for-margin-area">margin area</a>. If the border-image fails to load (or if border images are not supported by the UA), the fallback rendering uses a green double border.</p> </div> <div class="example" id="border-image-border-shorthand-example"> <a class="self-link" href="#border-image-border-shorthand-example"></a> Notice that the <a class="property css" data-link-type="property" href="#propdef-border" id="ref-for-propdef-border⑧">border</a> shorthand resets <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image④">border-image</a>. This makes it easy to turn off or reset all border effects: <pre>.notebox { border: double orange; /* must set 'border' shorthand first, otherwise it erases 'border-image' */ border-image: url("border.png") 30 round; /* but other 'border' properties can be set after */ border-width: thin thick; } ... .sidebar .notebox { box-shadow: 0 0 5px gray; border-radius: 5px; border: none; /* turn off all borders */ /* 'border' shorthand resets 'border-image' */ } </pre> </div> <h3 class="heading settled" data-level="5.1" id="border-image-source"><span class="secno">5.1. </span><span class="content"> Image Source: the <a class="property css" data-link-type="property" href="#propdef-border-image-source" id="ref-for-propdef-border-image-source②">border-image-source</a> property</span><span id="the-border-image-source"></span><a class="self-link" href="#border-image-source"></a></h3> <table class="def propdef" data-link-for-hint="border-image-source"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-image-source">border-image-source</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod">none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⓪">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-images-3/#typedef-image" id="ref-for-typedef-image②">&lt;image></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>none <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>All elements, except internal table elements when <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-tables-3/#propdef-border-collapse" id="ref-for-propdef-border-collapse②">border-collapse</a> is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css2/#valdef-border-collapse-collapse" id="ref-for-valdef-border-collapse-collapse①">collapse</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>the keyword <span class="css">none</span> or the computed <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-images-3/#typedef-image" id="ref-for-typedef-image③">&lt;image></a> <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>discrete </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-image-source-interpolation.html" title="css/css-backgrounds/animations/border-image-source-interpolation.html">border-image-source-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-image-source-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-image-source-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-border-image-source.html" title="css/css-backgrounds/css3-border-image-source.html">css3-border-image-source.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-border-image-source.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-border-image-source.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-source-computed.sub.html" title="css/css-backgrounds/parsing/border-image-source-computed.sub.html">border-image-source-computed.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-source-computed.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-source-computed.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-source-invalid.html" title="css/css-backgrounds/parsing/border-image-source-invalid.html">border-image-source-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-source-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-source-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-source-valid.html" title="css/css-backgrounds/parsing/border-image-source-valid.html">border-image-source-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-source-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-source-valid.html"><small>(source)</small></a> </ul> </details> <p>Specifies an image to use as a border in place of the rendering specified by the <a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style⑧">border-style</a> properties and, if given the <a class="css" data-link-type="maybe" href="#border-image-slice-fill" id="ref-for-border-image-slice-fill">fill</a> keyword in <a class="property css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice①">border-image-slice</a>, as an additional image backdrop for the element. If the value is <span class="css">none</span> or if the image cannot be displayed (or the property doesn’t apply), the border styles will be used; otherwise the element’s <span class="property" id="ref-for-propdef-border-style⑨">border-style</span> borders are not drawn and this <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="border-image-dfn">border image</dfn> is drawn as described in the sections below.</p> <h3 class="heading settled" data-level="5.2" id="border-image-slice"><span class="secno">5.2. </span><span class="content"> Image Slicing: the <a class="property css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice②">border-image-slice</a> property</span><span id="the-border-image-slice"></span><a class="self-link" href="#border-image-slice"></a></h3> <table class="def propdef" data-link-for-hint="border-image-slice"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-image-slice">border-image-slice</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod">[<a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#number-value" id="ref-for-number-value">&lt;number [0,∞]></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④①">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#percentage-value" id="ref-for-percentage-value②">&lt;percentage [0,∞]></a>]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range⑧">{1,4}</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-all" id="ref-for-comb-all①">&amp;&amp;</a> fill<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt⑥">?</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>100% <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>All elements, except internal table elements when <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-tables-3/#propdef-border-collapse" id="ref-for-propdef-border-collapse③">border-collapse</a> is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css2/#valdef-border-collapse-collapse" id="ref-for-valdef-border-collapse-collapse②">collapse</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>refer to size of the border image <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>four values, each either a number or percentage; plus a <a class="css" data-link-type="maybe" href="#border-image-slice-fill" id="ref-for-border-image-slice-fill①">fill</a> keyword if specified <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>by computed value </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-image-slice-composition.html" title="css/css-backgrounds/animations/border-image-slice-composition.html">border-image-slice-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-image-slice-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-image-slice-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-image-slice-interpolation-stability.html" title="css/css-backgrounds/animations/border-image-slice-interpolation-stability.html">border-image-slice-interpolation-stability.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-image-slice-interpolation-stability.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-image-slice-interpolation-stability.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-image-slice-interpolation.html" title="css/css-backgrounds/animations/border-image-slice-interpolation.html">border-image-slice-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-image-slice-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-image-slice-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-001.xht" title="css/css-backgrounds/border-image-slice-001.xht">border-image-slice-001.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-001.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-001.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-002.xht" title="css/css-backgrounds/border-image-slice-002.xht">border-image-slice-002.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-002.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-002.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-003.xht" title="css/css-backgrounds/border-image-slice-003.xht">border-image-slice-003.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-003.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-003.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-004.htm" title="css/css-backgrounds/border-image-slice-004.htm">border-image-slice-004.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-004.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-004.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-005.htm" title="css/css-backgrounds/border-image-slice-005.htm">border-image-slice-005.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-005.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-005.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-006.htm" title="css/css-backgrounds/border-image-slice-006.htm">border-image-slice-006.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-006.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-006.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-007.htm" title="css/css-backgrounds/border-image-slice-007.htm">border-image-slice-007.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-007.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-007.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-fill-001.html" title="css/css-backgrounds/border-image-slice-fill-001.html">border-image-slice-fill-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-fill-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-fill-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-fill-002.html" title="css/css-backgrounds/border-image-slice-fill-002.html">border-image-slice-fill-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-fill-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-fill-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-fill-003.html" title="css/css-backgrounds/border-image-slice-fill-003.html">border-image-slice-fill-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-fill-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-fill-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-percentage.html" title="css/css-backgrounds/border-image-slice-percentage.html">border-image-slice-percentage.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-percentage.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-percentage.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-slice-shorthand-reset.html" title="css/css-backgrounds/border-image-slice-shorthand-reset.html">border-image-slice-shorthand-reset.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-slice-shorthand-reset.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-slice-shorthand-reset.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-slice-computed.html" title="css/css-backgrounds/parsing/border-image-slice-computed.html">border-image-slice-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-slice-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-slice-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-slice-invalid.html" title="css/css-backgrounds/parsing/border-image-slice-invalid.html">border-image-slice-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-slice-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-slice-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-slice-valid.html" title="css/css-backgrounds/parsing/border-image-slice-valid.html">border-image-slice-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-slice-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-slice-valid.html"><small>(source)</small></a> </ul> </details> <p>This property specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle. The middle image part is discarded (treated as fully transparent) unless the <a class="css" data-link-type="maybe" href="#border-image-slice-fill" id="ref-for-border-image-slice-fill②">fill</a> keyword is present. (It is drawn over the background; see <a href="#border-image-process">Drawing the Border Image</a>.)</p> <p>If there is only one component value, it applies to all sides. If there are two values, the top and bottom are set to the first value and the right and left are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-slice" data-dfn-type="value" data-export id="valdef-border-image-slice-percentage-0"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#percentage-value" id="ref-for-percentage-value③">&lt;percentage [0,∞]></a></dfn> <dd> Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets. <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-slice" data-dfn-type="value" data-export id="valdef-border-image-slice-number-0"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#number-value" id="ref-for-number-value①">&lt;number [0,∞]></a></dfn> <dd> Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image). <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-slice" data-dfn-type="value" data-export id="border-image-slice-fill">fill</dfn> <dd> The <a class="css" data-link-type="maybe" href="#border-image-slice-fill" id="ref-for-border-image-slice-fill③">fill</a> keyword, if present, causes the middle part of the border-image to be preserved. (By default it is discarded, i.e., treated as empty.) </dl> <p>Negative values are invalid. Computed values larger than the size of the image are interpreted as <span class="css">100%</span>.</p> <p>The regions given by the <a class="property css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice③">border-image-slice</a> values may overlap. However if the sum of the right and left widths is equal to or greater than the width of the image, the images for the top and bottom edge and the middle part are empty—​which has the same effect as if a nonempty transparent image had been specified for those parts. Analogously for the top and bottom values.</p> <p>If the image must be sized to determine the slices (for example, for SVG images with no <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-dimensions" id="ref-for-natural-dimensions">natural dimensions</a>), then it is sized using the <a href="https://www.w3.org/TR/css3-images/#default-sizing">default sizing algorithm</a> with no <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#specified-size" id="ref-for-specified-size">specified size</a> and the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area②">border image area</a> as the <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#default-object-size" id="ref-for-default-object-size">default object size</a>.</p> <figure> <img alt="Diagram: two horizontal cuts and two vertical cuts through an image" height="304" src="images/slice.png" width="388"> <figcaption> Diagram illustrating the cuts corresponding to the value <span class="css">25% 30% 12% 20%</span> </figcaption> </figure> <h3 class="heading settled" data-level="5.3" id="border-image-width"><span class="secno">5.3. </span><span class="content"> Drawing Areas: the <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width②">border-image-width</a> property</span><span id="the-border-image-width"></span><a class="self-link" href="#border-image-width"></a></h3> <table class="def propdef" data-link-for-hint="border-image-width"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-image-width">border-image-width</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod">[ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①⑧">&lt;length-percentage [0,∞]></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④②">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#number-value" id="ref-for-number-value②">&lt;number [0,∞]></a> <span id="ref-for-comb-one④③">|</span> auto ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range⑨">{1,4}</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>1 <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>All elements, except internal table elements when <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-tables-3/#propdef-border-collapse" id="ref-for-propdef-border-collapse④">border-collapse</a> is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css2/#valdef-border-collapse-collapse" id="ref-for-valdef-border-collapse-collapse③">collapse</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>Relative to width/height of the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area③">border image area</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>four values, each either a number, the keyword <a class="css" data-link-type="maybe" href="#valdef-border-image-width-auto" id="ref-for-valdef-border-image-width-auto">auto</a>, or a computed <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①⑨">&lt;length-percentage></a> value <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>by computed value </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-width-001.htm" title="css/css-backgrounds/border-image-width-001.htm">border-image-width-001.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-width-001.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-width-001.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-width-005.xht" title="css/css-backgrounds/border-image-width-005.xht">border-image-width-005.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-width-005.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-width-005.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-width-006.xht" title="css/css-backgrounds/border-image-width-006.xht">border-image-width-006.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-width-006.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-width-006.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-width-007.xht" title="css/css-backgrounds/border-image-width-007.xht">border-image-width-007.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-width-007.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-width-007.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-width-008.html" title="css/css-backgrounds/border-image-width-008.html">border-image-width-008.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-width-008.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-width-008.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-width-009.html" title="css/css-backgrounds/border-image-width-009.html">border-image-width-009.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-width-009.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-width-009.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-width-should-extend-to-padding.html" title="css/css-backgrounds/border-image-width-should-extend-to-padding.html">border-image-width-should-extend-to-padding.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-width-should-extend-to-padding.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-width-should-extend-to-padding.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-width-computed.html" title="css/css-backgrounds/parsing/border-image-width-computed.html">border-image-width-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-width-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-width-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-width-invalid.html" title="css/css-backgrounds/parsing/border-image-width-invalid.html">border-image-width-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-width-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-width-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-width-valid.html" title="css/css-backgrounds/parsing/border-image-width-valid.html">border-image-width-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-width-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-width-valid.html"><small>(source)</small></a> </ul> </details> <p>The <a data-link-type="dfn" href="#border-image-dfn" id="ref-for-border-image-dfn">border image</a> is drawn inside an area called the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="border-image-area">border image area</dfn>. This is an area whose boundaries by default correspond to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box⑦">border box</a>, see <a class="property css" data-link-type="property" href="#propdef-border-image-outset" id="ref-for-propdef-border-image-outset">border-image-outset</a>.</p> <p>The four values of <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width③">border-image-width</a> specify offsets that are used to divide the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area④">border image area</a> into nine <dfn class="dfn-paneled" data-dfn-type="dfn" data-export data-local-lt="region" data-lt="border image region" id="border-image-region">regions</dfn>. The offsets represent inward distances from the top, right, bottom, and left sides of the area, respectively.</p> <p>If there is only one component value, it applies to all sides. If there are two values, the top and bottom are set to the first value and the right and left are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.</p> <p>Values have the following meanings:</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-width" data-dfn-type="value" data-export id="valdef-border-image-width-length-percentage-0"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage②⓪">&lt;length-percentage [0,∞]></a></dfn> <dd> Percentages refer to the size of the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area⑤">border image area</a>: the width of the area for horizontal offsets, the height for vertical offsets. <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-width" data-dfn-type="value" data-export id="valdef-border-image-width-number-0"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#number-value" id="ref-for-number-value③">&lt;number [0,∞]></a></dfn> <dd> Numbers represent multiples of the corresponding computed <a href="#border-width">border-width</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-width" data-dfn-type="value" data-export id="valdef-border-image-width-auto">auto</dfn> <dd> If <a class="css" data-link-type="maybe" href="#valdef-border-image-width-auto" id="ref-for-valdef-border-image-width-auto①">auto</a> is specified then the used <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width④">border-image-width</a> is the <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-size" id="ref-for-natural-size②">natural</a> width or height (whichever is applicable) of the corresponding image slice (see <a class="property css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice④">border-image-slice</a>). If the image does not have the required <a data-link-type="dfn" href="https://drafts.csswg.org/css-images-3/#natural-dimensions" id="ref-for-natural-dimensions①">natural dimension</a> then the corresponding computed <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width⑨">border-width</a> is used instead. </dl> <p>Negative values are invalid for any <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width⑤">border-image-width</a> values.</p> <p>If two opposite <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width⑥">border-image-width</a> offsets are large enough that they overlap, then the <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#used-value" id="ref-for-used-value④">used values</a> of all <span class="property" id="ref-for-propdef-border-image-width⑦">border-image-width</span> offsets are proportionally reduced until they no longer overlap. In mathematical notation: Given <var>L<sub>width</sub></var> as the width of the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area⑥">border image area</a>, <var>L<sub>height</sub></var> as its height, and <var>W<sub><var>side</var></sub></var> as the <span class="property" id="ref-for-propdef-border-image-width⑧">border-image-width</span> offset for the <var>side</var> side, let <var>f</var> = min(<var>L<sub>width</sub></var>/(<var>W<sub>left</sub></var>+<var>W<sub>right</sub></var>), <var>L<sub>height</sub></var>/(<var>W<sub>top</sub></var>+<var>W<sub>bottom</sub></var>)). If <var>f</var> &lt; 1, then all <var>W</var> are reduced by multiplying them by <var>f</var>.</p> <h3 class="heading settled" data-level="5.4" id="border-image-outset"><span class="secno">5.4. </span><span class="content"> Edge Overhang: the <a class="property css" data-link-type="property" href="#propdef-border-image-outset" id="ref-for-propdef-border-image-outset①">border-image-outset</a> property</span><span id="the-border-image-outset"></span><a class="self-link" href="#border-image-outset"></a></h3> <table class="def propdef" data-link-for-hint="border-image-outset"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-image-outset">border-image-outset</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod">[ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value②">&lt;length [0,∞]></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④④">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#number-value" id="ref-for-number-value④">&lt;number [0,∞]></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range①⓪">{1,4}</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>0 <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>All elements, except internal table elements when <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-tables-3/#propdef-border-collapse" id="ref-for-propdef-border-collapse⑤">border-collapse</a> is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css2/#valdef-border-collapse-collapse" id="ref-for-valdef-border-collapse-collapse④">collapse</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>four values, each a number or absolute length <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>by computed value </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-image-outset-composition.html" title="css/css-backgrounds/animations/border-image-outset-composition.html">border-image-outset-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-image-outset-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-image-outset-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/border-image-outset-interpolation.html" title="css/css-backgrounds/animations/border-image-outset-interpolation.html">border-image-outset-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/border-image-outset-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/border-image-outset-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-outset-003.html" title="css/css-backgrounds/border-image-outset-003.html">border-image-outset-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-outset-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-outset-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-outset-computed.html" title="css/css-backgrounds/parsing/border-image-outset-computed.html">border-image-outset-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-outset-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-outset-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-outset-invalid.html" title="css/css-backgrounds/parsing/border-image-outset-invalid.html">border-image-outset-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-outset-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-outset-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-outset-valid.html" title="css/css-backgrounds/parsing/border-image-outset-valid.html">border-image-outset-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-outset-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-outset-valid.html"><small>(source)</small></a> </ul> </details> <p>The values specify the amount by which the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area⑦">border image area</a> extends beyond the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box⑧">border box</a>.</p> <p>If there is only one component value, it applies to all sides. If there are two values, the top and bottom are set to the first value and the right and left are set to the second. If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third. If there are four values they apply to the top, right, bottom, and left, respectively.</p> <dl> <dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value③">&lt;length [0,∞]></a> <dd> Represents an outset of the specified length. <dt><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#number-value" id="ref-for-number-value⑤">&lt;number [0,∞]></a> <dd> Represents an outset of the specified multiple of the corresponding computed <a href="#border-width">border-width</a>. </dl> <p>Negative values are invalid.</p> <p>Portions of the border-image that are rendered outside the <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-4/#border-box" id="ref-for-border-box⑨">border box</a> are <a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#ink-overflow" id="ref-for-ink-overflow">ink overflow</a> and do not trigger scrolling. Also such portions are invisible to mouse events and do not capture such events on behalf of the element.</p> <p class="note" role="note"><span class="marker">Note:</span> Even though they never cause a scrolling mechanism, outset images may still be clipped by an ancestor or by the viewport.</p> <h3 class="heading settled" data-level="5.5" id="border-image-repeat"><span class="secno">5.5. </span><span class="content"> Image Tiling: the <a class="property css" data-link-type="property" href="#propdef-border-image-repeat" id="ref-for-propdef-border-image-repeat">border-image-repeat</a> property</span><span id="the-border-image-repeat"></span><a class="self-link" href="#border-image-repeat"></a></h3> <table class="def propdef" data-link-for-hint="border-image-repeat"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-image-repeat">border-image-repeat</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod">[ stretch <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑤">|</a> repeat <span id="ref-for-comb-one④⑥">|</span> round <span id="ref-for-comb-one④⑦">|</span> space ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range①①">{1,2}</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>stretch <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>All elements, except internal table elements when <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-tables-3/#propdef-border-collapse" id="ref-for-propdef-border-collapse⑥">border-collapse</a> is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css2/#valdef-border-collapse-collapse" id="ref-for-valdef-border-collapse-collapse⑤">collapse</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>two keywords, one per axis <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>discrete </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/discrete-no-interpolation.html" title="css/css-backgrounds/animations/discrete-no-interpolation.html">discrete-no-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/discrete-no-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-002.htm" title="css/css-backgrounds/border-image-repeat-002.htm">border-image-repeat-002.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-002.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-002.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-004.htm" title="css/css-backgrounds/border-image-repeat-004.htm">border-image-repeat-004.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-004.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-004.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-005.html" title="css/css-backgrounds/border-image-repeat-005.html">border-image-repeat-005.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-005.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-005.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-1.html" title="css/css-backgrounds/border-image-repeat-1.html">border-image-repeat-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-repeat-001.html" title="css/css-backgrounds/border-image-repeat-repeat-001.html">border-image-repeat-repeat-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-repeat-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-repeat-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-round-003.html" title="css/css-backgrounds/border-image-repeat-round-003.html">border-image-repeat-round-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-round-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-round-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-round-1.html" title="css/css-backgrounds/border-image-repeat-round-1.html">border-image-repeat-round-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-round-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-round-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-round-2.html" title="css/css-backgrounds/border-image-repeat-round-2.html">border-image-repeat-round-2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-round-2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-round-2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-round-stretch-001.html" title="css/css-backgrounds/border-image-repeat-round-stretch-001.html">border-image-repeat-round-stretch-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-round-stretch-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-round-stretch-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-round.html" title="css/css-backgrounds/border-image-repeat-round.html">border-image-repeat-round.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-round.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-round.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-011.html" title="css/css-backgrounds/border-image-repeat-space-011.html">border-image-repeat-space-011.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-011.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-011.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-1.html" title="css/css-backgrounds/border-image-repeat-space-1.html">border-image-repeat-space-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-10.html" title="css/css-backgrounds/border-image-repeat-space-10.html">border-image-repeat-space-10.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-10.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-10.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-2.html" title="css/css-backgrounds/border-image-repeat-space-2.html">border-image-repeat-space-2.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-2.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-2.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-3.html" title="css/css-backgrounds/border-image-repeat-space-3.html">border-image-repeat-space-3.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-3.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-3.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-4-ref-1.html" title="css/css-backgrounds/border-image-repeat-space-4-ref-1.html">border-image-repeat-space-4-ref-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-4-ref-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-4-ref-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-4.html" title="css/css-backgrounds/border-image-repeat-space-4.html">border-image-repeat-space-4.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-4.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-4.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-5-ref-1.html" title="css/css-backgrounds/border-image-repeat-space-5-ref-1.html">border-image-repeat-space-5-ref-1.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-5-ref-1.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-5-ref-1.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-5.html" title="css/css-backgrounds/border-image-repeat-space-5.html">border-image-repeat-space-5.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-5.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-5.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-6.html" title="css/css-backgrounds/border-image-repeat-space-6.html">border-image-repeat-space-6.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-6.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-6.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-7.html" title="css/css-backgrounds/border-image-repeat-space-7.html">border-image-repeat-space-7.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-7.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-7.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-8.html" title="css/css-backgrounds/border-image-repeat-space-8.html">border-image-repeat-space-8.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-8.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-8.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-space-9.html" title="css/css-backgrounds/border-image-repeat-space-9.html">border-image-repeat-space-9.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-space-9.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-space-9.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat-stretch-round-001.html" title="css/css-backgrounds/border-image-repeat-stretch-round-001.html">border-image-repeat-stretch-round-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat-stretch-round-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat-stretch-round-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-repeat_repeatnegx_none_50px.html" title="css/css-backgrounds/border-image-repeat_repeatnegx_none_50px.html">border-image-repeat_repeatnegx_none_50px.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-repeat_repeatnegx_none_50px.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-repeat_repeatnegx_none_50px.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-border-image-repeat-repeat.html" title="css/css-backgrounds/css3-border-image-repeat-repeat.html">css3-border-image-repeat-repeat.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-border-image-repeat-repeat.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-border-image-repeat-repeat.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-border-image-repeat-stretch.html" title="css/css-backgrounds/css3-border-image-repeat-stretch.html">css3-border-image-repeat-stretch.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-border-image-repeat-stretch.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-border-image-repeat-stretch.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-repeat-computed.html" title="css/css-backgrounds/parsing/border-image-repeat-computed.html">border-image-repeat-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-repeat-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-repeat-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-repeat-invalid.html" title="css/css-backgrounds/parsing/border-image-repeat-invalid.html">border-image-repeat-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-repeat-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-repeat-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-repeat-valid.html" title="css/css-backgrounds/parsing/border-image-repeat-valid.html">border-image-repeat-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-repeat-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-repeat-valid.html"><small>(source)</small></a> </ul> </details> <p>This property specifies how the images for the sides and the middle part of the <a data-link-type="dfn" href="#border-image-dfn" id="ref-for-border-image-dfn①">border image</a> are scaled and tiled. The first keyword applies to the horizontal scaling and tiling of the top, middle and bottom parts, the second to the vertical scaling and tiling of the left, middle and right parts; see <a href="#border-image-process">Drawing the Border Image</a>. If the second keyword is absent, it is assumed to be the same as the first. Values have the following meanings:</p> <dl> <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-repeat" data-dfn-type="value" data-export id="valdef-border-image-repeat-stretch">stretch</dfn> <dd> The image is stretched to fill its corresponding <a data-link-type="dfn" href="#border-image-region" id="ref-for-border-image-region">region</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-repeat" data-dfn-type="value" data-export id="valdef-border-image-repeat-repeat">repeat</dfn> <dd> The image is tiled (repeated) to fill its corresponding <a data-link-type="dfn" href="#border-image-region" id="ref-for-border-image-region①">region</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-repeat" data-dfn-type="value" data-export id="valdef-border-image-repeat-round">round</dfn> <dd> The image is tiled (repeated) to fill its corresponding <a data-link-type="dfn" href="#border-image-region" id="ref-for-border-image-region②">region</a>. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does. <dt><dfn class="dfn-paneled css" data-dfn-for="border-image-repeat" data-dfn-type="value" data-export id="valdef-border-image-repeat-space">space</dfn> <dd> The image is tiled (repeated) to fill its corresponding <a data-link-type="dfn" href="#border-image-region" id="ref-for-border-image-region③">region</a>. If it does not fill the region with a whole number of tiles, the extra space is distributed around the tiles. </dl> <p>The exact process for scaling and tiling the border-image parts is given in the section below.</p> <h3 class="heading settled" data-level="5.6" id="border-image-process"><span class="secno">5.6. </span><span class="content"> Drawing the Border Image</span><a class="self-link" href="#border-image-process"></a></h3> <p>After the <a data-link-type="dfn" href="#border-image-dfn" id="ref-for-border-image-dfn②">border image</a> given by <a class="property css" data-link-type="property" href="#propdef-border-image-source" id="ref-for-propdef-border-image-source③">border-image-source</a> is sliced by the <a class="property css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice⑤">border-image-slice</a> values, the resulting nine images are scaled, positioned, and tiled into their corresponding <a data-link-type="dfn" href="#border-image-region" id="ref-for-border-image-region④">border image regions</a> in four steps:</p> <ol> <li> Scale to <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width⑨">border-image-width</a>. <ul> <li>The two images for the top and bottom edges are made as tall as the top and bottom <a data-link-type="dfn" href="#border-image-region" id="ref-for-border-image-region⑤">border image regions</a>, respectively, and their width is scaled proportionally. <li>The images for the left and right edges are made as wide as the left and right <a data-link-type="dfn" href="#border-image-region" id="ref-for-border-image-region⑥">border image regions</a>, respectively, and their height is scaled proportionally. <li>The corner images are scaled to be as wide and as tall as the their respective <a data-link-type="dfn" href="#border-image-region" id="ref-for-border-image-region⑦">border image regions</a>. <li>The middle image’s width is scaled by the same factor as the top image unless that factor is zero or infinity, in which case the scaling factor of the bottom is substituted, and failing that, the width is not scaled. The height of the middle image is scaled by the same factor as the left image unless that factor is zero or infinity, in which case the scaling factor of the right image is substituted, and failing that, the height is not scaled. </ul> <li> Scale to <a class="property css" data-link-type="property" href="#propdef-border-image-repeat" id="ref-for-propdef-border-image-repeat①">border-image-repeat</a>. <ul> <li>If the first keyword is <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-stretch" id="ref-for-valdef-border-image-repeat-stretch">stretch</a>, the top, middle and bottom images are further scaled to be as wide as the middle region of the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area⑧">border image area</a>. The height is not changed any further. <li>If the first keyword is <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-round" id="ref-for-valdef-border-image-repeat-round">round</a>, the top, middle and bottom images are resized in width, so that exactly a whole number of them fit in the middle region of the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area⑨">border image area</a>, exactly as for <a class="css" data-link-type="maybe" href="#valdef-background-repeat-round" id="ref-for-valdef-background-repeat-round③">round</a> in the <a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat⑥">background-repeat</a> property. <li>If the first keyword is <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-repeat" id="ref-for-valdef-border-image-repeat-repeat">repeat</a> or <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-space" id="ref-for-valdef-border-image-repeat-space">space</a>, the top, middle, and bottom images are not changed any further. <li>The effects of <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-stretch" id="ref-for-valdef-border-image-repeat-stretch①">stretch</a>, <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-round" id="ref-for-valdef-border-image-repeat-round①">round</a>, <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-repeat" id="ref-for-valdef-border-image-repeat-repeat①">repeat</a>, and <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-space" id="ref-for-valdef-border-image-repeat-space①">space</a> for the second keyword are analogous, acting on the height of the left, middle and right images. </ul> <li> Position the first tile. <ul> <li>If the first keyword is <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-repeat" id="ref-for-valdef-border-image-repeat-repeat②">repeat</a>, the top, middle, and bottom images are centered horizontally in their respective regions. Otherwise the images are placed at the left edge of their respective regions of the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area①⓪">border image area</a>. <li>If the second keyword is <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-repeat" id="ref-for-valdef-border-image-repeat-repeat③">repeat</a>, the left, middle, and right images are centered vertically in their respective regions. Otherwise the images are placed at the top edge of their respective regions of the <a data-link-type="dfn" href="#border-image-area" id="ref-for-border-image-area①①">border image area</a>. </ul> <li> Tile and draw. <ul> <li>The images are then tiled to fill their respective regions. <li>In the case of <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-space" id="ref-for-valdef-border-image-repeat-space②">space</a>, any partial tiles are discarded and the extra space distributed before, after, and between the tiles. (I.e. the gap before the first tile, the gap after the last tile, and the gaps between tiles are equalized.) <span class="note">This can result in empty border-image side regions.</span> <li>The images are drawn at the same stacking level as normal borders: immediately in front of the background layers. <li>The middle image is not drawn unless <a class="css" data-link-type="maybe" href="#border-image-slice-fill" id="ref-for-border-image-slice-fill④">fill</a> was specified for <a class="property css" data-link-type="property" href="#propdef-border-image-source" id="ref-for-propdef-border-image-source④">border-image-source</a>. </ul> </ol> <h3 class="heading settled" data-level="5.7" id="border-image"><span class="secno">5.7. </span><span class="content"> Border Image Shorthand: the <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image⑤">border-image</a> property</span><span id="the-border-image"></span><a class="self-link" href="#border-image"></a></h3> <table class="def propdef" data-link-for-hint="border-image"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-border-image">border-image</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod"><a class="production css" data-link-type="property" href="#propdef-border-image-source" id="ref-for-propdef-border-image-source⑤">&lt;'border-image-source'></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any①⑤">||</a> <a class="production css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice⑥">&lt;'border-image-slice'></a> [ / <a class="production css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width①⓪">&lt;'border-image-width'></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑧">|</a> / <span class="production" id="ref-for-propdef-border-image-width①①">&lt;'border-image-width'></span><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt⑦">?</a> / <a class="production css" data-link-type="property" href="#propdef-border-image-outset" id="ref-for-propdef-border-image-outset②">&lt;'border-image-outset'></a> ]<span id="ref-for-mult-opt⑧">?</span> <span id="ref-for-comb-any①⑥">||</span> <a class="production css" data-link-type="property" href="#propdef-border-image-repeat" id="ref-for-propdef-border-image-repeat②">&lt;'border-image-repeat'></a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>See individual properties <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td>See individual properties <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>See individual properties <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>See individual properties </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-002.html" title="css/css-backgrounds/border-image-002.html">border-image-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-003.html" title="css/css-backgrounds/border-image-003.html">border-image-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-004.html" title="css/css-backgrounds/border-image-004.html">border-image-004.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-004.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-004.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-006.html" title="css/css-backgrounds/border-image-006.html">border-image-006.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-006.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-006.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-007.html" title="css/css-backgrounds/border-image-007.html">border-image-007.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-007.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-007.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-011.html" title="css/css-backgrounds/border-image-011.html">border-image-011.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-011.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-011.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-012.html" title="css/css-backgrounds/border-image-012.html">border-image-012.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-012.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-012.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-013.html" title="css/css-backgrounds/border-image-013.html">border-image-013.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-013.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-013.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-017.xht" title="css/css-backgrounds/border-image-017.xht">border-image-017.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-017.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-017.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-018.xht" title="css/css-backgrounds/border-image-018.xht">border-image-018.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-018.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-018.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-019.xht" title="css/css-backgrounds/border-image-019.xht">border-image-019.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-019.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-019.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-020.xht" title="css/css-backgrounds/border-image-020.xht">border-image-020.xht</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-020.xht"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-020.xht"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-calc.html" title="css/css-backgrounds/border-image-calc.html">border-image-calc.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-calc.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-calc.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-image-type-001.htm" title="css/css-backgrounds/border-image-image-type-001.htm">border-image-image-type-001.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-image-type-001.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-image-type-001.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-image-type-002.htm" title="css/css-backgrounds/border-image-image-type-002.htm">border-image-image-type-002.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-image-type-002.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-image-type-002.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-image-type-003.htm" title="css/css-backgrounds/border-image-image-type-003.htm">border-image-image-type-003.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-image-type-003.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-image-type-003.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-image-type-004.htm" title="css/css-backgrounds/border-image-image-type-004.htm">border-image-image-type-004.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-image-type-004.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-image-type-004.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-image-type-005.htm" title="css/css-backgrounds/border-image-image-type-005.htm">border-image-image-type-005.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-image-type-005.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-image-type-005.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-round-and-stretch.html" title="css/css-backgrounds/border-image-round-and-stretch.html">border-image-round-and-stretch.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-round-and-stretch.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-round-and-stretch.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-shorthand-001.htm" title="css/css-backgrounds/border-image-shorthand-001.htm">border-image-shorthand-001.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-shorthand-001.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-shorthand-001.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-shorthand-002.htm" title="css/css-backgrounds/border-image-shorthand-002.htm">border-image-shorthand-002.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-shorthand-002.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-shorthand-002.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-shorthand-003.htm" title="css/css-backgrounds/border-image-shorthand-003.htm">border-image-shorthand-003.htm</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-shorthand-003.htm"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-shorthand-003.htm"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/border-image-space-001.html" title="css/css-backgrounds/border-image-space-001.html">border-image-space-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/border-image-space-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/border-image-space-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-invalid.html" title="css/css-backgrounds/parsing/border-image-invalid.html">border-image-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-shorthand.sub.html" title="css/css-backgrounds/parsing/border-image-shorthand.sub.html">border-image-shorthand.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-shorthand.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-shorthand.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/border-image-valid.html" title="css/css-backgrounds/parsing/border-image-valid.html">border-image-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/border-image-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/border-image-valid.html"><small>(source)</small></a> </ul> </details> <p>This is a shorthand property for setting <a class="property css" data-link-type="property" href="#propdef-border-image-source" id="ref-for-propdef-border-image-source⑥">border-image-source</a>, <a class="property css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice⑦">border-image-slice</a>, <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width①②">border-image-width</a>, <a class="property css" data-link-type="property" href="#propdef-border-image-outset" id="ref-for-propdef-border-image-outset③">border-image-outset</a>, and <a class="property css" data-link-type="property" href="#propdef-border-image-repeat" id="ref-for-propdef-border-image-repeat③">border-image-repeat</a> in a single declaration. Omitted values are set to their <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-5/#initial-value" id="ref-for-initial-value⑤">initial values</a>.</p> <h3 class="heading settled" data-level="5.8" id="border-image-tables"><span class="secno">5.8. </span><span class="content">Effect on Tables</span><a class="self-link" href="#border-image-tables"></a></h3> <p>The <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image⑥">border-image</a> properties apply to the border of tables and inline tables that have <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-tables-3/#propdef-border-collapse" id="ref-for-propdef-border-collapse⑦">border-collapse</a> set to <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css2/#valdef-border-collapse-collapse" id="ref-for-valdef-border-collapse-collapse⑥">collapse</a>. However, this specification does not define how such an image border is rendered. In particular, it does not define how the image border interacts with the borders of cells, rows and row groups at the edges of the table (see <a href="https://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html#border-conflict-resolution">border conflict resolution</a> in <a data-link-type="biblio" href="#biblio-css2" title="Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification">[CSS2]</a>).</p> <p>It is expected that a future specification will define the rendering. It is recommended that UAs do not apply border images to tables with collapsed borders until then.</p> <h2 class="heading settled" data-level="6" id="misc"><span class="secno">6. </span><span class="content">Miscellaneous Effects</span><a class="self-link" href="#misc"></a></h2> <p class="note" role="note"><span class="marker">Note:</span> The <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break" id="ref-for-propdef-box-decoration-break②">box-decoration-break</a> property, which defines how backgrounds and borders apply to a fragmented box, has been moved to the <a href="https://www.w3.org/TR/css-break/">CSS Fragmentation Module</a>. <a data-link-type="biblio" href="#biblio-css-break-3" title="CSS Fragmentation Module Level 3">[CSS-BREAK-3]</a></p> <h3 class="heading settled" data-level="6.1" id="box-shadow"><span class="secno">6.1. </span><span class="content">Drop Shadows: the <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow③">box-shadow</a> property</span><span id="the-box-shadow"></span><a class="self-link" href="#box-shadow"></a></h3> <table class="def propdef" data-link-for-hint="box-shadow"> <tbody> <tr> <th>Name: <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-box-shadow">box-shadow</dfn> <tr class="value"> <th><a href="https://www.w3.org/TR/css-values/#value-defs">Value:</a> <td class="prod">none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑨">|</a> <a class="production css" data-link-type="type" href="#typedef-shadow" id="ref-for-typedef-shadow">&lt;shadow></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑧">#</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#initial-values">Initial:</a> <td>none <tr> <th><a href="https://www.w3.org/TR/css-cascade/#applies-to">Applies to:</a> <td><a href="https://www.w3.org/TR/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a> <tr> <th><a href="https://www.w3.org/TR/css-cascade/#inherited-property">Inherited:</a> <td>no <tr> <th><a href="https://www.w3.org/TR/css-values/#percentages">Percentages:</a> <td>N/A <tr> <th><a href="https://www.w3.org/TR/css-cascade/#computed">Computed value:</a> <td>either the keyword <a class="css" data-link-type="maybe" href="#box-shadow-none" id="ref-for-box-shadow-none">none</a> or a list, each item consisting of four absolute lengths plus a computed color and optionally also a <a class="css" data-link-type="maybe" href="#shadow-inset" id="ref-for-shadow-inset">inset</a> keyword <tr> <th><a href="https://www.w3.org/TR/cssom/#serializing-css-values">Canonical order:</a> <td>per grammar <tr> <th><a href="https://www.w3.org/TR/web-animations/#animation-type">Animation type:</a> <td>by computed value, treating <a class="css" data-link-type="maybe" href="#box-shadow-none" id="ref-for-box-shadow-none①">none</a> as a zero-item list and appending blank shadows (<span class="css">transparent 0 0 0 0</span>) with a corresponding <a class="css" data-link-type="maybe" href="#shadow-inset" id="ref-for-shadow-inset①">inset</a> keyword as needed to match the longer list if the shorter list is otherwise compatible with the longer one </table> <details class="wpt-tests-block" dir="ltr" lang="en"> <summary>Tests</summary> <ul class="wpt-tests-list"> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/box-shadow-composition.html" title="css/css-backgrounds/animations/box-shadow-composition.html">box-shadow-composition.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/box-shadow-composition.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/box-shadow-composition.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/animations/box-shadow-interpolation.html" title="css/css-backgrounds/animations/box-shadow-interpolation.html">box-shadow-interpolation.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/animations/box-shadow-interpolation.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/animations/box-shadow-interpolation.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-005.html" title="css/css-backgrounds/box-shadow-005.html">box-shadow-005.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-005.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-005.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-029.html" title="css/css-backgrounds/box-shadow-029.html">box-shadow-029.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-029.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-029.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-039.html" title="css/css-backgrounds/box-shadow-039.html">box-shadow-039.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-039.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-039.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-040.html" title="css/css-backgrounds/box-shadow-040.html">box-shadow-040.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-040.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-040.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-041.html" title="css/css-backgrounds/box-shadow-041.html">box-shadow-041.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-041.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-041.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-042.html" title="css/css-backgrounds/box-shadow-042.html">box-shadow-042.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-042.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-042.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-body.html" title="css/css-backgrounds/box-shadow-body.html">box-shadow-body.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-body.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-body.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-border-radius-001.html" title="css/css-backgrounds/box-shadow-border-radius-001.html">box-shadow-border-radius-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-border-radius-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-border-radius-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-calc.html" title="css/css-backgrounds/box-shadow-calc.html">box-shadow-calc.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-calc.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-calc.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-currentcolor.html" title="css/css-backgrounds/box-shadow-currentcolor.html">box-shadow-currentcolor.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-currentcolor.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-currentcolor.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-inset-without-border-radius.html" title="css/css-backgrounds/box-shadow-inset-without-border-radius.html">box-shadow-inset-without-border-radius.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-inset-without-border-radius.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-inset-without-border-radius.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-invalid-001.html" title="css/css-backgrounds/box-shadow-invalid-001.html">box-shadow-invalid-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-invalid-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-invalid-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-multiple-001.html" title="css/css-backgrounds/box-shadow-multiple-001.html">box-shadow-multiple-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-multiple-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-multiple-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-outset-without-border-radius-001.html" title="css/css-backgrounds/box-shadow-outset-without-border-radius-001.html">box-shadow-outset-without-border-radius-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-outset-without-border-radius-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-outset-without-border-radius-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-overlapping-001.html" title="css/css-backgrounds/box-shadow-overlapping-001.html">box-shadow-overlapping-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-overlapping-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-overlapping-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-overlapping-002.html" title="css/css-backgrounds/box-shadow-overlapping-002.html">box-shadow-overlapping-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-overlapping-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-overlapping-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-overlapping-003.html" title="css/css-backgrounds/box-shadow-overlapping-003.html">box-shadow-overlapping-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-overlapping-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-overlapping-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-overlapping-004.html" title="css/css-backgrounds/box-shadow-overlapping-004.html">box-shadow-overlapping-004.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-overlapping-004.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-overlapping-004.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-radius-000.html" title="css/css-backgrounds/box-shadow-radius-000.html">box-shadow-radius-000.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-radius-000.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-radius-000.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-radius-001.html" title="css/css-backgrounds/box-shadow-radius-001.html">box-shadow-radius-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-radius-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-radius-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow-table-border-collapse-001.html" title="css/css-backgrounds/box-shadow-table-border-collapse-001.html">box-shadow-table-border-collapse-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow-table-border-collapse-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow-table-border-collapse-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow/slice-block-fragmentation-001.html" title="css/css-backgrounds/box-shadow/slice-block-fragmentation-001.html">slice-block-fragmentation-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow/slice-block-fragmentation-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow/slice-block-fragmentation-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow/slice-block-fragmentation-002.html" title="css/css-backgrounds/box-shadow/slice-block-fragmentation-002.html">slice-block-fragmentation-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow/slice-block-fragmentation-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow/slice-block-fragmentation-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow/slice-block-fragmentation-003.html" title="css/css-backgrounds/box-shadow/slice-block-fragmentation-003.html">slice-block-fragmentation-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow/slice-block-fragmentation-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow/slice-block-fragmentation-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow/slice-inline-fragmentation-001.html" title="css/css-backgrounds/box-shadow/slice-inline-fragmentation-001.html">slice-inline-fragmentation-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow/slice-inline-fragmentation-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow/slice-inline-fragmentation-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow/slice-inline-fragmentation-002.html" title="css/css-backgrounds/box-shadow/slice-inline-fragmentation-002.html">slice-inline-fragmentation-002.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow/slice-inline-fragmentation-002.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow/slice-inline-fragmentation-002.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/box-shadow/slice-inline-fragmentation-003.html" title="css/css-backgrounds/box-shadow/slice-inline-fragmentation-003.html">slice-inline-fragmentation-003.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/box-shadow/slice-inline-fragmentation-003.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/box-shadow/slice-inline-fragmentation-003.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css-box-shadow-001.html" title="css/css-backgrounds/css-box-shadow-001.html">css-box-shadow-001.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css-box-shadow-001.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css-box-shadow-001.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/css3-box-shadow.html" title="css/css-backgrounds/css3-box-shadow.html">css3-box-shadow.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/css3-box-shadow.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/css3-box-shadow.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/fieldset-inset-shadow.html" title="css/css-backgrounds/fieldset-inset-shadow.html">fieldset-inset-shadow.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/fieldset-inset-shadow.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/fieldset-inset-shadow.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inset-box-shadow-scroll.html" title="css/css-backgrounds/inset-box-shadow-scroll.html">inset-box-shadow-scroll.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inset-box-shadow-scroll.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inset-box-shadow-scroll.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inset-box-shadow-stacking-context-scroll.html" title="css/css-backgrounds/inset-box-shadow-stacking-context-scroll.html">inset-box-shadow-stacking-context-scroll.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inset-box-shadow-stacking-context-scroll.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inset-box-shadow-stacking-context-scroll.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/inheritance.sub.html" title="css/css-backgrounds/inheritance.sub.html">inheritance.sub.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/inheritance.sub.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/inheritance.sub.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/box-shadow-computed.html" title="css/css-backgrounds/parsing/box-shadow-computed.html">box-shadow-computed.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/box-shadow-computed.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/box-shadow-computed.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/box-shadow-invalid.html" title="css/css-backgrounds/parsing/box-shadow-invalid.html">box-shadow-invalid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/box-shadow-invalid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/box-shadow-invalid.html"><small>(source)</small></a> <li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/css/css-backgrounds/parsing/box-shadow-valid.html" title="css/css-backgrounds/parsing/box-shadow-valid.html">box-shadow-valid.html</a> <a class="wpt-live" href="http://wpt.live/css/css-backgrounds/parsing/box-shadow-valid.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/css/css-backgrounds/parsing/box-shadow-valid.html"><small>(source)</small></a> </ul> </details> <p>The <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow④">box-shadow</a> property attaches one or more drop shadows to the box. The property accepts either the <dfn class="dfn-paneled css" data-dfn-for="box-shadow" data-dfn-type="value" data-export id="box-shadow-none">none</dfn> value, which indicates no shadows, or a comma-separated list of shadows, ordered front to back.</p> <p>Each shadow is given as a <a class="production css" data-link-type="type" href="#typedef-shadow" id="ref-for-typedef-shadow①">&lt;shadow></a>, represented by 2-4 length values, an optional color, and an optional <a class="css" data-link-type="maybe" href="#shadow-inset" id="ref-for-shadow-inset②">inset</a> keyword. Omitted lengths are 0; omitted colors default to <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor" id="ref-for-valdef-color-currentcolor">currentColor</a>.</p> <pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-shadow"><a class="production" data-link-type="type" href="#typedef-shadow" id="ref-for-typedef-shadow②">&lt;shadow></a></dfn> = <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color⑤">&lt;color></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt⑨">?</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-all" id="ref-for-comb-all②">&amp;&amp;</a> [<a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value④">&lt;length></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num" id="ref-for-mult-num">{2}</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value⑤">&lt;length [0,∞]></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt①⓪">?</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value⑥">&lt;length></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt①①">?</a>] <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-all" id="ref-for-comb-all③">&amp;&amp;</a> inset<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt①②">?</a></pre> <p>The components of each <a class="production css" data-link-type="type" href="#typedef-shadow" id="ref-for-typedef-shadow③">&lt;shadow></a> are interpreted as follows:</p> <dl> <dt><dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-noexport id="shadow-offset-x">1st <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value⑦">&lt;length></a></dfn> <dd> Specifies the <dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-export id="box-shadow-horizontal-offset">horizontal offset</dfn> of the shadow. A positive value draws a shadow that is offset to the right of the box, a negative length to the left. <dt><dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-noexport id="shadow-offset-y">2nd <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value⑧">&lt;length></a></dfn> <dd> Specifies the <dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-export id="box-shadow-vertical-offset">vertical offset</dfn> of the shadow. A positive value offsets the shadow down, a negative one up. <dt><dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-noexport id="shadow-blur-radius">3rd <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value⑨">&lt;length [0,∞]></a></dfn> <dd>Specifies the <dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-export id="box-shadow-blur-radius">blur radius</dfn>. Negative values are invalid. If the blur value is zero, the shadow’s edge is sharp. Otherwise, the larger the value, the more the shadow’s edge is blurred. See <a href="#shadow-blur">Shadow Blurring</a>, below. <dt><dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-noexport id="shadow-spread-distance">4th <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value①⓪">&lt;length></a></dfn> <dd> Specifies the <dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-export id="box-shadow-spread-distance">spread distance</dfn>. Positive values cause the shadow to expand in all directions by the specified radius. Negative values cause the shadow to contract. See <a href="#shadow-shape">Shadow Shape</a>, below. <p class="note" role="note">Note that for inner shadows, expanding the shadow (creating more shadow area) means contracting the shadow’s perimeter shape. </p> <dt><dfn class="dfn-paneled css" data-dfn-for="box-shadow" data-dfn-type="value" data-noexport id="shadow-color"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color⑥">&lt;color></a></dfn> <dd> Specifies the color of the shadow. If the color is absent, it defaults to <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor" id="ref-for-valdef-color-currentcolor①">currentColor</a>. <dt><dfn class="dfn-paneled css" data-dfn-for="box-shadow" data-dfn-type="value" data-noexport id="shadow-inset">inset</dfn> <dd> If present, the <a class="css" data-link-type="maybe" href="#shadow-inset" id="ref-for-shadow-inset③">inset</a> keyword changes the drop shadow from an <dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-export data-local-lt="outer shadow" id="box-shadow-outer-box-shadow">outer box-shadow</dfn> (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an <dfn class="dfn-paneled" data-dfn-for="box-shadow" data-dfn-type="dfn" data-export data-local-lt="inner shadow" id="box-shadow-inner-box-shadow">inner box-shadow</dfn> (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it). </dl> <div class="example" id="example-ad571670"> <a class="self-link" href="#example-ad571670"></a> The example below demonstrates the effects of spread and blur on the shadow: <pre>width: <b>100px</b>; height: <b>100px</b>; border: <b>12px solid blue</b>; background-color: <b>orange</b>; border-top-left-radius: <b>60px 90px</b>; border-bottom-right-radius: <b>60px 90px</b>; box-shadow: <b>64px 64px 12px 40px rgba(0,0,0,0.4), 12px 12px 0px 8px rgba(0,0,0,0.4) inset</b>; </pre> <figure> <img alt="The sample code above would create a 100px×100px orange box with a 12px blue border, whose top right / bottom left corners are sharp and tob left / bottom right corners are elliptically curved. Two shadows are created: an inner one, which due to its offset and spread creates a 20px-wide band of darker orange along the top and left sides of the box (curving to match the rounded top left border shape); and an outer one, creating a 204px×204px gray duplicate of the shape seemingly behind the box, offset 24px down and 24px to the right of the box&apos;s top and left edges. Applying the 12px blur radius to the outer shadow creates a gradual shift from the shadow color to transparent along its edges which is visibly apparent for 24px centered along the edge of the shadow." height="244" src="images/spread-blur.png" width="251"> </figure> </div> <h4 class="heading settled" data-level="6.1.1" id="shadow-shape"><span class="secno">6.1.1. </span><span class="content"> Shadow Shape, Spread, and Knockout</span><a class="self-link" href="#shadow-shape"></a></h4> <p>An <a data-link-type="dfn" href="#box-shadow-outer-box-shadow" id="ref-for-box-shadow-outer-box-shadow">outer box-shadow</a> casts a shadow as if the border-box of the element were opaque. Assuming a spread distance of zero, its perimeter has the exact same size and shape as the border box. The shadow is drawn outside the border edge only: it is clipped inside the border-box of the element.</p> <p>An <a data-link-type="dfn" href="#box-shadow-inner-box-shadow" id="ref-for-box-shadow-inner-box-shadow">inner box-shadow</a> casts a shadow as if everything outside the padding edge were opaque. Assuming a spread distance of zero, its perimeter has the exact same size and shape as the padding box. The shadow is drawn inside the padding edge only: it is clipped outside the padding box of the element.</p> <p>If a <a data-link-type="dfn" href="#box-shadow-spread-distance" id="ref-for-box-shadow-spread-distance">spread distance</a> is defined, the shadow perimeter defined above is expanded outward (for <a data-link-type="dfn" href="#box-shadow-outer-box-shadow" id="ref-for-box-shadow-outer-box-shadow①">outer box-shadows</a>) or contracted inward (for <a data-link-type="dfn" href="#box-shadow-inner-box-shadow" id="ref-for-box-shadow-inner-box-shadow①">inner box-shadows</a>) by outsetting (insetting, for inner shadows) the shadow’s straight edges by the <span id="ref-for-box-shadow-spread-distance①">spread distance</span> (and flooring the resulting width/height at zero).</p> <div class="example" id="example-96985467"> <a class="self-link" href="#example-96985467"></a> Below are some examples of an orange box with a blue border being given a drop shadow. <table class="data" id="box-shadow-samples"> <tbody> <tr> <th scope="rowgroup"> <pre><code>border:5px solid blue; background-color:orange; width: 144px; height: 144px; </code></pre> <th> <pre><code>border-radius: 20px;</code></pre> <th> <pre><code>border-radius: 0;</code></pre> <tr> <th> <pre><code>box-shadow: rgba(0,0,0,0.4) 10px 10px; </code></pre> <td> <img alt="A round-cornered box with a light gray shadow the same shape as the border box offset 10px to the right and 10px down from directly underneath the box." height="175" src="images/shadow-outer-round.png" width="175"> <td> <img alt="A square-cornered box with a light gray shadow the same shape as the border box offset 10px to the right and 10px down from directly underneath the box." height="175" src="images/shadow-outer-square.png" width="175"> <tr> <th> <pre><code>box-shadow: rgba(0,0,0,0.4) 10px 10px inset </code></pre> <td> <img alt="A round-cornered box with a light gray shadow the inverse shape of the padding box filling 10px in from the top and left edges (just inside the border)." height="175" src="images/shadow-inner-round.png" width="175"> <td> <img alt="A square-cornered box with a light gray shadow the inverse shape of the padding box filling 10px in from the top and left edges (just inside the border)." height="175" src="images/shadow-inner-square.png" width="175"> <tr> <th> <pre><code>box-shadow: rgba(0,0,0,0.4) 10px 10px 0 10px /* spread */ </code></pre> <td> <img alt="A round-cornered box with a light gray shadow the same shape as the box but 20px taller and wider and offset so that the top and left edges of the shadow are directly underneath the top and left edges of the box." height="175" src="images/shadow-outer-spread-round.png" width="175"> <td> <img alt="A square-cornered box with a light gray shadow the same shape as the box but 20px taller and wider and offset so that the top and left edges of the shadow are directly underneath the top and left edges of the box." height="175" src="images/shadow-outer-spread-square.png" width="175"> <tr> <th> <pre><code>box-shadow: rgba(0,0,0,0.4) 10px 10px 0 10px /* spread */ inset </code></pre> <td> <img alt="A round-cornered box with a light gray shadow the inverse shape of the box but 20px narrower and shorter filling 20px in from the top and left edges (just inside the border)." height="175" src="images/shadow-inner-spread-round.png" width="175"> <td> <img alt="A round-cornered box with a light gray shadow the inverse shape of the box but 20px narrower and shorter filling 20px in from the top and left edges (just inside the border)." height="175" src="images/shadow-inner-spread-square.png" width="175"> </table> </div> <p>To preserve the box’s shape when spread is applied, the corner radii of the shadow are also increased (decreased, for inner shadows) from the border-box (padding-box) radii by adding (subtracting) the <a data-link-type="dfn" href="#box-shadow-spread-distance" id="ref-for-box-shadow-spread-distance②">spread distance</a> (and flooring at zero). However, in order to create a sharper corner when the border radius is small (and thus ensure continuity between round and sharp corners), when the <a data-link-type="dfn" href="#border-radii" id="ref-for-border-radii①">border radius</a> is less than the <span id="ref-for-box-shadow-spread-distance③">spread distance</span> (or in the case of an inner shadow, less than the absolute value of a negative <span id="ref-for-box-shadow-spread-distance④">spread distance</span>), the <span id="ref-for-box-shadow-spread-distance⑤">spread distance</span> is first multiplied by the proportion 1 + (<var>r</var>-1)<sup>3</sup>, where <var>r</var> is the ratio of the border radius to the <span id="ref-for-box-shadow-spread-distance⑥">spread distance</span>, in calculating the corner radii of the spread shadow shape. For example, if the border radius is 10px and the <span id="ref-for-box-shadow-spread-distance⑦">spread distance</span> is 20px (<var>r</var> = .5), the corner radius of the shadow shape will be 10px + 20px × (1 + (.5 - 1)<sup>3</sup>) = 27.5px rather than 30px. This adjustment is applied independently to the radii in each dimension.</p> <p>The <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image⑦">border-image</a> does not affect the shape of the box-shadow.</p> <h4 class="heading settled" data-level="6.1.2" id="shadow-blur"><span class="secno">6.1.2. </span><span class="content"> Blurring Shadow Edges</span><a class="self-link" href="#shadow-blur"></a></h4> <p>A non-zero <a data-link-type="dfn" href="#box-shadow-blur-radius" id="ref-for-box-shadow-blur-radius">blur radius</a> indicates that the resulting shadow should be blurred, such as by a Gaussian filter. The exact algorithm is not defined; however the resulting shadow must approximate (with each pixel being within 5% of its expected value) the image that would be generated by applying to the shadow a Gaussian blur with a standard deviation equal to half the blur radius.</p> <p class="note" role="note"><span class="marker">Note:</span> This means for a long, straight shadow edge, the blur radius will create a visibly apparent color transition approximately the twice length of the blur radius that is perpendicular to and centered on the shadow’s edge, and that ranges from almost the full shadow color at the endpoint inside the shadow to almost fully transparent at the endpoint outside it.</p> <h4 class="heading settled" data-level="6.1.3" id="shadow-layers"><span class="secno">6.1.3. </span><span class="content"> Layering, Layout, and Other Details</span><a class="self-link" href="#shadow-layers"></a></h4> <p>The shadow effects are applied front-to-back: the first shadow is on top and the others are layered behind. Shadows do not influence layout and may overlap (or be overlapped by) other boxes and text or their shadows. In terms of stacking contexts and the painting order, the <a data-link-type="dfn" href="#box-shadow-outer-box-shadow" id="ref-for-box-shadow-outer-box-shadow②">outer box-shadows</a> of an element are drawn immediately below the background of that element, and the <a data-link-type="dfn" href="#box-shadow-inner-box-shadow" id="ref-for-box-shadow-inner-box-shadow②">inner shadows</a> of an element are drawn immediately above the background of that element (below the borders and border image, if any).</p> <p>Unless otherwise specified, drop shadows are only applied to the <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-4/#principal-box" id="ref-for-principal-box">principal box</a>. If the affected box has multiple fragments, the shadows are applied as specified in <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break" id="ref-for-propdef-box-decoration-break③">box-decoration-break</a>.</p> <p>Shadows are <a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#ink-overflow" id="ref-for-ink-overflow①">ink overflow</a>; they do not trigger scrolling or increase the size of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollable-overflow-region" id="ref-for-scrollable-overflow-region②">scrollable overflow area</a>.</p> <p>Outer shadows have no effect on internal table elements in the collapsing border model. If a shadow is defined for single border edge in the collapsing border model that has multiple border thicknesses (e.g. an outer shadow on a table where one row has thicker borders than the others, or an inner shadow on a rowspanning table cell that adjoins cells with different border thicknesses), the exact position and rendering of its shadows are undefined</p> <h2 class="heading settled" data-level="7" id="levels"><span class="secno">7. </span><span class="content"> Levels</span><a class="self-link" href="#levels"></a></h2> <p><em>This section is informative.</em> CSS has different levels of features, each a subset of the other. (See <a data-link-type="biblio" href="#biblio-css-2017" title="CSS Snapshot 2017">[CSS-2017]</a> for a full explanation.) The lists below describe which features from this specification are in each level.</p> <h3 class="heading settled" data-level="7.1" id="level-1"><span class="secno">7.1. </span><span class="content"> Level 1</span><a class="self-link" href="#level-1"></a></h3> <ul> <li><a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color⑧">background-color</a> <li><a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image⑦">background-image</a> only one image (no layers) <li><a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat⑦">background-repeat</a>: only <a class="css" data-link-type="maybe" href="#valdef-background-repeat-repeat" id="ref-for-valdef-background-repeat-repeat①">repeat</a> | <a class="css" data-link-type="maybe" href="#valdef-background-repeat-repeat-x" id="ref-for-valdef-background-repeat-repeat-x">repeat-x</a> | <a class="css" data-link-type="maybe" href="#valdef-background-repeat-repeat-y" id="ref-for-valdef-background-repeat-repeat-y①">repeat-y</a> | <a class="css" data-link-type="maybe" href="#valdef-background-repeat-no-repeat" id="ref-for-valdef-background-repeat-no-repeat②">no-repeat</a> <li><a class="property css" data-link-type="property" href="#propdef-background-attachment" id="ref-for-propdef-background-attachment④">background-attachment</a>: only <a class="css" data-link-type="maybe" href="#valdef-background-attachment-scroll" id="ref-for-valdef-background-attachment-scroll①">scroll</a> | <a class="css" data-link-type="maybe" href="#valdef-background-attachment-fixed" id="ref-for-valdef-background-attachment-fixed⑥">fixed</a> <li><a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position①⓪">background-position</a>: only one or two values allowed <li><a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background③">background</a> shorthand: only color, image, repeat, attachment and position <li><a class="property css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color⑦">border-color</a> properties <li><a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style①⓪">border-style</a> properties <li><a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width①⓪">border-width</a> properties <li><a class="property css" data-link-type="property" href="#propdef-border-top" id="ref-for-propdef-border-top">border-top</a>, <a class="property css" data-link-type="property" href="#propdef-border-bottom" id="ref-for-propdef-border-bottom">border-bottom</a>, <a class="property css" data-link-type="property" href="#propdef-border-right" id="ref-for-propdef-border-right">border-right</a>, <a class="property css" data-link-type="property" href="#propdef-border-left" id="ref-for-propdef-border-left③">border-left</a>, and <a class="property css" data-link-type="property" href="#propdef-border" id="ref-for-propdef-border⑨">border</a> shorthands </ul> <h3 class="heading settled" data-level="7.2" id="level-2"><span class="secno">7.2. </span><span class="content"> Level 2</span><a class="self-link" href="#level-2"></a></h3> <ul> <li><a class="property css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color⑨">background-color</a> <li><a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image⑧">background-image</a>: only one image (no layers) <li><a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat⑧">background-repeat</a>: only <a class="css" data-link-type="maybe" href="#valdef-background-repeat-repeat" id="ref-for-valdef-background-repeat-repeat②">repeat</a> | <a class="css" data-link-type="maybe" href="#valdef-background-repeat-repeat-x" id="ref-for-valdef-background-repeat-repeat-x①">repeat-x</a> | <a class="css" data-link-type="maybe" href="#valdef-background-repeat-repeat-y" id="ref-for-valdef-background-repeat-repeat-y②">repeat-y</a> | <a class="css" data-link-type="maybe" href="#valdef-background-repeat-no-repeat" id="ref-for-valdef-background-repeat-no-repeat③">no-repeat</a> <li><a class="property css" data-link-type="property" href="#propdef-background-attachment" id="ref-for-propdef-background-attachment⑤">background-attachment</a>: only <a class="css" data-link-type="maybe" href="#valdef-background-attachment-scroll" id="ref-for-valdef-background-attachment-scroll②">scroll</a> | <a class="css" data-link-type="maybe" href="#valdef-background-attachment-fixed" id="ref-for-valdef-background-attachment-fixed⑦">fixed</a> <li><a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position①①">background-position</a>: only one or two values allowed <li><a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background④">background</a>: only color, image, repeat, attachment and position <li><a class="property css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color⑧">border-color</a> properties <li><a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style①①">border-style</a> properties <li><a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width①①">border-width</a> properties <li><a class="property css" data-link-type="property" href="#propdef-border-top" id="ref-for-propdef-border-top①">border-top</a>, <a class="property css" data-link-type="property" href="#propdef-border-bottom" id="ref-for-propdef-border-bottom①">border-bottom</a>, <a class="property css" data-link-type="property" href="#propdef-border-right" id="ref-for-propdef-border-right①">border-right</a>, <a class="property css" data-link-type="property" href="#propdef-border-left" id="ref-for-propdef-border-left④">border-left</a>, and <a class="property css" data-link-type="property" href="#propdef-border" id="ref-for-propdef-border①⓪">border</a> shorthands </ul> <h3 class="heading settled" data-level="7.3" id="level-3"><span class="secno">7.3. </span><span class="content"> Level 3</span><a class="self-link" href="#level-3"></a></h3> <ul> <li>All features described in the CSS Backgrounds and Borders Module Level 3 </ul> <h2 class="heading settled" data-level="8" id="changes"><span class="secno">8. </span><span class="content"> Changes</span><a class="self-link" href="#changes"></a></h2> <h3 class="heading settled" data-level="8.1" id="changes-2023-02"><span class="secno">8.1. </span><span class="content"> Changes since the 14 February 2023 Candidate Recommendation Snapshot</span><a class="self-link" href="#changes-2023-02"></a></h3> <ul> <li>Defined serialization of <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position①②">background-position</a> in <a href="#bg-position-serialization">§ 2.6.1 Serialization of background-position values</a>. (<a href="https://github.com/w3c/csswg-drafts/issues/2274">Issue 2274</a>) <li>Reverted <a href="#bg-color-move">change moving &lt;color> to the front of &lt;final-bg-layer></a> in the <a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background⑤">background</a> shorthand. (<a href="https://github.com/w3c/csswg-drafts/issues/8496">Issue 8496</a>) <li>Specified <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width" id="ref-for-snap-a-length-as-a-border-width①">rounding of border widths</a> to device pixels. (<a href="https://github.com/w3c/csswg-drafts/issues/7434">Issue 7434</a>) <li>Specified interaction of <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius⑧">border-radius</a> and per-axis <a class="property css" data-link-type="property">overflow</a> longhands. (<a href="https://github.com/w3c/csswg-drafts/issues/5210">Issue 5210</a>) <li>Fixed an error in the Computed Value line of <a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image⑨">background-image</a>. (<a href="https://github.com/w3c/csswg-drafts/issues/8604">Issue 8604</a>) <li>Removed the &lt;box> definition (replacing it with a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-box-4/#typedef-visual-box" id="ref-for-typedef-visual-box⑦">&lt;visual-box></a> reference), as the Box Module now defines these terms. <li>Aligned property definition tables with the latest expectations to include “Animation Type” and “Logical Property Group”. <li>Streamlined property grammar definitions using the latest <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#css-value-definition-syntax" id="ref-for-css-value-definition-syntax">value definition syntax</a>. <li>Fixed the definition for where box shadows apply. (<a href="https://github.com/w3c/csswg-drafts/issues/9286">Issue 9286</a>) </ul> <h3 class="heading settled" data-level="8.2" id="changes-2020-12"><span class="secno">8.2. </span><span class="content"> Changes since the 22 December 2020 Candidate Recommendation Snapshot</span><a class="self-link" href="#changes-2020-12"></a></h3> <ul> <li>Clarified that the rule about not propagating backgrounds from the root when it doesn’t generate boxes only applies to <a class="css" data-link-type="propdesc">display: none</a>, not <span class="css">display: contents</span>. (<a href="https://github.com/w3c/csswg-drafts/issues/3779">Issue 3779</a>) <li>Precisely defined the size of <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width①②">border-width</a> <a class="css" data-link-type="maybe" href="#valdef-line-width-thin" id="ref-for-valdef-line-width-thin">thin</a>, <a class="css" data-link-type="maybe" href="#valdef-line-width-medium" id="ref-for-valdef-line-width-medium①">medium</a>, and <a class="css" data-link-type="maybe" href="#valdef-line-width-thick" id="ref-for-valdef-line-width-thick">thick</a>. (<a href="https://github.com/w3c/csswg-drafts/issues/7254">Issue 7254</a>) <li>Minor editorial improvements. </ul> <h3 class="heading settled" data-level="8.3" id="changes-2017-10"><span class="secno">8.3. </span><span class="content"> Changes since the 17 October 2017 Candidate Recommendation</span><a class="self-link" href="#changes-2017-10"></a></h3> <ul> <li> Inverted order of <a class="production css" data-link-type="type" href="#typedef-shadow" id="ref-for-typedef-shadow④">&lt;shadow></a> grammar to match browser serialization and <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-text-decor-4/#propdef-text-shadow" id="ref-for-propdef-text-shadow">text-shadow</a>/<a class="css" data-link-type="maybe" href="https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-drop-shadow" id="ref-for-funcdef-filter-drop-shadow">drop-shadow()</a>. (<a href="https://github.com/w3c/csswg-drafts/issues/2305">Issue 2305</a>) <blockquote> <pre><a class="production" data-link-type="type" href="#typedef-shadow" id="ref-for-typedef-shadow⑤">&lt;shadow></a> = <del>inset</del><ins><a class="production" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color⑦">&lt;color></a></ins>? &amp;&amp; <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value①①">&lt;length></a>{2,4} &amp;&amp; <del><a class="production" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color⑧">&lt;color></a></del><ins>inset</ins>?</pre> </blockquote> <li> Spread radius adjustment is only applied to shadows and margins where the radius of curvature grows, rather than shrinks. (<a href="https://github.com/w3c/csswg-drafts/issues/1900">Issue 1900</a>) <blockquote> To preserve the box’s shape when spread is applied, the corner radii of the shadow are also increased (decreased, for inner shadows) from the border-box radii by adding (subtracting) the <a data-link-type="dfn" href="#box-shadow-spread-distance" id="ref-for-box-shadow-spread-distance⑧">spread distance</a> (and flooring at zero). However, in order to create a sharper corner when the border radius is small <ins>(and thus ensure continuity between round and sharp corners)</ins> , when the <a data-link-type="dfn" href="#border-radii" id="ref-for-border-radii②">border radius</a> is less than the <span id="ref-for-box-shadow-spread-distance⑨">spread distance</span> <ins>(or in the case of an inner shadow, less than the absolute value of a negative <a data-link-type="dfn" href="#box-shadow-spread-distance" id="ref-for-box-shadow-spread-distance①⓪">spread distance</a>)</ins> , the <span id="ref-for-box-shadow-spread-distance①①">spread distance</span> is multiplied by the proportion 1 + (<var>r</var>-1)<sup>3</sup>, where <var>r</var> is the ratio of the border radius to the <span id="ref-for-box-shadow-spread-distance①②">spread distance</span>, in calculating the corner radii of the spread shadow shape. </blockquote> <li> Clarified that an omitted <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color⑨">&lt;color></a> in a <a class="production css" data-link-type="type" href="#typedef-shadow" id="ref-for-typedef-shadow⑥">&lt;shadow></a> defaults to <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor" id="ref-for-valdef-color-currentcolor②">currentColor</a>, not some mysterious unnamed value with the same behavior. (<a href="https://github.com/w3c/csswg-drafts/issues/2766">2766</a>) <blockquote> If the color is absent, <ins>it defaults to <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor" id="ref-for-valdef-color-currentcolor③">currentColor</a></ins> <del>the used color is taken from the <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-color-4/#propdef-color" id="ref-for-propdef-color②">color</a> property.</del> </blockquote> <li> Cleaned up and regularized “Animation type” and “Computed value” lines in the property definition tables. <li> Changed syntax to use the new <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#css-bracketed-range-notation" id="ref-for-css-bracketed-range-notation">CSS bracketed range notation</a> to reflect the prose restrictions on negative values, and corrected a few grammar definition errors introduced in the previous publication. <li> Minor editorial improvements. </ul> <h3 class="heading settled" data-level="8.4" id="changes-2014-09"><span class="secno">8.4. </span><span class="content"> Changes since the 9 September 2014 Candidate Recommendation</span><a class="self-link" href="#changes-2014-09"></a></h3> <p>The following (non-trivial) changes were made to this specification since the <a href="https://www.w3.org/TR/2014/CR-css3-background-20140909/">9 September 2014 Candidate Recommendation</a>:</p> <ul> <li>Added missing definition of <a class="css" data-link-type="propdesc" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow⑤">box-shadow: none</a>. (Apparently this was obvious enough that nobody noticed it was missing until now.) <li id="bg-color-move"><a class="self-link" href="#bg-color-move"></a>Moved <a class="production css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color①⓪">&lt;'background-color'></a> component of <a class="production css" data-link-type="type" href="#typedef-final-bg-layer" id="ref-for-typedef-final-bg-layer②">&lt;final-bg-layer></a> to the front for serialization because some authors seem to expect this even though it makes less sense? <li>Dropped effect of <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius⑨">border-radius</a> from collapsed-borders tables. <li>Renamed <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#typedef-position" id="ref-for-typedef-position②">&lt;position></a> back to <a class="production css" data-link-type="type" href="#typedef-bg-position" id="ref-for-typedef-bg-position⑥">&lt;bg-position></a> since other properties will be eliding the three-value syntax. </ul> <h3 class="heading settled" data-level="8.5" id="changes-2014-02"><span class="secno">8.5. </span><span class="content"> Changes since the 4 February 2014 Last Call Working Draft</span><a class="self-link" href="#changes-2014-02"></a></h3> <p>The following (non-trivial) changes were made to this specification since the <a href="https://www.w3.org/TR/2014/WD-css3-background-20140204/">4 February 2014 Last Call Working Draft</a>:</p> <ul> <li>Fixed spread radius and margin radius calculations to only apply adjustment factor when spread/margin is larger than border radius. <li>Defined handling of canvas background when root element has <a class="css" data-link-type="propdesc">display: none</a>. </ul> <p>A full <a href="https://drafts.csswg.org/css-backgrounds-3/issues-lc-2014">Disposition of Comments</a> is available.</p> <h3 class="heading settled" data-level="8.6" id="changes-2012-07"><span class="secno">8.6. </span><span class="content"> Changes since the 24 July 2012 Candidate Recommendation</span><a class="self-link" href="#changes-2012-07"></a></h3> <p>The following (non-trivial) changes were made to this specification since the <a href="https://www.w3.org/TR/2012/CR-css3-background-20120724/">24 July 2012 Candidate Recommendation</a>:</p> <ul> <li>Allow <a class="production css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip①⓪">&lt;'background-clip'></a> and <a class="production css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin⑦">&lt;'background-origin'></a> to be separated by other component values in the <a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background⑥">background</a> shorthand, since this is what is implemented. <li>Allow <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-color-5/#typedef-color" id="ref-for-typedef-color①⓪">&lt;color></a> and <a class="css" data-link-type="maybe" href="#shadow-inset" id="ref-for-shadow-inset④">inset</a> to be interleaved in any order in <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow⑥">box-shadow</a>, since they are not ambiguous and CSS generally allows variant ordering where not ambiguous. <li>Define gradually increasing corner radius formula for <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow⑦">box-shadow</a> spread curvature to create continuity between sharp corners (<a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius①⓪">border-radius</a> = 0) and curved corners (<span class="property" id="ref-for-propdef-border-radius①①">border-radius</span> > <var>spread distance</var>). This also gives better results for all intermediate states. <li>Add definition for how the margin edge is curved in response to border-radius. (This is relevant for <a data-link-type="biblio" href="#biblio-css-shapes" title="CSS Shapes Module Level 1">[CSS-SHAPES]</a>, but does not change conformance to CSS Backgrounds and Borders Level 3.) <li>Removed <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break" id="ref-for-propdef-box-decoration-break④">box-decoration-break</a>; it is now part of <a data-link-type="biblio" href="#biblio-css-break-3" title="CSS Fragmentation Module Level 3">[CSS-BREAK-3]</a>. <li>Tighten up the definition of spread for <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow⑧">box-shadow</a>. <li>Clarify that a <a class="property css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style①②">border-style</a> of <a class="css" data-link-type="maybe" href="#valdef-line-style-none" id="ref-for-valdef-line-style-none③">none</a> also implies an initial <a class="property css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width①③">border-image-width</a> of zero (since <span class="property" id="ref-for-propdef-border-image-width①④">border-image-width</span> is initially set to the computed <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width①③">border-width</a>, which in this case is zero). <li>Clarified how <a class="css" data-link-type="propdesc" href="#propdef-background-attachment" id="ref-for-propdef-background-attachment⑥">background-attachment: local</a> is affected by scrolling. <li>Simplified computed value of <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position①③">background-position</a> to clarify that all <span class="property" id="ref-for-propdef-background-position①④">background-position</span> values are interpolable. <li>Added “Animation Type” values to each property definition table. </ul> <h3 class="heading settled" data-level="8.7" id="changes-2012-04"><span class="secno">8.7. </span><span class="content"> Changes since the 17 April 2012 Candidate Recommendation</span><a class="self-link" href="#changes-2012-04"></a></h3> <p>The following (non-editorial) changes were made to this specification since the <a href="https://www.w3.org/TR/2012/CR-css3-background-20120417/">17 April 2012 Candidate Recommendation</a>:</p> <ul> <li>Fix error in computed value of <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position①⑤">background-position</a>: the computed value is a list of positions. <li>Add a note pointing out that when <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius①②">border-radius</a> reduces the interactive area, the width/height of the box might need to be increased. </ul> <h3 class="heading settled" data-level="8.8" id="changes-2012LC"><span class="secno">8.8. </span><span class="content"> Changes since the 14 February 2012 “Last Call” Working Draft</span><a class="self-link" href="#changes-2012LC"></a></h3> <p>The following (non-editorial) changes were made to this specification since the <a href="https://www.w3.org/TR/2012/WD-css3-background-20120214/">14 February 2012 “Last Call” Working Draft</a>:</p> <p>These changes were in response to comments received during the review period. For details, see the full <a href="https://drafts.csswg.org/css-backgrounds-3/issues-lc-2012">Disposition of Comments.</a></p> <ul> <li><a href="#placement">Section 2.1</a>: Defined which properties from this module apply to the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-3/#sel-first-line" id="ref-for-sel-first-line⑤">::first-line</a> and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/selectors-3/#first-letter0" id="ref-for-first-letter0①">::first-letter</a> pseudo-elements. <li><a href="#background-repeat">Section 3.4</a>: Fixed the incorrect definition of the computed value of <a class="property css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat⑨">background-repeat</a>. The value is always a pair of keywords, never a single keyword. <li><a href="#background-image">Section 3.10</a>: Added the missing <a class="property css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image①⓪">background-image</a> to the list of properties that the <a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background⑦">background</a> property reset. <li><a href="#border-width">Section 4.3</a>: Added that negative lengths are invalid on <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width①④">border-width</a>. <li><a href="#border-radius">Section 5.1</a>: Added that negative lengths are invalid on <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius①③">border-radius</a>. <li><a href="#border-image-tables">Section 6.8</a>: Added a section about the effect of <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image⑧">border-image</a> on tables with collapsed borders and added that the rendering will be defined later. </ul> <h3 class="heading settled" data-level="8.9" id="changes-2011"><span class="secno">8.9. </span><span class="content"> Changes Since the 15 February 2011 Candidate Recommendation</span><a class="self-link" href="#changes-2011"></a></h3> <p>The following changes were made to this specification since the <a href="https://www.w3.org/TR/2011/CR-css3-background-20110215/">15 February 2011 Candidate Recommendation</a>:</p> <ul> <li> <a href="#background-size">Section 3.9</a>: Defined what happens if <a class="property css" data-link-type="property" href="#propdef-background-size" id="ref-for-propdef-background-size⑥">background-size</a> has two <a class="css" data-link-type="maybe" href="#valdef-background-size-auto" id="ref-for-valdef-background-size-auto⑤">auto</a> values and the image is missing a natural size. <blockquote> If both values are <a class="css" data-link-type="maybe" href="#valdef-background-size-auto" id="ref-for-valdef-background-size-auto⑥">auto</a> then the natural width and/or height of the image should be used, if any <ins>, the missing dimension (if any) behaving as ‘auto’ as described above</ins> . </blockquote> <li> <a href="#corner-transitions">Section 5.4</a>: Made center of <a href="#corner-transitions">color and style transitions</a> undefined (within certain limits) on corner joins, since previous definition was wrong. <blockquote> <del>The center of color and style transitions between adjoining borders is at the point on the curve that is at an angle that is proportional to the ratio of the border widths. For example, if the top and right border widths are equal, that point is at a 45° angle from the horizontal, and if the top is twice the width of the right the point is at a 30° angle from the horizontal. The line demarcating this transition is drawn between the point at that angle on the outer arc and the point at that angle on the inner arc.</del> <ins>If one of these borders is zero-width, then the other border takes up the entire transitional area. Otherwise, the center of color and style transitions between adjoining borders must be proportional to the ratio of the border widths such that a function of its location is continuous with respect to this ratio. However it is not defined what these transitions look like or how “proportional” maps to a point on the curve.</ins> </blockquote> <li> <a href="#border-image-slice">Section 6.2</a>: Defined <a href="#border-image-slice">slicing of border images</a> that must be sized first to determine slice positions. Added: <blockquote> <ins>If the image must be sized to determine the slices (for example, for SVG images with no natural size), then it is sized as for an auto-sized background, using the border image area as the default object size in place of the background positioning area.</ins> </blockquote> <li> <a href="#misc">Section 7.1</a> Optionally added bidi-imposed breaks to the types of breaks affected by <a class="property css" data-link-type="property" href="https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break" id="ref-for-propdef-box-decoration-break⑤">box-decoration-break</a>. Added: <blockquote> <ins>UAs may also apply ‘box-decoration-break’ to control rendering at bidi-imposed breaks, i.e. when bidi reordering causes an inline to split into non-contiguous fragments. Otherwise such breaks are always handled as ‘slice’.</ins> </blockquote> <li> <a href="#box-shadow">Section 7.2</a>: Defined the default color of <a class="property css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow⑨">box-shadow</a>. <blockquote> The color is the color of the shadow. <ins>If the color is absent, the used color is taken from the ‘color’ property.</ins> </blockquote> <li> <a href="#background-position">Section 3.6</a>: Clarified computed value of <a class="property css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position①⑥">background-position</a>. <blockquote> <del>If one or two values are specified, for a &lt;length> the absolute length, otherwise a percentage. If three or four values are specified, two pairs of a keyword plus a length or percentage.</del> <ins>Two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#length-value" id="ref-for-length-value①②">&lt;length></a>), otherwise as a percentage.</ins> </blockquote> Changed <del>Equivalent</del> to <ins>Computes</ins> in definition of keywords. <li>Added "Animation Type" line to property definition tables. <li> <a href="#background-position">Section 3.6</a>: Renamed &lt;bg-position> production to <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#typedef-position" id="ref-for-typedef-position③">&lt;position></a> for easier re-use in other specifications and recast the grammar to be more verbose but easier to understand. <blockquote> <pre class="prod"><del>bg-position</del><ins>&lt;position></ins> = [ [ <ins>left <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⓪">|</a> center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤①">|</a> right <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤②">|</a></ins> top <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤③">|</a> bottom <ins><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤④">|</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage②①">&lt;length-percentage></a></ins> ] <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑤">|</a> [ left <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑥">|</a> center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑦">|</a> right <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑧">|</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage②②">&lt;length-percentage></a> ] [ top <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑨">|</a> center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥⓪">|</a> bottom <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥①">|</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage②③">&lt;length-percentage></a> ]<del><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt①③">?</a></del> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥②">|</a> [ center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥③">|</a> [ left <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥④">|</a> right ] <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage②④">&lt;length-percentage></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt①④">?</a> ] <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-all" id="ref-for-comb-all④">&amp;&amp;</a> [ center <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥⑤">|</a> [ top <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥⑥">|</a> bottom ] <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage②⑤">&lt;length-percentage></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt①⑤">?</a> ] ] </pre> </blockquote> <li> <a href="#border-image-repeat">Section 6.5</a>: Added <a class="css" data-link-type="maybe" href="#valdef-border-image-repeat-space" id="ref-for-valdef-border-image-repeat-space③">space</a> keyword to <a class="property css" data-link-type="property" href="#propdef-border-image-repeat" id="ref-for-propdef-border-image-repeat④">border-image-repeat</a> property value table: it was included in the list of allowable values, but not in the syntax definition. <blockquote> [ stretch | repeat | round <ins>| space</ins> ]{1,2} </blockquote> <li> <a href="#corner-overlap">Section 5.5</a>: Corrected math error in border-radius example. <blockquote> The height (2.5em) is enough for the specified radii (0.5em plus <del>2.5em</del> <ins>2.0em</ins> ). </blockquote> <li><a href="#border-width">Section 4.3</a>: Marked Percentages field as N/A for <a class="property css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width①⑤">border-width</a>, since they are not included in the property. </ul> <h3 class="heading settled" data-level="8.10" id="changes-2009"><span class="secno">8.10. </span><span class="content"> Changes Since the 17 December 2009 Candidate Recommendation</span><a class="self-link" href="#changes-2009"></a></h3> <p>The following changes were made to this specification since the <a href="https://www.w3.org/TR/2009/CR-css3-background-20091217/">17 December 2009 Candidate Recommendation</a>:</p> <ul> <li>Addition of <a class="css" data-link-type="maybe" href="#valdef-background-clip-content-box" id="ref-for-valdef-background-clip-content-box">content-box</a> value of <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip①①">background-clip</a>. <li>Change to the <a class="property css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background⑧">background</a> shorthand syntax for <a class="property css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip①②">background-clip</a> and <a class="property css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin⑧">background-origin</a>. <li>Removal of recommendation to use gradients for color transitions when <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius①④">border-radius</a> produces a curve. <li>(Re)Addition of <span class="css">box-shadow</span> property. <li>Various clarifications. </ul> <h2 class="heading settled" data-level="9" id="acknowledgments"><span class="secno">9. </span><span class="content">Acknowledgments</span><a class="self-link" href="#acknowledgments"></a></h2> <p>Tapas Roy was editor of the Border Module, before it was merged with the Background Module.</p> <p>Thanks to Ben Stucki for defining what happens with rounded corners if the two adjoining borders are of unequal thickness or one of them is zero; to Arjan Eising and Anne van Kesteren for the <a class="property css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius①⑤">border-radius</a> syntax; to Zack Weinberg for the corner transition regions diagram; and to Lea Verou, plinss, and dbaron for the corner radius adjustment formula (with special thanks to Lea for the live demo).</p> <p>A set of properties for border images was initially proposed by <i>fantasai</i>. The current simplification (one image cut into nine parts) is due to Ian Hickson. (Though the original idea seems to originate with some anonymous Microsoft engineers.)</p> <p>Finally, special thanks go to Brad Kemper for his feedback and suggestions for many of the features in the draft, for drawing all the box-shadow examples, and for proposing some <a href="http://www.bradclicks.com/cssplay/border-image/Thinking_Outside_The_Box.html">radical changes</a> to the <a class="property css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image⑨">border-image</a> property that solved a number of problems with the earlier definition.</p> <h2 class="heading settled" data-level="10" id="privacy"><span class="secno">10. </span><span class="content">Privacy Considerations</span><a class="self-link" href="#privacy"></a></h2> <p>This specification introduces no new privacy considerations.</p> <h2 class="heading settled" data-level="11" id="security"><span class="secno">11. </span><span class="content">Security Considerations</span><a class="self-link" href="#security"></a></h2> <p>This specification introduces no new security considerations.</p> </main> <h2 class="no-ref no-num heading settled" id="w3c-conformance"><span class="content"> Conformance</span><a class="self-link" href="#w3c-conformance"></a></h2> <h3 class="no-ref heading settled" id="w3c-conventions"><span class="content"> Document conventions</span><a class="self-link" href="#w3c-conventions"></a></h3> <p>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. </p> <p>All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes. <a data-link-type="biblio" href="#biblio-rfc2119" title="Key words for use in RFCs to Indicate Requirement Levels">[RFC2119]</a></p> <p>Examples in this specification are introduced with the words “for example” or are set apart from the normative text with <code>class="example"</code>, like this: </p> <div class="example" id="w3c-example"> <a class="self-link" href="#w3c-example"></a> <p>This is an example of an informative example.</p> </div> <p>Informative notes begin with the word “Note” and are set apart from the normative text with <code>class="note"</code>, like this: </p> <p class="note" role="note">Note, this is an informative note.</p> <p>Advisements are normative sections styled to evoke special attention and are set apart from other normative text with <code>&lt;strong class="advisement"></code>, like this: <strong class="advisement"> UAs MUST provide an accessible alternative. </strong></p> <details class="wpt-tests-block" dir="ltr" lang="en" open> <summary>Tests</summary> <p>Tests relating to the content of this specification may be documented in “Tests” blocks like this one. Any such block is non-normative.</p> <ul class="wpt-tests-list"></ul> <hr> </details> <h3 class="no-ref heading settled" id="w3c-conformance-classes"><span class="content"> Conformance classes</span><a class="self-link" href="#w3c-conformance-classes"></a></h3> <p>Conformance to this specification is defined for three conformance classes: </p> <dl> <dt>style sheet <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#style-sheet">CSS style sheet</a>. <dt>renderer <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a> that interprets the semantics of a style sheet and renders documents that use them. <dt>authoring tool <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a> that writes a style sheet. </dl> <p>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. </p> <p>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.) </p> <p>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. </p> <h3 class="no-ref heading settled" id="w3c-partial"><span class="content"> Partial implementations</span><a class="self-link" href="#w3c-partial"></a></h3> <p>So that authors can exploit the forward-compatible parsing rules to assign fallback values, CSS renderers <strong>must</strong> treat as invalid (and <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignore as appropriate</a>) any at-rules, properties, property values, keywords, and other syntactic constructs for which they have no usable level of support. In particular, user agents <strong>must not</strong> selectively ignore unsupported component 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.</p> <h4 class="heading settled" id="w3c-conform-future-proofing"><span class="content"> Implementations of Unstable and Proprietary Features</span><a class="self-link" href="#w3c-conform-future-proofing"></a></h4> <p>To avoid clashes with future stable CSS features, the CSSWG recommends <a href="http://www.w3.org/TR/CSS/#future-proofing">following best practices</a> for the implementation of <a href="http://www.w3.org/TR/CSS/#unstable">unstable</a> features and <a href="http://www.w3.org/TR/CSS/#proprietary-extension">proprietary extensions</a> to CSS. </p> <h3 class="no-ref heading settled" id="w3c-testing"><span class="content"> Non-experimental implementations</span><a class="self-link" href="#w3c-testing"></a></h3> <p>Once a specification reaches the Candidate Recommendation stage, non-experimental implementations are possible, and implementors should release an unprefixed implementation of any CR-level feature they can demonstrate to be correctly implemented according to spec. </p> <p>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. </p> <p>Further information on submitting testcases and implementation reports can be found from on the CSS Working Group’s website at <a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>. Questions should be directed to the <a href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a> mailing list.</p> <script src="https://www.w3.org/scripts/TR/2021/fixup.js"></script> <h2 class="no-num no-ref heading settled" id="index"><span class="content">Index</span><a class="self-link" href="#index"></a></h2> <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="#index-defined-here"></a></h3> <ul class="index"> <li><a href="#shadow-offset-x">1st &lt;length></a><span>, in § 6.1</span> <li><a href="#shadow-offset-y">2nd &lt;length></a><span>, in § 6.1</span> <li><a href="#shadow-blur-radius">3rd &lt;length [0,∞]></a><span>, in § 6.1</span> <li><a href="#shadow-spread-distance">4th &lt;length></a><span>, in § 6.1</span> <li><a href="#typedef-attachment">&lt;attachment></a><span>, in § 2.5</span> <li> auto <ul> <li><a href="#valdef-background-size-auto">value for background-size</a><span>, in § 2.9</span> <li><a href="#valdef-border-image-width-auto">value for border-image-width</a><span>, in § 5.3</span> </ul> <li><a href="#propdef-background">background</a><span>, in § 2.10</span> <li><a href="#propdef-background-attachment">background-attachment</a><span>, in § 2.5</span> <li><a href="#propdef-background-clip">background-clip</a><span>, in § 2.7</span> <li><a href="#background-color-layer">background color</a><span>, in § 2.2</span> <li><a href="#propdef-background-color">background-color</a><span>, in § 2.2</span> <li><a href="#background-images">background image</a><span>, in § 2.3</span> <li><a href="#propdef-background-image">background-image</a><span>, in § 2.3</span> <li><a href="#background-image-layer">background image layer</a><span>, in § 2.1</span> <li><a href="#propdef-background-origin">background-origin</a><span>, in § 2.8</span> <li><a href="#background-painting-area">background painting area</a><span>, in § 2.7</span> <li><a href="#propdef-background-position">background-position</a><span>, in § 2.6</span> <li><a href="#background-positioning-area">background positioning area</a><span>, in § 2.8</span> <li><a href="#propdef-background-repeat">background-repeat</a><span>, in § 2.4</span> <li><a href="#propdef-background-size">background-size</a><span>, in § 2.9</span> <li><a href="#typedef-bg-image">&lt;bg-image></a><span>, in § 2.3</span> <li><a href="#typedef-bg-layer">&lt;bg-layer></a><span>, in § 2.10</span> <li><a href="#typedef-bg-position">&lt;bg-position></a><span>, in § 2.6</span> <li><a href="#typedef-bg-size">&lt;bg-size></a><span>, in § 2.9</span> <li><a href="#box-shadow-blur-radius">blur radius</a><span>, in § 6.1</span> <li><a href="#propdef-border">border</a><span>, in § 3.4</span> <li><a href="#propdef-border-bottom">border-bottom</a><span>, in § 3.4</span> <li><a href="#propdef-border-bottom-color">border-bottom-color</a><span>, in § 3.1</span> <li><a href="#propdef-border-bottom-left-radius">border-bottom-left-radius</a><span>, in § 4.1</span> <li><a href="#propdef-border-bottom-right-radius">border-bottom-right-radius</a><span>, in § 4.1</span> <li><a href="#propdef-border-bottom-style">border-bottom-style</a><span>, in § 3.2</span> <li><a href="#propdef-border-bottom-width">border-bottom-width</a><span>, in § 3.3</span> <li> border-box <ul> <li><a href="#valdef-background-clip-border-box">value for background-clip</a><span>, in § 2.7</span> <li><a href="#valdef-background-origin-border-box">value for background-origin</a><span>, in § 2.8</span> </ul> <li><a href="#border-color-dfn">border color</a><span>, in § 3.1</span> <li><a href="#propdef-border-color">border-color</a><span>, in § 3.1</span> <li><a href="#border-image-dfn">border image</a><span>, in § 5.1</span> <li><a href="#propdef-border-image">border-image</a><span>, in § 5.7</span> <li><a href="#border-image-area">border image area</a><span>, in § 5.3</span> <li><a href="#propdef-border-image-outset">border-image-outset</a><span>, in § 5.4</span> <li><a href="#border-image-region">border image region</a><span>, in § 5.3</span> <li><a href="#propdef-border-image-repeat">border-image-repeat</a><span>, in § 5.5</span> <li><a href="#propdef-border-image-slice">border-image-slice</a><span>, in § 5.2</span> <li><a href="#propdef-border-image-source">border-image-source</a><span>, in § 5.1</span> <li><a href="#propdef-border-image-width">border-image-width</a><span>, in § 5.3</span> <li><a href="#propdef-border-left">border-left</a><span>, in § 3.4</span> <li><a href="#propdef-border-left-color">border-left-color</a><span>, in § 3.1</span> <li><a href="#propdef-border-left-style">border-left-style</a><span>, in § 3.2</span> <li><a href="#propdef-border-left-width">border-left-width</a><span>, in § 3.3</span> <li><a href="#border-radii">border radius</a><span>, in § 4.1</span> <li><a href="#propdef-border-radius">border-radius</a><span>, in § 4.1</span> <li><a href="#propdef-border-right">border-right</a><span>, in § 3.4</span> <li><a href="#propdef-border-right-color">border-right-color</a><span>, in § 3.1</span> <li><a href="#propdef-border-right-style">border-right-style</a><span>, in § 3.2</span> <li><a href="#propdef-border-right-width">border-right-width</a><span>, in § 3.3</span> <li><a href="#border-style-dfn">border style</a><span>, in § 3.2</span> <li><a href="#propdef-border-style">border-style</a><span>, in § 3.2</span> <li><a href="#propdef-border-top">border-top</a><span>, in § 3.4</span> <li><a href="#propdef-border-top-color">border-top-color</a><span>, in § 3.1</span> <li><a href="#propdef-border-top-left-radius">border-top-left-radius</a><span>, in § 4.1</span> <li><a href="#propdef-border-top-right-radius">border-top-right-radius</a><span>, in § 4.1</span> <li><a href="#propdef-border-top-style">border-top-style</a><span>, in § 3.2</span> <li><a href="#propdef-border-top-width">border-top-width</a><span>, in § 3.3</span> <li><a href="#border-width-dfn">border width</a><span>, in § 3.3</span> <li><a href="#propdef-border-width">border-width</a><span>, in § 3.3</span> <li><a href="#valdef-background-position-bottom">bottom</a><span>, in § 2.6</span> <li><a href="#propdef-box-shadow">box-shadow</a><span>, in § 6.1</span> <li><a href="#canvas-background">canvas background</a><span>, in § 2.11.1</span> <li><a href="#canvas-surface">canvas surface</a><span>, in § 2.11</span> <li><a href="#valdef-background-position-center">center</a><span>, in § 2.6</span> <li><a href="#shadow-color">&lt;color></a><span>, in § 6.1</span> <li><a href="#valdef-background-size-contain">contain</a><span>, in § 2.9</span> <li> content-box <ul> <li><a href="#valdef-background-clip-content-box">value for background-clip</a><span>, in § 2.7</span> <li><a href="#valdef-background-origin-content-box">value for background-origin</a><span>, in § 2.8</span> </ul> <li><a href="#valdef-background-size-cover">cover</a><span>, in § 2.9</span> <li><a href="#valdef-line-style-dashed">dashed</a><span>, in § 3.2</span> <li><a href="#valdef-line-style-dotted">dotted</a><span>, in § 3.2</span> <li><a href="#valdef-line-style-double">double</a><span>, in § 3.2</span> <li><a href="#border-image-slice-fill">fill</a><span>, in § 5.2</span> <li><a href="#typedef-final-bg-layer">&lt;final-bg-layer></a><span>, in § 2.10</span> <li><a href="#valdef-background-attachment-fixed">fixed</a><span>, in § 2.5</span> <li><a href="#valdef-line-style-groove">groove</a><span>, in § 3.2</span> <li><a href="#valdef-line-style-hidden">hidden</a><span>, in § 3.2</span> <li><a href="#box-shadow-horizontal-offset">horizontal offset</a><span>, in § 6.1</span> <li><a href="#background-images">image</a><span>, in § 2.3</span> <li><a href="#box-shadow-inner-box-shadow">inner box-shadow</a><span>, in § 6.1</span> <li><a href="#box-shadow-inner-box-shadow">inner shadow</a><span>, in § 6.1</span> <li> inset <ul> <li><a href="#valdef-line-style-inset">value for &lt;line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border</a><span>, in § 3.2</span> <li><a href="#shadow-inset">value for box-shadow</a><span>, in § 6.1</span> </ul> <li><a href="#background-image-layer">layer</a><span>, in § 2.1</span> <li><a href="#valdef-background-position-left">left</a><span>, in § 2.6</span> <li><a href="#valdef-background-position-length">&lt;length></a><span>, in § 2.6</span> <li> &lt;length-percentage [0,∞]> <ul> <li><a href="#valdef-background-size-length-percentage-0">value for background-size</a><span>, in § 2.9</span> <li><a href="#valdef-border-image-width-length-percentage-0">value for border-image-width</a><span>, in § 5.3</span> </ul> <li><a href="#typedef-line-style">&lt;line-style></a><span>, in § 3.2</span> <li><a href="#typedef-line-width">&lt;line-width></a><span>, in § 3.3</span> <li><a href="#valdef-background-attachment-local">local</a><span>, in § 2.5</span> <li><a href="#valdef-line-width-medium">medium</a><span>, in § 3.3</span> <li> none <ul> <li><a href="#valdef-line-style-none">value for &lt;line-style>, border-style, border-top-style, border-left-style, border-bottom-style, border-right-style, border</a><span>, in § 3.2</span> <li><a href="#valdef-background-image-none">value for background-image</a><span>, in § 2.3</span> <li><a href="#box-shadow-none">value for box-shadow</a><span>, in § 6.1</span> </ul> <li><a href="#valdef-background-repeat-no-repeat">no-repeat</a><span>, in § 2.4</span> <li> &lt;number [0,∞]> <ul> <li><a href="#valdef-border-image-slice-number-0">value for border-image-slice</a><span>, in § 5.2</span> <li><a href="#valdef-border-image-width-number-0">value for border-image-width</a><span>, in § 5.3</span> </ul> <li><a href="#box-shadow-outer-box-shadow">outer box-shadow</a><span>, in § 6.1</span> <li><a href="#box-shadow-outer-box-shadow">outer shadow</a><span>, in § 6.1</span> <li><a href="#valdef-line-style-outset">outset</a><span>, in § 3.2</span> <li> padding-box <ul> <li><a href="#valdef-background-clip-padding-box">value for background-clip</a><span>, in § 2.7</span> <li><a href="#valdef-background-origin-padding-box">value for background-origin</a><span>, in § 2.8</span> </ul> <li><a href="#valdef-background-position-percentage">&lt;percentage></a><span>, in § 2.6</span> <li><a href="#valdef-border-image-slice-percentage-0">&lt;percentage [0,∞]></a><span>, in § 5.2</span> <li><a href="#border-image-region">region</a><span>, in § 5.3</span> <li> repeat <ul> <li><a href="#valdef-background-repeat-repeat">value for background-repeat</a><span>, in § 2.4</span> <li><a href="#valdef-border-image-repeat-repeat">value for border-image-repeat</a><span>, in § 5.5</span> </ul> <li><a href="#typedef-repeat-style">&lt;repeat-style></a><span>, in § 2.4</span> <li><a href="#valdef-background-repeat-repeat-x">repeat-x</a><span>, in § 2.4</span> <li><a href="#valdef-background-repeat-repeat-y">repeat-y</a><span>, in § 2.4</span> <li><a href="#valdef-line-style-ridge">ridge</a><span>, in § 3.2</span> <li><a href="#valdef-background-position-right">right</a><span>, in § 2.6</span> <li> round <ul> <li><a href="#valdef-background-repeat-round">value for background-repeat</a><span>, in § 2.4</span> <li><a href="#valdef-border-image-repeat-round">value for border-image-repeat</a><span>, in § 5.5</span> </ul> <li><a href="#valdef-background-attachment-scroll">scroll</a><span>, in § 2.5</span> <li><a href="#typedef-shadow">&lt;shadow></a><span>, in § 6.1</span> <li><a href="#valdef-line-style-solid">solid</a><span>, in § 3.2</span> <li> space <ul> <li><a href="#valdef-background-repeat-space">value for background-repeat</a><span>, in § 2.4</span> <li><a href="#valdef-border-image-repeat-space">value for border-image-repeat</a><span>, in § 5.5</span> </ul> <li><a href="#box-shadow-spread-distance">spread distance</a><span>, in § 6.1</span> <li><a href="#valdef-border-image-repeat-stretch">stretch</a><span>, in § 5.5</span> <li><a href="#valdef-line-width-thick">thick</a><span>, in § 3.3</span> <li><a href="#valdef-line-width-thin">thin</a><span>, in § 3.3</span> <li><a href="#valdef-background-position-top">top</a><span>, in § 2.6</span> <li><a href="#box-shadow-vertical-offset">vertical offset</a><span>, in § 6.1</span> </ul> <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3> <ul class="index"> <li> <a data-link-type="biblio">[CSS-2023]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="9bc55323">UA</span> </ul> <li> <a data-link-type="biblio">[CSS-BOX-4]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="43562076">&lt;visual-box></span> <li><span class="dfn-paneled" id="6b6458ae">border</span> <li><span class="dfn-paneled" id="4a57c942">border area</span> <li><span class="dfn-paneled" id="f598742d">border box</span> <li><span class="dfn-paneled" id="b7e0bc03">border edge</span> <li><span class="dfn-paneled" id="40873652">content area</span> <li><span class="dfn-paneled" id="46c6a718">content box</span> <li><span class="dfn-paneled" id="ff0f7174">content edge</span> <li><span class="dfn-paneled" id="cecbe9cd">margin</span> <li><span class="dfn-paneled" id="62dcf741">margin area</span> <li><span class="dfn-paneled" id="7fb2c729">margin edge</span> <li><span class="dfn-paneled" id="c1b73c63">padding</span> <li><span class="dfn-paneled" id="e511deaa">padding area</span> <li><span class="dfn-paneled" id="5c21b8af">padding box</span> <li><span class="dfn-paneled" id="f9a50f04">padding edge</span> </ul> <li> <a data-link-type="biblio">[CSS-BREAK-4]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="c3bd6e1d">box fragment</span> <li><span class="dfn-paneled" id="0cab481d">box-decoration-break</span> </ul> <li> <a data-link-type="biblio">[CSS-CASCADE-5]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="9cd25054">computed value</span> <li><span class="dfn-paneled" id="9ea6bed2">initial value</span> <li><span class="dfn-paneled" id="8ca0c013">shorthand property</span> <li><span class="dfn-paneled" id="1cf918c1">specified value</span> <li><span class="dfn-paneled" id="a4eb3c57">used value</span> </ul> <li> <a data-link-type="biblio">[CSS-COLOR-4]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="73ea1d43">color</span> <li><span class="dfn-paneled" id="cad72d2f">currentcolor</span> <li><span class="dfn-paneled" id="313bb160">transparent</span> </ul> <li> <a data-link-type="biblio">[CSS-COLOR-5]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="1548047a">&lt;color></span> </ul> <li> <a data-link-type="biblio">[CSS-CONTAIN-2]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="1a3880ba">containment</span> </ul> <li> <a data-link-type="biblio">[CSS-CONTENT-3]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="2467179e">content</span> </ul> <li> <a data-link-type="biblio">[CSS-DISPLAY-4]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="8d0ede2c">initial containing block</span> <li><span class="dfn-paneled" id="80eb9508">principal box</span> <li><span class="dfn-paneled" id="a8485ff4">replaced element</span> <li><span class="dfn-paneled" id="cc682c89">root element</span> </ul> <li> <a data-link-type="biblio">[CSS-IMAGES-3]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="998b9e6e">&lt;image></span> <li><span class="dfn-paneled" id="2bceefb2">default object size</span> <li><span class="dfn-paneled" id="23012643">natural aspect ratio</span> <li><span class="dfn-paneled" id="d3936525">natural dimension</span> <li><span class="dfn-paneled" id="75563977">natural height</span> <li><span class="dfn-paneled" id="ed3eb665">natural size</span> <li><span class="dfn-paneled" id="917fcd3c">natural width</span> <li><span class="dfn-paneled" id="30868380">specified size</span> </ul> <li> <a data-link-type="biblio">[CSS-OVERFLOW-3]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="0812e39f">ink overflow</span> <li><span class="dfn-paneled" id="86923d07">scroll container</span> <li><span class="dfn-paneled" id="99a64665">scrollable overflow area</span> </ul> <li> <a data-link-type="biblio">[CSS-RUBY-1]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="2ebd6278">ruby annotation container</span> <li><span class="dfn-paneled" id="03f3b228">ruby base container</span> </ul> <li> <a data-link-type="biblio">[CSS-SIZING-3]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="68019d7a">height</span> </ul> <li> <a data-link-type="biblio">[CSS-TABLES-3]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="911f092b">border-collapse</span> </ul> <li> <a data-link-type="biblio">[CSS-TEXT-DECOR-4]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="f338a9f0">text-shadow</span> </ul> <li> <a data-link-type="biblio">[CSS-VALUES-3]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="264558d6">&lt;position></span> </ul> <li> <a data-link-type="biblio">[CSS-VALUES-4]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="68487d22">#</span> <li><span class="dfn-paneled" id="f0809abc">&amp;&amp;</span> <li><span class="dfn-paneled" id="9f9120ff">,</span> <li><span class="dfn-paneled" id="18222566">&lt;length-percentage></span> <li><span class="dfn-paneled" id="fb030e6c">&lt;length></span> <li><span class="dfn-paneled" id="16310992">&lt;number></span> <li><span class="dfn-paneled" id="15f5b381">&lt;percentage></span> <li><span class="dfn-paneled" id="537cf076">?</span> <li><span class="dfn-paneled" id="ad47bbf0">CSS bracketed range notation</span> <li><span class="dfn-paneled" id="358fd6ff">CSS-wide keywords</span> <li><span class="dfn-paneled" id="4a142214">snap as a border width</span> <li><span class="dfn-paneled" id="67123f65">value definition syntax</span> <li><span class="dfn-paneled" id="938ba280">{A,B}</span> <li><span class="dfn-paneled" id="b0d8ebd9">{A}</span> <li><span class="dfn-paneled" id="6ec67710">|</span> <li><span class="dfn-paneled" id="8a82fda1">||</span> </ul> <li> <a data-link-type="biblio">[CSS22]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="8b60933e">collapse</span> </ul> <li> <a data-link-type="biblio">[FILTER-EFFECTS-1]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="b3d55a17">drop-shadow()</span> </ul> <li> <a data-link-type="biblio">[HTML]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="2f0492ac">body</span> </ul> <li> <a data-link-type="biblio">[MEDIAQUERIES-5]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="758665a5">paged media</span> </ul> <li> <a data-link-type="biblio">[SELECTORS-3]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="114843be">::first-letter</span> <li><span class="dfn-paneled" id="bf9e2a5d">::first-line</span> </ul> <li> <a data-link-type="biblio">[SELECTORS-4]</a> defines the following terms: <ul> <li><span class="dfn-paneled" id="9bfc28f6">pseudo-element</span> </ul> </ul> <h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2> <h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3> <dl> <dt id="biblio-css-2023">[CSS-2023] <dd>Chris Lilley; et al. <a href="https://drafts.csswg.org/css-2023/"><cite>CSS Snapshot 2023</cite></a>. URL: <a href="https://drafts.csswg.org/css-2023/">https://drafts.csswg.org/css-2023/</a> <dt id="biblio-css-box-3">[CSS-BOX-3] <dd>Elika Etemad. <a href="https://drafts.csswg.org/css-box-3/"><cite>CSS Box Model Module Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/css-box-3/">https://drafts.csswg.org/css-box-3/</a> <dt id="biblio-css-box-4">[CSS-BOX-4] <dd>Elika Etemad. <a href="https://drafts.csswg.org/css-box-4/"><cite>CSS Box Model Module Level 4</cite></a>. URL: <a href="https://drafts.csswg.org/css-box-4/">https://drafts.csswg.org/css-box-4/</a> <dt id="biblio-css-break-4">[CSS-BREAK-4] <dd>Rossen Atanassov; Elika Etemad. <a href="https://drafts.csswg.org/css-break-4/"><cite>CSS Fragmentation Module Level 4</cite></a>. URL: <a href="https://drafts.csswg.org/css-break-4/">https://drafts.csswg.org/css-break-4/</a> <dt id="biblio-css-cascade-5">[CSS-CASCADE-5] <dd>Elika Etemad; Miriam Suzanne; Tab Atkins Jr.. <a href="https://drafts.csswg.org/css-cascade-5/"><cite>CSS Cascading and Inheritance Level 5</cite></a>. URL: <a href="https://drafts.csswg.org/css-cascade-5/">https://drafts.csswg.org/css-cascade-5/</a> <dt id="biblio-css-color-4">[CSS-COLOR-4] <dd>Chris Lilley; Tab Atkins Jr.; Lea Verou. <a href="https://drafts.csswg.org/css-color-4/"><cite>CSS Color Module Level 4</cite></a>. URL: <a href="https://drafts.csswg.org/css-color-4/">https://drafts.csswg.org/css-color-4/</a> <dt id="biblio-css-color-5">[CSS-COLOR-5] <dd>Chris Lilley; et al. <a href="https://drafts.csswg.org/css-color-5/"><cite>CSS Color Module Level 5</cite></a>. URL: <a href="https://drafts.csswg.org/css-color-5/">https://drafts.csswg.org/css-color-5/</a> <dt id="biblio-css-display-4">[CSS-DISPLAY-4] <dd><a href="https://drafts.csswg.org/css-display-4/"><cite>CSS Display Module Level 4</cite></a>. Editor's Draft. URL: <a href="https://drafts.csswg.org/css-display-4/">https://drafts.csswg.org/css-display-4/</a> <dt id="biblio-css-images-3">[CSS-IMAGES-3] <dd>Tab Atkins Jr.; Elika Etemad; Lea Verou. <a href="https://drafts.csswg.org/css-images-3/"><cite>CSS Images Module Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/css-images-3/">https://drafts.csswg.org/css-images-3/</a> <dt id="biblio-css-overflow-3">[CSS-OVERFLOW-3] <dd>Elika Etemad; Florian Rivoal. <a href="https://drafts.csswg.org/css-overflow-3/"><cite>CSS Overflow Module Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/css-overflow-3/">https://drafts.csswg.org/css-overflow-3/</a> <dt id="biblio-css-ruby-1">[CSS-RUBY-1] <dd>Elika Etemad; et al. <a href="https://drafts.csswg.org/css-ruby-1/"><cite>CSS Ruby Annotation Layout Module Level 1</cite></a>. URL: <a href="https://drafts.csswg.org/css-ruby-1/">https://drafts.csswg.org/css-ruby-1/</a> <dt id="biblio-css-tables-3">[CSS-TABLES-3] <dd>François Remy; Greg Whitworth; David Baron. <a href="https://drafts.csswg.org/css-tables-3/"><cite>CSS Table Module Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/css-tables-3/">https://drafts.csswg.org/css-tables-3/</a> <dt id="biblio-css-text-decor-4">[CSS-TEXT-DECOR-4] <dd>Elika Etemad; Koji Ishii. <a href="https://drafts.csswg.org/css-text-decor-4/"><cite>CSS Text Decoration Module Level 4</cite></a>. URL: <a href="https://drafts.csswg.org/css-text-decor-4/">https://drafts.csswg.org/css-text-decor-4/</a> <dt id="biblio-css-values-3">[CSS-VALUES-3] <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://drafts.csswg.org/css-values-3/"><cite>CSS Values and Units Module Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/css-values-3/">https://drafts.csswg.org/css-values-3/</a> <dt id="biblio-css-values-4">[CSS-VALUES-4] <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://drafts.csswg.org/css-values-4/"><cite>CSS Values and Units Module Level 4</cite></a>. URL: <a href="https://drafts.csswg.org/css-values-4/">https://drafts.csswg.org/css-values-4/</a> <dt id="biblio-css2">[CSS2] <dd>Bert Bos; et al. <a href="https://drafts.csswg.org/css2/"><cite>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</cite></a>. URL: <a href="https://drafts.csswg.org/css2/">https://drafts.csswg.org/css2/</a> <dt id="biblio-css22">[CSS22] <dd>Bert Bos. <a href="https://drafts.csswg.org/css2/"><cite>Cascading Style Sheets Level 2 Revision 2 (CSS 2.2) Specification</cite></a>. URL: <a href="https://drafts.csswg.org/css2/">https://drafts.csswg.org/css2/</a> <dt id="biblio-filter-effects-1">[FILTER-EFFECTS-1] <dd>Dirk Schulze; Dean Jackson. <a href="https://drafts.fxtf.org/filter-effects-1/"><cite>Filter Effects Module Level 1</cite></a>. URL: <a href="https://drafts.fxtf.org/filter-effects-1/">https://drafts.fxtf.org/filter-effects-1/</a> <dt id="biblio-html">[HTML] <dd>Anne van Kesteren; et al. <a href="https://html.spec.whatwg.org/multipage/"><cite>HTML Standard</cite></a>. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a> <dt id="biblio-mediaqueries-5">[MEDIAQUERIES-5] <dd>Dean Jackson; et al. <a href="https://drafts.csswg.org/mediaqueries-5/"><cite>Media Queries Level 5</cite></a>. URL: <a href="https://drafts.csswg.org/mediaqueries-5/">https://drafts.csswg.org/mediaqueries-5/</a> <dt id="biblio-rfc2119">[RFC2119] <dd>S. Bradner. <a href="https://datatracker.ietf.org/doc/html/rfc2119"><cite>Key words for use in RFCs to Indicate Requirement Levels</cite></a>. March 1997. Best Current Practice. URL: <a href="https://datatracker.ietf.org/doc/html/rfc2119">https://datatracker.ietf.org/doc/html/rfc2119</a> <dt id="biblio-selectors-3">[SELECTORS-3] <dd>Tantek Çelik; et al. <a href="https://drafts.csswg.org/selectors-3/"><cite>Selectors Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/selectors-3/">https://drafts.csswg.org/selectors-3/</a> <dt id="biblio-selectors-4">[SELECTORS-4] <dd>Elika Etemad; Tab Atkins Jr.. <a href="https://drafts.csswg.org/selectors/"><cite>Selectors Level 4</cite></a>. URL: <a href="https://drafts.csswg.org/selectors/">https://drafts.csswg.org/selectors/</a> </dl> <h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3> <dl> <dt id="biblio-css-2017">[CSS-2017] <dd>Tab Atkins Jr.; Elika Etemad; Florian Rivoal. <a href="https://drafts.csswg.org/css-2017/"><cite>CSS Snapshot 2017</cite></a>. URL: <a href="https://drafts.csswg.org/css-2017/">https://drafts.csswg.org/css-2017/</a> <dt id="biblio-css-break-3">[CSS-BREAK-3] <dd>Rossen Atanassov; Elika Etemad. <a href="https://drafts.csswg.org/css-break/"><cite>CSS Fragmentation Module Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/css-break/">https://drafts.csswg.org/css-break/</a> <dt id="biblio-css-contain-1">[CSS-CONTAIN-1] <dd>Tab Atkins Jr.; Florian Rivoal. <a href="https://drafts.csswg.org/css-contain-1/"><cite>CSS Containment Module Level 1</cite></a>. URL: <a href="https://drafts.csswg.org/css-contain-1/">https://drafts.csswg.org/css-contain-1/</a> <dt id="biblio-css-contain-2">[CSS-CONTAIN-2] <dd>Tab Atkins Jr.; Florian Rivoal; Vladimir Levin. <a href="https://drafts.csswg.org/css-contain-2/"><cite>CSS Containment Module Level 2</cite></a>. URL: <a href="https://drafts.csswg.org/css-contain-2/">https://drafts.csswg.org/css-contain-2/</a> <dt id="biblio-css-content-3">[CSS-CONTENT-3] <dd>Elika Etemad; Dave Cramer. <a href="https://drafts.csswg.org/css-content-3/"><cite>CSS Generated Content Module Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/css-content-3/">https://drafts.csswg.org/css-content-3/</a> <dt id="biblio-css-shapes">[CSS-SHAPES] <dd>Rossen Atanassov; Alan Stearns. <a href="https://drafts.csswg.org/css-shapes/"><cite>CSS Shapes Module Level 1</cite></a>. URL: <a href="https://drafts.csswg.org/css-shapes/">https://drafts.csswg.org/css-shapes/</a> <dt id="biblio-css-sizing-3">[CSS-SIZING-3] <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://drafts.csswg.org/css-sizing-3/"><cite>CSS Box Sizing Module Level 3</cite></a>. URL: <a href="https://drafts.csswg.org/css-sizing-3/">https://drafts.csswg.org/css-sizing-3/</a> <dt id="biblio-wcag20">[WCAG20] <dd>Ben Caldwell; et al. <a href="https://www.w3.org/TR/WCAG20/"><cite>Web Content Accessibility Guidelines (WCAG) 2.0</cite></a>. 11 December 2008. REC. URL: <a href="https://www.w3.org/TR/WCAG20/">https://www.w3.org/TR/WCAG20/</a> </dl> <h2 class="no-num no-ref heading settled" id="property-index"><span class="content">Property Index</span><a class="self-link" href="#property-index"></a></h2> <div class="big-element-wrapper"> <table class="index"> <thead> <tr> <th scope="col">Name <th scope="col">Value <th scope="col">Initial <th scope="col">Applies to <th scope="col">Inh. <th scope="col">%ages <th scope="col">Anim­ation type <th scope="col">Canonical order <th scope="col">Com­puted value <th scope="col">Logical property group <tbody> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background" id="ref-for-propdef-background⑨">background</a> <td>&lt;bg-layer>#? , &lt;final-bg-layer> <td>see individual properties <td>all elements <td>no <td>see individual properties <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background-attachment" id="ref-for-propdef-background-attachment⑦">background-attachment</a> <td>&lt;attachment># <td>scroll <td>all elements <td>no <td>N/A <td>discrete <td>per grammar <td>list, each item the keyword as specified <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background-clip" id="ref-for-propdef-background-clip①③">background-clip</a> <td>&lt;visual-box># <td>border-box <td>all elements <td>no <td>N/A <td>repeatable list <td>per grammar <td>list, each item a keyword as specified <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background-color" id="ref-for-propdef-background-color①①">background-color</a> <td>&lt;color> <td>transparent <td>all elements <td>no <td>N/A <td>by computed value <td>per grammar <td>computed color <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background-image" id="ref-for-propdef-background-image①①">background-image</a> <td>&lt;bg-image># <td>none <td>all elements <td>no <td>N/A <td>discrete <td>per grammar <td>list, each item either an &lt;image> or the keyword none <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background-origin" id="ref-for-propdef-background-origin⑨">background-origin</a> <td>&lt;visual-box># <td>padding-box <td>all elements <td>no <td>N/A <td>repeatable list <td>per grammar <td>list, each item a keyword as specified <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background-position" id="ref-for-propdef-background-position①⑦">background-position</a> <td>&lt;bg-position># <td>0% 0% <td>all elements <td>no <td>refer to size of background positioning area minus size of background image; see text <td>repeatable list <td>per grammar <td>list, each item a pair of offsets (horizontal and vertical) from the top left origin each given as a computed &lt;length-percentage> value <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background-repeat" id="ref-for-propdef-background-repeat①⓪">background-repeat</a> <td>&lt;repeat-style># <td>repeat <td>all elements <td>no <td>N/A <td>discrete <td>per grammar <td>list, each item a pair of keywords, one per dimension <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-background-size" id="ref-for-propdef-background-size⑦">background-size</a> <td>&lt;bg-size># <td>auto <td>all elements <td>no <td>see text <td>repeatable list <td>per grammar <td>list, each item a pair of sizes (one per axis) each represented as either a keyword or a computed &lt;length-percentage> value <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border" id="ref-for-propdef-border①①">border</a> <td>&lt;line-width> || &lt;line-style> || &lt;color> <td>See individual properties <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-bottom" id="ref-for-propdef-border-bottom②">border-bottom</a> <td>&lt;line-width> || &lt;line-style> || &lt;color> <td>See individual properties <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-bottom-color" id="ref-for-propdef-border-bottom-color①">border-bottom-color</a> <td>&lt;color> <td>currentColor <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>by computed value <td>per grammar <td>computed color <td>border-color <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-bottom-left-radius" id="ref-for-propdef-border-bottom-left-radius">border-bottom-left-radius</a> <td>&lt;length-percentage [0,∞]>{1,2} <td>0 <td>all elements (but see prose) <td>no <td>Refer to corresponding dimension of the border box. <td>by computed value <td>per grammar <td>pair of computed &lt;length-percentage> values <td>border-radius <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-bottom-right-radius" id="ref-for-propdef-border-bottom-right-radius">border-bottom-right-radius</a> <td>&lt;length-percentage [0,∞]>{1,2} <td>0 <td>all elements (but see prose) <td>no <td>Refer to corresponding dimension of the border box. <td>by computed value <td>per grammar <td>pair of computed &lt;length-percentage> values <td>border-radius <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-bottom-style" id="ref-for-propdef-border-bottom-style①">border-bottom-style</a> <td>&lt;line-style> <td>none <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>discrete <td>per grammar <td>specified keyword <td>border-style <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-bottom-width" id="ref-for-propdef-border-bottom-width①">border-bottom-width</a> <td>&lt;line-width> <td>medium <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>by computed value <td>per grammar <td>absolute length, snapped as a border width; zero if the border style is none or hidden <td>border-width <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-color" id="ref-for-propdef-border-color⑨">border-color</a> <td>&lt;color>{1,4} <td>(see individual properties) <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-image" id="ref-for-propdef-border-image①⓪">border-image</a> <td>&lt;'border-image-source'> || &lt;'border-image-slice'> [ / &lt;'border-image-width'> | / &lt;'border-image-width'>? / &lt;'border-image-outset'> ]? || &lt;'border-image-repeat'> <td>See individual properties <td>See individual properties <td>no <td>N/A <td>See individual properties <td>per grammar <td>See individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-image-outset" id="ref-for-propdef-border-image-outset④">border-image-outset</a> <td>[ &lt;length [0,∞]> | &lt;number [0,∞]> ]{1,4} <td>0 <td>All elements, except internal table elements when border-collapse is collapse <td>no <td>N/A <td>by computed value <td>per grammar <td>four values, each a number or absolute length <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-image-repeat" id="ref-for-propdef-border-image-repeat⑤">border-image-repeat</a> <td>[ stretch | repeat | round | space ]{1,2} <td>stretch <td>All elements, except internal table elements when border-collapse is collapse <td>no <td>N/A <td>discrete <td>per grammar <td>two keywords, one per axis <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-image-slice" id="ref-for-propdef-border-image-slice⑧">border-image-slice</a> <td>[&lt;number [0,∞]> | &lt;percentage [0,∞]>]{1,4} &amp;&amp; fill? <td>100% <td>All elements, except internal table elements when border-collapse is collapse <td>no <td>refer to size of the border image <td>by computed value <td>per grammar <td>four values, each either a number or percentage; plus a fill keyword if specified <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-image-source" id="ref-for-propdef-border-image-source⑦">border-image-source</a> <td>none | &lt;image> <td>none <td>All elements, except internal table elements when border-collapse is collapse <td>no <td>N/A <td>discrete <td>per grammar <td>the keyword none or the computed &lt;image> <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-image-width" id="ref-for-propdef-border-image-width①⑤">border-image-width</a> <td>[ &lt;length-percentage [0,∞]> | &lt;number [0,∞]> | auto ]{1,4} <td>1 <td>All elements, except internal table elements when border-collapse is collapse <td>no <td>Relative to width/height of the border image area <td>by computed value <td>per grammar <td>four values, each either a number, the keyword auto, or a computed &lt;length-percentage> value <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-left" id="ref-for-propdef-border-left⑤">border-left</a> <td>&lt;line-width> || &lt;line-style> || &lt;color> <td>See individual properties <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-left-color" id="ref-for-propdef-border-left-color①">border-left-color</a> <td>&lt;color> <td>currentColor <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>by computed value <td>per grammar <td>computed color <td>border-color <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-left-style" id="ref-for-propdef-border-left-style①">border-left-style</a> <td>&lt;line-style> <td>none <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>discrete <td>per grammar <td>specified keyword <td>border-style <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-left-width" id="ref-for-propdef-border-left-width①">border-left-width</a> <td>&lt;line-width> <td>medium <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>by computed value <td>per grammar <td>absolute length, snapped as a border width; zero if the border style is none or hidden <td>border-width <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-radius" id="ref-for-propdef-border-radius①⑥">border-radius</a> <td>&lt;length-percentage [0,∞]>{1,4} [ / &lt;length-percentage [0,∞]>{1,4} ]? <td>see individual properties <td>all elements (but see prose) <td>no <td>Refer to corresponding dimension of the border box. <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-right" id="ref-for-propdef-border-right②">border-right</a> <td>&lt;line-width> || &lt;line-style> || &lt;color> <td>See individual properties <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-right-color" id="ref-for-propdef-border-right-color①">border-right-color</a> <td>&lt;color> <td>currentColor <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>by computed value <td>per grammar <td>computed color <td>border-color <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-right-style" id="ref-for-propdef-border-right-style①">border-right-style</a> <td>&lt;line-style> <td>none <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>discrete <td>per grammar <td>specified keyword <td>border-style <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-right-width" id="ref-for-propdef-border-right-width①">border-right-width</a> <td>&lt;line-width> <td>medium <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>by computed value <td>per grammar <td>absolute length, snapped as a border width; zero if the border style is none or hidden <td>border-width <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-style" id="ref-for-propdef-border-style①③">border-style</a> <td>&lt;line-style>{1,4} <td>(see individual properties) <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-top" id="ref-for-propdef-border-top②">border-top</a> <td>&lt;line-width> || &lt;line-style> || &lt;color> <td>See individual properties <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-top-color" id="ref-for-propdef-border-top-color①">border-top-color</a> <td>&lt;color> <td>currentColor <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>by computed value <td>per grammar <td>computed color <td>border-color <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-top-left-radius" id="ref-for-propdef-border-top-left-radius①">border-top-left-radius</a> <td>&lt;length-percentage [0,∞]>{1,2} <td>0 <td>all elements (but see prose) <td>no <td>Refer to corresponding dimension of the border box. <td>by computed value <td>per grammar <td>pair of computed &lt;length-percentage> values <td>border-radius <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-top-right-radius" id="ref-for-propdef-border-top-right-radius">border-top-right-radius</a> <td>&lt;length-percentage [0,∞]>{1,2} <td>0 <td>all elements (but see prose) <td>no <td>Refer to corresponding dimension of the border box. <td>by computed value <td>per grammar <td>pair of computed &lt;length-percentage> values <td>border-radius <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-top-style" id="ref-for-propdef-border-top-style①">border-top-style</a> <td>&lt;line-style> <td>none <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>discrete <td>per grammar <td>specified keyword <td>border-style <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-top-width" id="ref-for-propdef-border-top-width①">border-top-width</a> <td>&lt;line-width> <td>medium <td>all elements except ruby base containers and ruby annotation containers <td>no <td>N/A <td>by computed value <td>per grammar <td>absolute length, snapped as a border width; zero if the border style is none or hidden <td>border-width <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-border-width" id="ref-for-propdef-border-width①⑥">border-width</a> <td>&lt;line-width>{1,4} <td>(see individual properties) <td>all elements except ruby base containers and ruby annotation containers <td>no <td>see individual properties <td>see individual properties <td>per grammar <td>see individual properties <td> <tr> <th scope="row"><a class="css" data-link-type="property" href="#propdef-box-shadow" id="ref-for-propdef-box-shadow①⓪">box-shadow</a> <td>none | &lt;shadow># <td>none <td>all elements <td>no <td>N/A <td>by computed value, treating none as a zero-item list and appending blank shadows (transparent 0 0 0 0) with a corresponding inset keyword as needed to match the longer list if the shorter list is otherwise compatible with the longer one <td>per grammar <td>either the keyword none or a list, each item consisting of four absolute lengths plus a computed color and optionally also a inset keyword <td> </table> </div> <details class="mdn-anno unpositioned" data-anno-for="the-background-attachment"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment" title="The background-attachment CSS property sets whether a background image&apos;s position is fixed within the viewport, or scrolls with its containing block.">background-attachment</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>3.2+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="background-clip"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip" title="The background-clip CSS property sets whether an element&apos;s background extends underneath its border box, padding box, or content box.">background-clip</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>5+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android yes"><span>Firefox for Android</span><span>14+</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>5+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>4+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>11+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="background-color"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-color" title="The background-color CSS property sets the background color of an element.">background-color</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="background-image"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-image" title="The background-image CSS property sets one or more background images on an element.">background-image</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-background-origin"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-origin" title="The background-origin CSS property sets the background&apos;s origin: from the border start, inside the border, or inside the padding.">background-origin</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>3+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android yes"><span>Firefox for Android</span><span>14+</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>1+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>4+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>11+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="background-position"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-position" title="The background-position CSS property sets the initial position for each background image. The position is relative to the position layer set by background-origin.">background-position</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-background-repeat"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat" title="The background-repeat CSS property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.">background-repeat</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-background-size"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-size" title="The background-size CSS property sets the size of the element&apos;s background image. The image can be left to its natural size, stretched, or constrained to fit the available space.">background-size</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>5+</span></span><span class="chrome yes"><span>Chrome</span><span>3+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>4.2+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>2.2+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-background"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background" title="The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method. Component properties not set in the background shorthand property value declaration are set to their default values.">background</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>2+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="border-color"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-color" title="The border-bottom-color CSS property sets the color of an element&apos;s bottom border. It can also be set with the shorthand CSS properties border-color or border-bottom.">border-bottom-color</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-color" title="The border-color shorthand CSS property sets the color of an element&apos;s border.">border-color</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>4+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-color" title="The border-left-color CSS property sets the color of an element&apos;s left border. It can also be set with the shorthand CSS properties border-color or border-left.">border-left-color</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-color" title="The border-right-color CSS property sets the color of an element&apos;s right border. It can also be set with the shorthand CSS properties border-color or border-right.">border-right-color</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-color" title="The border-top-color CSS property sets the color of an element&apos;s top border. It can also be set with the shorthand CSS properties border-color or border-top.">border-top-color</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="border-radius"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius" title="The border-bottom-left-radius CSS property rounds the bottom-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner.">border-bottom-left-radius</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>5+</span></span><span class="chrome yes"><span>Chrome</span><span>4+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>4.2+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>11+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius" title="The border-bottom-right-radius CSS property rounds the bottom-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner.">border-bottom-right-radius</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>5+</span></span><span class="chrome yes"><span>Chrome</span><span>4+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>4.2+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>11+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius" title="The border-radius CSS property rounds the corners of an element&apos;s outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.">border-radius</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>5+</span></span><span class="chrome yes"><span>Chrome</span><span>4+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android yes"><span>Firefox for Android</span><span>4+</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>4.2+</span></span><span class="chrome_android yes"><span>Chrome for Android</span><span>18+</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>11+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="border-style"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-style" title="The border-bottom-style CSS property sets the line style of an element&apos;s bottom border.">border-bottom-style</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>9.2+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>5.5+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-style" title="The border-style shorthand CSS property sets the line style for all four sides of an element&apos;s border.">border-style</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>3+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>3+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-width"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width" title="The border-bottom-width CSS property sets the width of the bottom border of an element.">border-bottom-width</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>2.2+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-width" title="The border-left-width CSS property sets the width of the left border of an element.">border-left-width</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>2.2+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-width" title="The border-right-width CSS property sets the width of the right border of an element.">border-right-width</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>2.2+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-width" title="The border-top-width CSS property sets the width of the top border of an element.">border-top-width</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>2.2+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-width" title="The border-width shorthand CSS property sets the width of an element&apos;s border.">border-width</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>3+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>2+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>10.1+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="border-shorthands"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom" title="The border-bottom shorthand CSS property sets an element&apos;s bottom border. It sets the values of border-bottom-width, border-bottom-style and border-bottom-color.">border-bottom</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-left" title="The border-left shorthand CSS property sets all the properties of an element&apos;s left border.">border-left</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-right" title="The border-right shorthand CSS property sets all the properties of an element&apos;s right border.">border-right</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>9.2+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>5.5+</span></span> <hr> <span class="firefox_android yes"><span>Firefox for Android</span><span>14+</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-top" title="The border-top shorthand CSS property sets all the properties of an element&apos;s top border.">border-top</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-image-outset"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-outset" title="The border-image-outset CSS property sets the distance by which an element&apos;s border image is set out from its border box.">border-image-outset</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>15+</span></span><span class="safari yes"><span>Safari</span><span>6+</span></span><span class="chrome yes"><span>Chrome</span><span>15+</span></span> <hr> <span class="opera no"><span>Opera</span><span>?</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>11</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-image-repeat"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-repeat" title="The border-image-repeat CSS property defines how the edge regions and middle region of a source image are adjusted to fit the dimensions of an element&apos;s border image. The middle region can be displayed by using the keyword &quot;fill&quot; in the border-image-slice property.">border-image-repeat</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>15+</span></span><span class="safari yes"><span>Safari</span><span>6+</span></span><span class="chrome yes"><span>Chrome</span><span>15+</span></span> <hr> <span class="opera no"><span>Opera</span><span>?</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>11</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>9.3+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-image-slice"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice" title="The border-image-slice CSS property divides the image specified by border-image-source into regions. These regions form the components of an element&apos;s border image.">border-image-slice</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>15+</span></span><span class="safari yes"><span>Safari</span><span>6+</span></span><span class="chrome yes"><span>Chrome</span><span>15+</span></span> <hr> <span class="opera no"><span>Opera</span><span>?</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>11</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>4.4+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-image-source"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-source" title="The border-image-source CSS property sets the source image used to create an element&apos;s border image.">border-image-source</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>15+</span></span><span class="safari yes"><span>Safari</span><span>6+</span></span><span class="chrome yes"><span>Chrome</span><span>15+</span></span> <hr> <span class="opera no"><span>Opera</span><span>?</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>11</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-image-width"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-width" title="The border-image-width CSS property sets the width of an element&apos;s border image.">border-image-width</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>13+</span></span><span class="safari yes"><span>Safari</span><span>6+</span></span><span class="chrome yes"><span>Chrome</span><span>15+</span></span> <hr> <span class="opera no"><span>Opera</span><span>?</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>11</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android no"><span>Android WebView</span><span>?</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-image"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-image" title="The border-image CSS property draws an image around a given element. It replaces the element&apos;s regular border.">border-image</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>15+</span></span><span class="safari yes"><span>Safari</span><span>6+</span></span><span class="chrome yes"><span>Chrome</span><span>16+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>11+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>11</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>6+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>4.4+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>11+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-style"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-style" title="The border-left-style CSS property sets the line style of an element&apos;s left border.">border-left-style</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>9.2+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>5.5+</span></span> <hr> <span class="firefox_android yes"><span>Firefox for Android</span><span>14+</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>2.2+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-style" title="The border-right-style CSS property sets the line style of an element&apos;s right border.">border-right-style</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>9.2+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>5.5+</span></span> <hr> <span class="firefox_android yes"><span>Firefox for Android</span><span>14+</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-style" title="The border-top-style CSS property sets the line style of an element&apos;s top border.">border-top-style</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>9.2+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>5.5+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="the-border-radius"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius" title="The border-top-left-radius CSS property rounds the top-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner.">border-top-left-radius</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>5+</span></span><span class="chrome yes"><span>Chrome</span><span>4+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>4.2+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>11+</span></span> </div> </div> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius" title="The border-top-right-radius CSS property rounds the top-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner.">border-top-right-radius</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>5+</span></span><span class="chrome yes"><span>Chrome</span><span>4+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>4.2+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android yes"><span>Opera Mobile</span><span>11+</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="propdef-border"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border" title="The border shorthand CSS property sets an element&apos;s border. It sets the values of border-width, border-style, and border-color.">border</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios no"><span>iOS Safari</span><span>?</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="box-shadow"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow" title="The box-shadow CSS property adds shadow effects around an element&apos;s frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.">box-shadow</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>4+</span></span><span class="safari yes"><span>Safari</span><span>5.1+</span></span><span class="chrome yes"><span>Chrome</span><span>10+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>10.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>9+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>5+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>37+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <details class="mdn-anno unpositioned" data-anno-for="typedef-line-style"> <summary><b class="all-engines-flag" title="This feature is in all current engines.">✔</b><span>MDN</span></summary> <div class="feature"> <p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/line-style" title="The <line-style> enumerated value type represents keyword values that define the style of a line, or the lack of a line. The <line-style> keyword values are used in the following longhand and shorthand border and column properties:">line-style</a></p> <p class="all-engines-text">In all current engines.</p> <div class="support"> <span class="firefox yes"><span>Firefox</span><span>1+</span></span><span class="safari yes"><span>Safari</span><span>1+</span></span><span class="chrome yes"><span>Chrome</span><span>1+</span></span> <hr> <span class="opera yes"><span>Opera</span><span>3.5+</span></span><span class="edge_blink yes"><span>Edge</span><span>79+</span></span> <hr> <span class="edge yes"><span>Edge (Legacy)</span><span>12+</span></span><span class="ie yes"><span>IE</span><span>4+</span></span> <hr> <span class="firefox_android no"><span>Firefox for Android</span><span>?</span></span><span class="safari_ios yes"><span>iOS Safari</span><span>3+</span></span><span class="chrome_android no"><span>Chrome for Android</span><span>?</span></span><span class="webview_android yes"><span>Android WebView</span><span>3+</span></span><span class="samsunginternet_android no"><span>Samsung Internet</span><span>?</span></span><span class="opera_android no"><span>Opera Mobile</span><span>?</span></span> </div> </div> </details> <script>/* Boilerplate: script-dom-helper */ "use strict"; function query(sel) { return document.querySelector(sel); } function queryAll(sel) { return [...document.querySelectorAll(sel)]; } function iter(obj) { if(!obj) return []; var it = obj[Symbol.iterator]; if(it) return it; return Object.entries(obj); } function mk(tagname, attrs, ...children) { const el = document.createElement(tagname); for(const [k,v] of iter(attrs)) { if(k.slice(0,3) == "_on") { const eventName = k.slice(3); el.addEventListener(eventName, v); } else if(k[0] == "_") { // property, not attribute el[k.slice(1)] = v; } else { if(v === false || v == null) { continue; } else if(v === true) { el.setAttribute(k, ""); continue; } else { el.setAttribute(k, v); } } } append(el, children); return el; } /* Create shortcuts for every known HTML element */ [ "a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "head", "header", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "meta", "meter", "nav", "nobr", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "pre", "progress", "q", "s", "samp", "script", "section", "select", "small", "source", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "u", "ul", "var", "video", "wbr", "xmp", ].forEach(tagname=>{ mk[tagname] = (...args) => mk(tagname, ...args); }); function* nodesFromChildList(children) { for(const child of children.flat(Infinity)) { if(child instanceof Node) { yield child; } else { yield new Text(child); } } } function append(el, ...children) { for(const child of nodesFromChildList(children)) { if(el instanceof Node) el.appendChild(child); else el.push(child); } return el; } function insertAfter(el, ...children) { for(const child of nodesFromChildList(children)) { el.parentNode.insertBefore(child, el.nextSibling); } return el; } function clearContents(el) { el.innerHTML = ""; return el; } function parseHTML(markup) { if(markup.toLowerCase().trim().indexOf('<!doctype') === 0) { const doc = document.implementation.createHTMLDocument(""); doc.documentElement.innerHTML = markup; return doc; } else { const el = mk.template({}); el.innerHTML = markup; return el.content; } }</script> <script>/* Boilerplate: script-dfn-panel */ "use strict"; { let dfnPanelData = { "03f3b228": {"dfnID":"03f3b228","dfnText":"ruby base container","external":true,"refSections":[{"refs":[{"id":"ref-for-ruby-base-container-box"}],"title":"Unnumbered Section"},{"refs":[{"id":"ref-for-ruby-base-container-box\u2460"},{"id":"ref-for-ruby-base-container-box\u2461"}],"title":"3.1. \nLine Colors: the border-color properties"},{"refs":[{"id":"ref-for-ruby-base-container-box\u2462"},{"id":"ref-for-ruby-base-container-box\u2463"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-ruby-base-container-box\u2464"},{"id":"ref-for-ruby-base-container-box\u2465"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-ruby-base-container-box\u2466"},{"id":"ref-for-ruby-base-container-box\u2467"}],"title":"3.4. \nBorder Shorthand Properties"}],"url":"https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box"}, "0812e39f": {"dfnID":"0812e39f","dfnText":"ink overflow","external":true,"refSections":[{"refs":[{"id":"ref-for-ink-overflow"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"},{"refs":[{"id":"ref-for-ink-overflow\u2460"}],"title":"6.1.3. \nLayering, Layout, and Other Details"}],"url":"https://drafts.csswg.org/css-overflow-3/#ink-overflow"}, "0cab481d": {"dfnID":"0cab481d","dfnText":"box-decoration-break","external":true,"refSections":[{"refs":[{"id":"ref-for-propdef-box-decoration-break"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-propdef-box-decoration-break\u2460"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-propdef-box-decoration-break\u2461"}],"title":"6. Miscellaneous Effects"},{"refs":[{"id":"ref-for-propdef-box-decoration-break\u2462"}],"title":"6.1.3. \nLayering, Layout, and Other Details"},{"refs":[{"id":"ref-for-propdef-box-decoration-break\u2463"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-box-decoration-break\u2464"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break"}, "114843be": {"dfnID":"114843be","dfnText":"::first-letter","external":true,"refSections":[{"refs":[{"id":"ref-for-first-letter0"}],"title":"1.1. \nModule Interactions"},{"refs":[{"id":"ref-for-first-letter0\u2460"}],"title":"8.8. \nChanges since the 14 February 2012 \u201cLast Call\u201d Working Draft"}],"url":"https://drafts.csswg.org/selectors-3/#first-letter0"}, "1548047a": {"dfnID":"1548047a","dfnText":"<color>","external":true,"refSections":[{"refs":[{"id":"ref-for-typedef-color"}],"title":"2.2. \nBase Color: the background-color property"},{"refs":[{"id":"ref-for-typedef-color\u2460"},{"id":"ref-for-typedef-color\u2461"}],"title":"3.1. \nLine Colors: the border-color properties"},{"refs":[{"id":"ref-for-typedef-color\u2462"},{"id":"ref-for-typedef-color\u2463"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-typedef-color\u2464"},{"id":"ref-for-typedef-color\u2465"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-typedef-color\u2466"},{"id":"ref-for-typedef-color\u2467"},{"id":"ref-for-typedef-color\u2468"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"},{"refs":[{"id":"ref-for-typedef-color\u2460\u24ea"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-color-5/#typedef-color"}, "15f5b381": {"dfnID":"15f5b381","dfnText":"<percentage>","external":true,"refSections":[{"refs":[{"id":"ref-for-percentage-value"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-percentage-value\u2460"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-percentage-value\u2461"},{"id":"ref-for-percentage-value\u2462"}],"title":"5.2. \nImage Slicing: the border-image-slice property"}],"url":"https://drafts.csswg.org/css-values-4/#percentage-value"}, "16310992": {"dfnID":"16310992","dfnText":"<number>","external":true,"refSections":[{"refs":[{"id":"ref-for-number-value"},{"id":"ref-for-number-value\u2460"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-number-value\u2461"},{"id":"ref-for-number-value\u2462"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-number-value\u2463"},{"id":"ref-for-number-value\u2464"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"}],"url":"https://drafts.csswg.org/css-values-4/#number-value"}, "18222566": {"dfnID":"18222566","dfnText":"<length-percentage>","external":true,"refSections":[{"refs":[{"id":"ref-for-typedef-length-percentage"},{"id":"ref-for-typedef-length-percentage\u2460"},{"id":"ref-for-typedef-length-percentage\u2461"},{"id":"ref-for-typedef-length-percentage\u2462"},{"id":"ref-for-typedef-length-percentage\u2463"},{"id":"ref-for-typedef-length-percentage\u2464"},{"id":"ref-for-typedef-length-percentage\u2465"},{"id":"ref-for-typedef-length-percentage\u2466"},{"id":"ref-for-typedef-length-percentage\u2467"},{"id":"ref-for-typedef-length-percentage\u2468"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-typedef-length-percentage\u2460\u24ea"},{"id":"ref-for-typedef-length-percentage\u2460\u2460"},{"id":"ref-for-typedef-length-percentage\u2460\u2461"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-typedef-length-percentage\u2460\u2462"},{"id":"ref-for-typedef-length-percentage\u2460\u2463"},{"id":"ref-for-typedef-length-percentage\u2460\u2464"},{"id":"ref-for-typedef-length-percentage\u2460\u2465"},{"id":"ref-for-typedef-length-percentage\u2460\u2466"}],"title":"4.1. \nCurve Radii: the border-radius properties"},{"refs":[{"id":"ref-for-typedef-length-percentage\u2460\u2467"},{"id":"ref-for-typedef-length-percentage\u2460\u2468"},{"id":"ref-for-typedef-length-percentage\u2461\u24ea"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-typedef-length-percentage\u2461\u2460"},{"id":"ref-for-typedef-length-percentage\u2461\u2461"},{"id":"ref-for-typedef-length-percentage\u2461\u2462"},{"id":"ref-for-typedef-length-percentage\u2461\u2463"},{"id":"ref-for-typedef-length-percentage\u2461\u2464"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-values-4/#typedef-length-percentage"}, "1a3880ba": {"dfnID":"1a3880ba","dfnText":"containment","external":true,"refSections":[{"refs":[{"id":"ref-for-containment"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"}],"url":"https://drafts.csswg.org/css-contain-2/#containment"}, "1cf918c1": {"dfnID":"1cf918c1","dfnText":"specified value","external":true,"refSections":[{"refs":[{"id":"ref-for-specified-value"},{"id":"ref-for-specified-value\u2460"}],"title":"2.6.1. \nSerialization of background-position values"}],"url":"https://drafts.csswg.org/css-cascade-5/#specified-value"}, "23012643": {"dfnID":"23012643","dfnText":"natural aspect ratio","external":true,"refSections":[{"refs":[{"id":"ref-for-natural-aspect-ratio"},{"id":"ref-for-natural-aspect-ratio\u2460"},{"id":"ref-for-natural-aspect-ratio\u2461"}],"title":"2.9. Sizing Images: the background-size property"}],"url":"https://drafts.csswg.org/css-images-3/#natural-aspect-ratio"}, "2467179e": {"dfnID":"2467179e","dfnText":"content","external":true,"refSections":[{"refs":[{"id":"ref-for-propdef-content"}],"title":"2.3. \nImage Sources: the background-image property"}],"url":"https://drafts.csswg.org/css-content-3/#propdef-content"}, "264558d6": {"dfnID":"264558d6","dfnText":"<position>","external":true,"refSections":[{"refs":[{"id":"ref-for-typedef-position"},{"id":"ref-for-typedef-position\u2460"}],"title":"2.6.1. \nSerialization of background-position values"},{"refs":[{"id":"ref-for-typedef-position\u2461"}],"title":"8.4. \nChanges since the 9 September 2014 Candidate Recommendation"},{"refs":[{"id":"ref-for-typedef-position\u2462"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-values-3/#typedef-position"}, "2bceefb2": {"dfnID":"2bceefb2","dfnText":"default object size","external":true,"refSections":[{"refs":[{"id":"ref-for-default-object-size"}],"title":"5.2. \nImage Slicing: the border-image-slice property"}],"url":"https://drafts.csswg.org/css-images-3/#default-object-size"}, "2ebd6278": {"dfnID":"2ebd6278","dfnText":"ruby annotation container","external":true,"refSections":[{"refs":[{"id":"ref-for-ruby-annotation-container-box"}],"title":"Unnumbered Section"},{"refs":[{"id":"ref-for-ruby-annotation-container-box\u2460"},{"id":"ref-for-ruby-annotation-container-box\u2461"}],"title":"3.1. \nLine Colors: the border-color properties"},{"refs":[{"id":"ref-for-ruby-annotation-container-box\u2462"},{"id":"ref-for-ruby-annotation-container-box\u2463"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-ruby-annotation-container-box\u2464"},{"id":"ref-for-ruby-annotation-container-box\u2465"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-ruby-annotation-container-box\u2466"},{"id":"ref-for-ruby-annotation-container-box\u2467"}],"title":"3.4. \nBorder Shorthand Properties"}],"url":"https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box"}, "2f0492ac": {"dfnID":"2f0492ac","dfnText":"body","external":true,"refSections":[{"refs":[{"id":"ref-for-the-body-element"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"}],"url":"https://html.spec.whatwg.org/multipage/sections.html#the-body-element"}, "30868380": {"dfnID":"30868380","dfnText":"specified size","external":true,"refSections":[{"refs":[{"id":"ref-for-specified-size"}],"title":"5.2. \nImage Slicing: the border-image-slice property"}],"url":"https://drafts.csswg.org/css-images-3/#specified-size"}, "313bb160": {"dfnID":"313bb160","dfnText":"transparent","external":true,"refSections":[{"refs":[{"id":"ref-for-valdef-color-transparent"}],"title":"2. \nBackgrounds"},{"refs":[{"id":"ref-for-valdef-color-transparent\u2460"}],"title":"2.11.1. \nThe Canvas Background and the Root Element"},{"refs":[{"id":"ref-for-valdef-color-transparent\u2461"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"}],"url":"https://drafts.csswg.org/css-color-4/#valdef-color-transparent"}, "358fd6ff": {"dfnID":"358fd6ff","dfnText":"CSS-wide keywords","external":true,"refSections":[{"refs":[{"id":"ref-for-css-wide-keywords"}],"title":"1.2. \nValue Definitions"}],"url":"https://drafts.csswg.org/css-values-4/#css-wide-keywords"}, "40873652": {"dfnID":"40873652","dfnText":"content area","external":true,"refSections":[{"refs":[{"id":"ref-for-content-area"},{"id":"ref-for-content-area\u2460"}],"title":"1. Introduction"}],"url":"https://drafts.csswg.org/css-box-4/#content-area"}, "43562076": {"dfnID":"43562076","dfnText":"<visual-box>","external":true,"refSections":[{"refs":[{"id":"ref-for-typedef-visual-box"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-typedef-visual-box\u2460"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-typedef-visual-box\u2461"},{"id":"ref-for-typedef-visual-box\u2462"},{"id":"ref-for-typedef-visual-box\u2463"},{"id":"ref-for-typedef-visual-box\u2464"},{"id":"ref-for-typedef-visual-box\u2465"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-typedef-visual-box\u2466"}],"title":"8.1. \nChanges since the 14 February 2023 Candidate Recommendation Snapshot"}],"url":"https://drafts.csswg.org/css-box-4/#typedef-visual-box"}, "46c6a718": {"dfnID":"46c6a718","dfnText":"content box","external":true,"refSections":[{"refs":[{"id":"ref-for-content-box"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-content-box\u2460"}],"title":"2.8. \nPositioning Area: the background-origin property"}],"url":"https://drafts.csswg.org/css-box-4/#content-box"}, "4a142214": {"dfnID":"4a142214","dfnText":"snap as a border width","external":true,"refSections":[{"refs":[{"id":"ref-for-snap-a-length-as-a-border-width"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-snap-a-length-as-a-border-width\u2460"}],"title":"8.1. \nChanges since the 14 February 2023 Candidate Recommendation Snapshot"}],"url":"https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width"}, "4a57c942": {"dfnID":"4a57c942","dfnText":"border area","external":true,"refSections":[{"refs":[{"id":"ref-for-border-area"},{"id":"ref-for-border-area\u2460"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-border-area\u2461"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-border-area\u2462"}],"title":"4.2. \nCorner Shaping"}],"url":"https://drafts.csswg.org/css-box-4/#border-area"}, "537cf076": {"dfnID":"537cf076","dfnText":"?","external":true,"refSections":[{"refs":[{"id":"ref-for-mult-opt"},{"id":"ref-for-mult-opt\u2460"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-mult-opt\u2461"},{"id":"ref-for-mult-opt\u2462"},{"id":"ref-for-mult-opt\u2463"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-mult-opt\u2464"}],"title":"4.1. \nCurve Radii: the border-radius properties"},{"refs":[{"id":"ref-for-mult-opt\u2465"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-mult-opt\u2466"},{"id":"ref-for-mult-opt\u2467"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"},{"refs":[{"id":"ref-for-mult-opt\u2468"},{"id":"ref-for-mult-opt\u2460\u24ea"},{"id":"ref-for-mult-opt\u2460\u2460"},{"id":"ref-for-mult-opt\u2460\u2461"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-mult-opt\u2460\u2462"},{"id":"ref-for-mult-opt\u2460\u2463"},{"id":"ref-for-mult-opt\u2460\u2464"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-values-4/#mult-opt"}, "5c21b8af": {"dfnID":"5c21b8af","dfnText":"padding box","external":true,"refSections":[{"refs":[{"id":"ref-for-padding-box"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-padding-box\u2460"}],"title":"2.8. \nPositioning Area: the background-origin property"}],"url":"https://drafts.csswg.org/css-box-4/#padding-box"}, "62dcf741": {"dfnID":"62dcf741","dfnText":"margin area","external":true,"refSections":[{"refs":[{"id":"ref-for-margin-area"}],"title":"5. \nBorder Images"}],"url":"https://drafts.csswg.org/css-box-4/#margin-area"}, "67123f65": {"dfnID":"67123f65","dfnText":"value definition syntax","external":true,"refSections":[{"refs":[{"id":"ref-for-css-value-definition-syntax"}],"title":"8.1. \nChanges since the 14 February 2023 Candidate Recommendation Snapshot"}],"url":"https://drafts.csswg.org/css-values-4/#css-value-definition-syntax"}, "68019d7a": {"dfnID":"68019d7a","dfnText":"height","external":true,"refSections":[{"refs":[{"id":"ref-for-propdef-height"}],"title":"4.5. \nOverlapping Curves"}],"url":"https://drafts.csswg.org/css-sizing-3/#propdef-height"}, "68487d22": {"dfnID":"68487d22","dfnText":"#","external":true,"refSections":[{"refs":[{"id":"ref-for-mult-comma"}],"title":"2.3. \nImage Sources: the background-image property"},{"refs":[{"id":"ref-for-mult-comma\u2460"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-mult-comma\u2461"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-mult-comma\u2462"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-mult-comma\u2463"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-mult-comma\u2464"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-mult-comma\u2465"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-mult-comma\u2466"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-mult-comma\u2467"}],"title":"6.1. Drop Shadows: the box-shadow property"}],"url":"https://drafts.csswg.org/css-values-4/#mult-comma"}, "6b6458ae": {"dfnID":"6b6458ae","dfnText":"border","external":true,"refSections":[{"refs":[{"id":"ref-for-border"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-border\u2460"}],"title":"3. \nBorders"},{"refs":[{"id":"ref-for-border\u2461"}],"title":"3.1. \nLine Colors: the border-color properties"},{"refs":[{"id":"ref-for-border\u2462"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-border\u2463"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-border\u2464"}],"title":"3.4. \nBorder Shorthand Properties"}],"url":"https://drafts.csswg.org/css-box-4/#border"}, "6ec67710": {"dfnID":"6ec67710","dfnText":"|","external":true,"refSections":[{"refs":[{"id":"ref-for-comb-one"}],"title":"2.3. \nImage Sources: the background-image property"},{"refs":[{"id":"ref-for-comb-one\u2460"},{"id":"ref-for-comb-one\u2461"},{"id":"ref-for-comb-one\u2462"},{"id":"ref-for-comb-one\u2463"},{"id":"ref-for-comb-one\u2464"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-comb-one\u2465"},{"id":"ref-for-comb-one\u2466"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-comb-one\u2467"},{"id":"ref-for-comb-one\u2468"},{"id":"ref-for-comb-one\u2460\u24ea"},{"id":"ref-for-comb-one\u2460\u2460"},{"id":"ref-for-comb-one\u2460\u2461"},{"id":"ref-for-comb-one\u2460\u2462"},{"id":"ref-for-comb-one\u2460\u2463"},{"id":"ref-for-comb-one\u2460\u2464"},{"id":"ref-for-comb-one\u2460\u2465"},{"id":"ref-for-comb-one\u2460\u2466"},{"id":"ref-for-comb-one\u2460\u2467"},{"id":"ref-for-comb-one\u2460\u2468"},{"id":"ref-for-comb-one\u2461\u24ea"},{"id":"ref-for-comb-one\u2461\u2460"},{"id":"ref-for-comb-one\u2461\u2461"},{"id":"ref-for-comb-one\u2461\u2462"},{"id":"ref-for-comb-one\u2461\u2463"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-comb-one\u2461\u2464"},{"id":"ref-for-comb-one\u2461\u2465"},{"id":"ref-for-comb-one\u2461\u2466"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-comb-one\u2461\u2467"},{"id":"ref-for-comb-one\u2461\u2468"},{"id":"ref-for-comb-one\u2462\u24ea"},{"id":"ref-for-comb-one\u2462\u2460"},{"id":"ref-for-comb-one\u2462\u2461"},{"id":"ref-for-comb-one\u2462\u2462"},{"id":"ref-for-comb-one\u2462\u2463"},{"id":"ref-for-comb-one\u2462\u2464"},{"id":"ref-for-comb-one\u2462\u2465"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-comb-one\u2462\u2466"},{"id":"ref-for-comb-one\u2462\u2467"},{"id":"ref-for-comb-one\u2462\u2468"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-comb-one\u2463\u24ea"}],"title":"5.1. \nImage Source: the border-image-source property"},{"refs":[{"id":"ref-for-comb-one\u2463\u2460"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-comb-one\u2463\u2461"},{"id":"ref-for-comb-one\u2463\u2462"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-comb-one\u2463\u2463"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"},{"refs":[{"id":"ref-for-comb-one\u2463\u2464"},{"id":"ref-for-comb-one\u2463\u2465"},{"id":"ref-for-comb-one\u2463\u2466"}],"title":"5.5. \nImage Tiling: the border-image-repeat property"},{"refs":[{"id":"ref-for-comb-one\u2463\u2467"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"},{"refs":[{"id":"ref-for-comb-one\u2463\u2468"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-comb-one\u2464\u24ea"},{"id":"ref-for-comb-one\u2464\u2460"},{"id":"ref-for-comb-one\u2464\u2461"},{"id":"ref-for-comb-one\u2464\u2462"},{"id":"ref-for-comb-one\u2464\u2463"},{"id":"ref-for-comb-one\u2464\u2464"},{"id":"ref-for-comb-one\u2464\u2465"},{"id":"ref-for-comb-one\u2464\u2466"},{"id":"ref-for-comb-one\u2464\u2467"},{"id":"ref-for-comb-one\u2464\u2468"},{"id":"ref-for-comb-one\u2465\u24ea"},{"id":"ref-for-comb-one\u2465\u2460"},{"id":"ref-for-comb-one\u2465\u2461"},{"id":"ref-for-comb-one\u2465\u2462"},{"id":"ref-for-comb-one\u2465\u2463"},{"id":"ref-for-comb-one\u2465\u2464"},{"id":"ref-for-comb-one\u2465\u2465"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-values-4/#comb-one"}, "73ea1d43": {"dfnID":"73ea1d43","dfnText":"color","external":true,"refSections":[{"refs":[{"id":"ref-for-propdef-color"},{"id":"ref-for-propdef-color\u2460"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-propdef-color\u2461"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-color-4/#propdef-color"}, "75563977": {"dfnID":"75563977","dfnText":"natural height","external":true,"refSections":[{"refs":[{"id":"ref-for-natural-height"}],"title":"2.9. Sizing Images: the background-size property"}],"url":"https://drafts.csswg.org/css-images-3/#natural-height"}, "758665a5": {"dfnID":"758665a5","dfnText":"paged media","external":true,"refSections":[{"refs":[{"id":"ref-for-paged-media"}],"title":"2.5. \nAffixing Images: the background-attachment property"}],"url":"https://drafts.csswg.org/mediaqueries-5/#paged-media"}, "7fb2c729": {"dfnID":"7fb2c729","dfnText":"margin edge","external":true,"refSections":[{"refs":[{"id":"ref-for-margin-edge"}],"title":"4.2. \nCorner Shaping"}],"url":"https://drafts.csswg.org/css-box-4/#margin-edge"}, "80eb9508": {"dfnID":"80eb9508","dfnText":"principal box","external":true,"refSections":[{"refs":[{"id":"ref-for-principal-box"}],"title":"6.1.3. \nLayering, Layout, and Other Details"}],"url":"https://drafts.csswg.org/css-display-4/#principal-box"}, "86923d07": {"dfnID":"86923d07","dfnText":"scroll container","external":true,"refSections":[{"refs":[{"id":"ref-for-scroll-container"},{"id":"ref-for-scroll-container\u2460"}],"title":"2.5. \nAffixing Images: the background-attachment property"}],"url":"https://drafts.csswg.org/css-overflow-3/#scroll-container"}, "8a82fda1": {"dfnID":"8a82fda1","dfnText":"||","external":true,"refSections":[{"refs":[{"id":"ref-for-comb-any"},{"id":"ref-for-comb-any\u2460"},{"id":"ref-for-comb-any\u2461"},{"id":"ref-for-comb-any\u2462"},{"id":"ref-for-comb-any\u2463"},{"id":"ref-for-comb-any\u2464"},{"id":"ref-for-comb-any\u2465"},{"id":"ref-for-comb-any\u2466"},{"id":"ref-for-comb-any\u2467"},{"id":"ref-for-comb-any\u2468"},{"id":"ref-for-comb-any\u2460\u24ea"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-comb-any\u2460\u2460"},{"id":"ref-for-comb-any\u2460\u2461"},{"id":"ref-for-comb-any\u2460\u2462"},{"id":"ref-for-comb-any\u2460\u2463"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-comb-any\u2460\u2464"},{"id":"ref-for-comb-any\u2460\u2465"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"}],"url":"https://drafts.csswg.org/css-values-4/#comb-any"}, "8b60933e": {"dfnID":"8b60933e","dfnText":"collapse","external":true,"refSections":[{"refs":[{"id":"ref-for-valdef-border-collapse-collapse"}],"title":"4.6. \nEffect on Tables"},{"refs":[{"id":"ref-for-valdef-border-collapse-collapse\u2460"}],"title":"5.1. \nImage Source: the border-image-source property"},{"refs":[{"id":"ref-for-valdef-border-collapse-collapse\u2461"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-valdef-border-collapse-collapse\u2462"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-valdef-border-collapse-collapse\u2463"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"},{"refs":[{"id":"ref-for-valdef-border-collapse-collapse\u2464"}],"title":"5.5. \nImage Tiling: the border-image-repeat property"},{"refs":[{"id":"ref-for-valdef-border-collapse-collapse\u2465"}],"title":"5.8. Effect on Tables"}],"url":"https://drafts.csswg.org/css2/#valdef-border-collapse-collapse"}, "8ca0c013": {"dfnID":"8ca0c013","dfnText":"shorthand property","external":true,"refSections":[{"refs":[{"id":"ref-for-shorthand-property"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-shorthand-property\u2460"}],"title":"3.1. \nLine Colors: the border-color properties"},{"refs":[{"id":"ref-for-shorthand-property\u2461"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-shorthand-property\u2462"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-shorthand-property\u2463"},{"id":"ref-for-shorthand-property\u2464"}],"title":"3.4. \nBorder Shorthand Properties"}],"url":"https://drafts.csswg.org/css-cascade-5/#shorthand-property"}, "8d0ede2c": {"dfnID":"8d0ede2c","dfnText":"initial containing block","external":true,"refSections":[{"refs":[{"id":"ref-for-initial-containing-block"}],"title":"2.8. \nPositioning Area: the background-origin property"}],"url":"https://drafts.csswg.org/css-display-4/#initial-containing-block"}, "911f092b": {"dfnID":"911f092b","dfnText":"border-collapse","external":true,"refSections":[{"refs":[{"id":"ref-for-propdef-border-collapse"},{"id":"ref-for-propdef-border-collapse\u2460"}],"title":"4.6. \nEffect on Tables"},{"refs":[{"id":"ref-for-propdef-border-collapse\u2461"}],"title":"5.1. \nImage Source: the border-image-source property"},{"refs":[{"id":"ref-for-propdef-border-collapse\u2462"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-propdef-border-collapse\u2463"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-propdef-border-collapse\u2464"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"},{"refs":[{"id":"ref-for-propdef-border-collapse\u2465"}],"title":"5.5. \nImage Tiling: the border-image-repeat property"},{"refs":[{"id":"ref-for-propdef-border-collapse\u2466"}],"title":"5.8. Effect on Tables"}],"url":"https://drafts.csswg.org/css-tables-3/#propdef-border-collapse"}, "917fcd3c": {"dfnID":"917fcd3c","dfnText":"natural width","external":true,"refSections":[{"refs":[{"id":"ref-for-natural-width"}],"title":"2.9. Sizing Images: the background-size property"}],"url":"https://drafts.csswg.org/css-images-3/#natural-width"}, "938ba280": {"dfnID":"938ba280","dfnText":"{A,B}","external":true,"refSections":[{"refs":[{"id":"ref-for-mult-num-range"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-mult-num-range\u2460"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-mult-num-range\u2461"}],"title":"3.1. \nLine Colors: the border-color properties"},{"refs":[{"id":"ref-for-mult-num-range\u2462"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-mult-num-range\u2463"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-mult-num-range\u2464"},{"id":"ref-for-mult-num-range\u2465"},{"id":"ref-for-mult-num-range\u2466"}],"title":"4.1. \nCurve Radii: the border-radius properties"},{"refs":[{"id":"ref-for-mult-num-range\u2467"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-mult-num-range\u2468"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-mult-num-range\u2460\u24ea"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"},{"refs":[{"id":"ref-for-mult-num-range\u2460\u2460"}],"title":"5.5. \nImage Tiling: the border-image-repeat property"}],"url":"https://drafts.csswg.org/css-values-4/#mult-num-range"}, "998b9e6e": {"dfnID":"998b9e6e","dfnText":"<image>","external":true,"refSections":[{"refs":[{"id":"ref-for-typedef-image"},{"id":"ref-for-typedef-image\u2460"}],"title":"2.3. \nImage Sources: the background-image property"},{"refs":[{"id":"ref-for-typedef-image\u2461"},{"id":"ref-for-typedef-image\u2462"}],"title":"5.1. \nImage Source: the border-image-source property"}],"url":"https://drafts.csswg.org/css-images-3/#typedef-image"}, "99a64665": {"dfnID":"99a64665","dfnText":"scrollable overflow area","external":true,"refSections":[{"refs":[{"id":"ref-for-scrollable-overflow-region"},{"id":"ref-for-scrollable-overflow-region\u2460"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-scrollable-overflow-region\u2461"}],"title":"6.1.3. \nLayering, Layout, and Other Details"}],"url":"https://drafts.csswg.org/css-overflow-3/#scrollable-overflow-region"}, "9bc55323": {"dfnID":"9bc55323","dfnText":"UA","external":true,"refSections":[{"refs":[{"id":"ref-for-user-agent"}],"title":"2.1. \nLayering Multiple Background Images"}],"url":"https://drafts.csswg.org/css-2023/#user-agent"}, "9bfc28f6": {"dfnID":"9bfc28f6","dfnText":"pseudo-element","external":true,"refSections":[{"refs":[{"id":"ref-for-pseudo-element"},{"id":"ref-for-pseudo-element\u2460"}],"title":"1.1. \nModule Interactions"}],"url":"https://drafts.csswg.org/selectors-4/#pseudo-element"}, "9cd25054": {"dfnID":"9cd25054","dfnText":"computed value","external":true,"refSections":[{"refs":[{"id":"ref-for-computed-value"}],"title":"2.6.1. \nSerialization of background-position values"},{"refs":[{"id":"ref-for-computed-value\u2460"},{"id":"ref-for-computed-value\u2461"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"}],"url":"https://drafts.csswg.org/css-cascade-5/#computed-value"}, "9ea6bed2": {"dfnID":"9ea6bed2","dfnText":"initial value","external":true,"refSections":[{"refs":[{"id":"ref-for-initial-value"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-initial-value\u2460"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"},{"refs":[{"id":"ref-for-initial-value\u2461"},{"id":"ref-for-initial-value\u2462"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-initial-value\u2463"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-initial-value\u2464"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"}],"url":"https://drafts.csswg.org/css-cascade-5/#initial-value"}, "9f9120ff": {"dfnID":"9f9120ff","dfnText":",","external":true,"refSections":[{"refs":[{"id":"ref-for-comb-comma"}],"title":"2.10. \nBackgrounds Shorthand: the background property"}],"url":"https://drafts.csswg.org/css-values-4/#comb-comma"}, "a4eb3c57": {"dfnID":"a4eb3c57","dfnText":"used value","external":true,"refSections":[{"refs":[{"id":"ref-for-used-value"}],"title":"2.1. \nLayering Multiple Background Images"},{"refs":[{"id":"ref-for-used-value\u2460"}],"title":"2.11.1. \nThe Canvas Background and the Root Element"},{"refs":[{"id":"ref-for-used-value\u2461"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"},{"refs":[{"id":"ref-for-used-value\u2462"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-used-value\u2463"}],"title":"5.3. \nDrawing Areas: the border-image-width property"}],"url":"https://drafts.csswg.org/css-cascade-5/#used-value"}, "a8485ff4": {"dfnID":"a8485ff4","dfnText":"replaced element","external":true,"refSections":[{"refs":[{"id":"ref-for-replaced-element"}],"title":"4.3. \nCorner Clipping"}],"url":"https://drafts.csswg.org/css-display-4/#replaced-element"}, "ad47bbf0": {"dfnID":"ad47bbf0","dfnText":"CSS bracketed range notation","external":true,"refSections":[{"refs":[{"id":"ref-for-css-bracketed-range-notation"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-values-4/#css-bracketed-range-notation"}, "b0d8ebd9": {"dfnID":"b0d8ebd9","dfnText":"{A}","external":true,"refSections":[{"refs":[{"id":"ref-for-mult-num"}],"title":"6.1. Drop Shadows: the box-shadow property"}],"url":"https://drafts.csswg.org/css-values-4/#mult-num"}, "b3d55a17": {"dfnID":"b3d55a17","dfnText":"drop-shadow()","external":true,"refSections":[{"refs":[{"id":"ref-for-funcdef-filter-drop-shadow"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"}],"url":"https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-drop-shadow"}, "b7e0bc03": {"dfnID":"b7e0bc03","dfnText":"border edge","external":true,"refSections":[{"refs":[{"id":"ref-for-border-edge"}],"title":"4.1. \nCurve Radii: the border-radius properties"},{"refs":[{"id":"ref-for-border-edge\u2460"}],"title":"4.2. \nCorner Shaping"},{"refs":[{"id":"ref-for-border-edge\u2461"},{"id":"ref-for-border-edge\u2462"}],"title":"4.3. \nCorner Clipping"}],"url":"https://drafts.csswg.org/css-box-4/#border-edge"}, "background-color-layer": {"dfnID":"background-color-layer","dfnText":"background color","external":false,"refSections":[{"refs":[{"id":"ref-for-background-color-layer"}],"title":"2.2. \nBase Color: the background-color property"}],"url":"#background-color-layer"}, "background-image-layer": {"dfnID":"background-image-layer","dfnText":"background image layers","external":false,"refSections":[{"refs":[{"id":"ref-for-background-image-layer"},{"id":"ref-for-background-image-layer\u2460"},{"id":"ref-for-background-image-layer\u2461"}],"title":"2.1. \nLayering Multiple Background Images"},{"refs":[{"id":"ref-for-background-image-layer\u2462"}],"title":"2.2. \nBase Color: the background-color property"},{"refs":[{"id":"ref-for-background-image-layer\u2463"},{"id":"ref-for-background-image-layer\u2464"},{"id":"ref-for-background-image-layer\u2465"}],"title":"2.3. \nImage Sources: the background-image property"},{"refs":[{"id":"ref-for-background-image-layer\u2466"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-background-image-layer\u2467"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-background-image-layer\u2468"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-background-image-layer\u2460\u24ea"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-background-image-layer\u2460\u2460"},{"id":"ref-for-background-image-layer\u2460\u2461"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-background-image-layer\u2460\u2462"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-background-image-layer\u2460\u2463"}],"title":"2.10. \nBackgrounds Shorthand: the background property"}],"url":"#background-image-layer"}, "background-images": {"dfnID":"background-images","dfnText":"background image(s)","external":false,"refSections":[{"refs":[{"id":"ref-for-background-images"}],"title":"2.1. \nLayering Multiple Background Images"},{"refs":[{"id":"ref-for-background-images\u2460"},{"id":"ref-for-background-images\u2461"},{"id":"ref-for-background-images\u2462"},{"id":"ref-for-background-images\u2463"},{"id":"ref-for-background-images\u2464"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-background-images\u2465"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-background-images\u2466"},{"id":"ref-for-background-images\u2467"},{"id":"ref-for-background-images\u2468"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-background-images\u2460\u24ea"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-background-images\u2460\u2460"}],"title":"2.9. Sizing Images: the background-size property"}],"url":"#background-images"}, "background-painting-area": {"dfnID":"background-painting-area","dfnText":"background painting area","external":false,"refSections":[{"refs":[{"id":"ref-for-background-painting-area"},{"id":"ref-for-background-painting-area\u2460"},{"id":"ref-for-background-painting-area\u2461"},{"id":"ref-for-background-painting-area\u2462"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-background-painting-area\u2463"},{"id":"ref-for-background-painting-area\u2464"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-background-painting-area\u2465"},{"id":"ref-for-background-painting-area\u2466"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-background-painting-area\u2467"}],"title":"2.11.1. \nThe Canvas Background and the Root Element"}],"url":"#background-painting-area"}, "background-positioning-area": {"dfnID":"background-positioning-area","dfnText":"background positioning area","external":false,"refSections":[{"refs":[{"id":"ref-for-background-positioning-area"},{"id":"ref-for-background-positioning-area\u2460"},{"id":"ref-for-background-positioning-area\u2461"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-background-positioning-area\u2462"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-background-positioning-area\u2463"},{"id":"ref-for-background-positioning-area\u2464"},{"id":"ref-for-background-positioning-area\u2465"},{"id":"ref-for-background-positioning-area\u2466"},{"id":"ref-for-background-positioning-area\u2467"},{"id":"ref-for-background-positioning-area\u2468"},{"id":"ref-for-background-positioning-area\u2460\u24ea"},{"id":"ref-for-background-positioning-area\u2460\u2460"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-background-positioning-area\u2460\u2461"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-background-positioning-area\u2460\u2462"},{"id":"ref-for-background-positioning-area\u2460\u2463"},{"id":"ref-for-background-positioning-area\u2460\u2464"},{"id":"ref-for-background-positioning-area\u2460\u2465"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-background-positioning-area"}],"title":"2.11.1. \nThe Canvas Background and the Root Element"}],"url":"#background-positioning-area"}, "bf9e2a5d": {"dfnID":"bf9e2a5d","dfnText":"::first-line","external":true,"refSections":[{"refs":[{"id":"ref-for-sel-first-line"},{"id":"ref-for-sel-first-line\u2460"},{"id":"ref-for-sel-first-line\u2461"}],"title":"1.1. \nModule Interactions"},{"refs":[{"id":"ref-for-sel-first-line\u2462"},{"id":"ref-for-sel-first-line\u2463"}],"title":"2.11.3. \nThe ::first-line Pseudo-element\u2018s Background"},{"refs":[{"id":"ref-for-sel-first-line\u2464"}],"title":"8.8. \nChanges since the 14 February 2012 \u201cLast Call\u201d Working Draft"}],"url":"https://drafts.csswg.org/selectors-3/#sel-first-line"}, "border-color-dfn": {"dfnID":"border-color-dfn","dfnText":"color","external":false,"refSections":[],"url":"#border-color-dfn"}, "border-image-area": {"dfnID":"border-image-area","dfnText":"border image area","external":false,"refSections":[{"refs":[{"id":"ref-for-border-image-area"},{"id":"ref-for-border-image-area\u2460"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-border-image-area\u2461"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-border-image-area\u2462"},{"id":"ref-for-border-image-area\u2463"},{"id":"ref-for-border-image-area\u2464"},{"id":"ref-for-border-image-area\u2465"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-border-image-area\u2466"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"},{"refs":[{"id":"ref-for-border-image-area\u2467"},{"id":"ref-for-border-image-area\u2468"},{"id":"ref-for-border-image-area\u2460\u24ea"},{"id":"ref-for-border-image-area\u2460\u2460"}],"title":"5.6. \nDrawing the Border Image"}],"url":"#border-image-area"}, "border-image-dfn": {"dfnID":"border-image-dfn","dfnText":"border image","external":false,"refSections":[{"refs":[{"id":"ref-for-border-image-dfn"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-border-image-dfn\u2460"}],"title":"5.5. \nImage Tiling: the border-image-repeat property"},{"refs":[{"id":"ref-for-border-image-dfn\u2461"}],"title":"5.6. \nDrawing the Border Image"}],"url":"#border-image-dfn"}, "border-image-region": {"dfnID":"border-image-region","dfnText":"regions","external":false,"refSections":[{"refs":[{"id":"ref-for-border-image-region"},{"id":"ref-for-border-image-region\u2460"},{"id":"ref-for-border-image-region\u2461"},{"id":"ref-for-border-image-region\u2462"}],"title":"5.5. \nImage Tiling: the border-image-repeat property"},{"refs":[{"id":"ref-for-border-image-region\u2463"},{"id":"ref-for-border-image-region\u2464"},{"id":"ref-for-border-image-region\u2465"},{"id":"ref-for-border-image-region\u2466"}],"title":"5.6. \nDrawing the Border Image"}],"url":"#border-image-region"}, "border-image-slice-fill": {"dfnID":"border-image-slice-fill","dfnText":"fill","external":false,"refSections":[{"refs":[{"id":"ref-for-border-image-slice-fill"}],"title":"5.1. \nImage Source: the border-image-source property"},{"refs":[{"id":"ref-for-border-image-slice-fill\u2460"},{"id":"ref-for-border-image-slice-fill\u2461"},{"id":"ref-for-border-image-slice-fill\u2462"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-border-image-slice-fill\u2463"}],"title":"5.6. \nDrawing the Border Image"}],"url":"#border-image-slice-fill"}, "border-radii": {"dfnID":"border-radii","dfnText":"radii","external":false,"refSections":[{"refs":[{"id":"ref-for-border-radii"}],"title":"4.2. \nCorner Shaping"},{"refs":[{"id":"ref-for-border-radii\u2460"}],"title":"6.1.1. \nShadow Shape, Spread, and Knockout"},{"refs":[{"id":"ref-for-border-radii\u2461"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"}],"url":"#border-radii"}, "border-style-dfn": {"dfnID":"border-style-dfn","dfnText":"style","external":false,"refSections":[],"url":"#border-style-dfn"}, "border-width-dfn": {"dfnID":"border-width-dfn","dfnText":"border width","external":false,"refSections":[{"refs":[{"id":"ref-for-border-width-dfn"}],"title":"4.4. \nColor and Style Transitions"}],"url":"#border-width-dfn"}, "box-shadow-blur-radius": {"dfnID":"box-shadow-blur-radius","dfnText":"blur radius","external":false,"refSections":[{"refs":[{"id":"ref-for-box-shadow-blur-radius"}],"title":"6.1.2. \nBlurring Shadow Edges"}],"url":"#box-shadow-blur-radius"}, "box-shadow-horizontal-offset": {"dfnID":"box-shadow-horizontal-offset","dfnText":"horizontal offset","external":false,"refSections":[],"url":"#box-shadow-horizontal-offset"}, "box-shadow-inner-box-shadow": {"dfnID":"box-shadow-inner-box-shadow","dfnText":"inner box-shadow","external":false,"refSections":[{"refs":[{"id":"ref-for-box-shadow-inner-box-shadow"},{"id":"ref-for-box-shadow-inner-box-shadow\u2460"}],"title":"6.1.1. \nShadow Shape, Spread, and Knockout"},{"refs":[{"id":"ref-for-box-shadow-inner-box-shadow\u2461"}],"title":"6.1.3. \nLayering, Layout, and Other Details"}],"url":"#box-shadow-inner-box-shadow"}, "box-shadow-none": {"dfnID":"box-shadow-none","dfnText":"none","external":false,"refSections":[{"refs":[{"id":"ref-for-box-shadow-none"},{"id":"ref-for-box-shadow-none\u2460"}],"title":"6.1. Drop Shadows: the box-shadow property"}],"url":"#box-shadow-none"}, "box-shadow-outer-box-shadow": {"dfnID":"box-shadow-outer-box-shadow","dfnText":"outer box-shadow","external":false,"refSections":[{"refs":[{"id":"ref-for-box-shadow-outer-box-shadow"},{"id":"ref-for-box-shadow-outer-box-shadow\u2460"}],"title":"6.1.1. \nShadow Shape, Spread, and Knockout"},{"refs":[{"id":"ref-for-box-shadow-outer-box-shadow\u2461"}],"title":"6.1.3. \nLayering, Layout, and Other Details"}],"url":"#box-shadow-outer-box-shadow"}, "box-shadow-spread-distance": {"dfnID":"box-shadow-spread-distance","dfnText":"spread distance","external":false,"refSections":[{"refs":[{"id":"ref-for-box-shadow-spread-distance"},{"id":"ref-for-box-shadow-spread-distance\u2460"},{"id":"ref-for-box-shadow-spread-distance\u2461"},{"id":"ref-for-box-shadow-spread-distance\u2462"},{"id":"ref-for-box-shadow-spread-distance\u2463"},{"id":"ref-for-box-shadow-spread-distance\u2464"},{"id":"ref-for-box-shadow-spread-distance\u2465"},{"id":"ref-for-box-shadow-spread-distance\u2466"}],"title":"6.1.1. \nShadow Shape, Spread, and Knockout"},{"refs":[{"id":"ref-for-box-shadow-spread-distance\u2467"},{"id":"ref-for-box-shadow-spread-distance\u2468"},{"id":"ref-for-box-shadow-spread-distance\u2460\u24ea"},{"id":"ref-for-box-shadow-spread-distance\u2460\u2460"},{"id":"ref-for-box-shadow-spread-distance\u2460\u2461"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"}],"url":"#box-shadow-spread-distance"}, "box-shadow-vertical-offset": {"dfnID":"box-shadow-vertical-offset","dfnText":"vertical offset","external":false,"refSections":[],"url":"#box-shadow-vertical-offset"}, "c1b73c63": {"dfnID":"c1b73c63","dfnText":"padding","external":true,"refSections":[{"refs":[{"id":"ref-for-padding"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-padding\u2460"}],"title":"4.2. \nCorner Shaping"}],"url":"https://drafts.csswg.org/css-box-4/#padding"}, "c3bd6e1d": {"dfnID":"c3bd6e1d","dfnText":"box fragment","external":true,"refSections":[{"refs":[{"id":"ref-for-box-fragment"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-box-fragment\u2460"}],"title":"2.8. \nPositioning Area: the background-origin property"}],"url":"https://drafts.csswg.org/css-break-4/#box-fragment"}, "cad72d2f": {"dfnID":"cad72d2f","dfnText":"currentcolor","external":true,"refSections":[{"refs":[{"id":"ref-for-valdef-color-currentcolor"},{"id":"ref-for-valdef-color-currentcolor\u2460"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-valdef-color-currentcolor\u2461"},{"id":"ref-for-valdef-color-currentcolor\u2462"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor"}, "canvas-background": {"dfnID":"canvas-background","dfnText":"canvas background","external":false,"refSections":[{"refs":[{"id":"ref-for-canvas-background"},{"id":"ref-for-canvas-background\u2460"}],"title":"2.11. \nBackgrounds of Special Elements"}],"url":"#canvas-background"}, "canvas-surface": {"dfnID":"canvas-surface","dfnText":"canvas surface","external":false,"refSections":[{"refs":[{"id":"ref-for-canvas-surface"}],"title":"2.11. \nBackgrounds of Special Elements"}],"url":"#canvas-surface"}, "cc682c89": {"dfnID":"cc682c89","dfnText":"root element","external":true,"refSections":[{"refs":[{"id":"ref-for-root-element"}],"title":"2.11. \nBackgrounds of Special Elements"},{"refs":[{"id":"ref-for-root-element\u2460"}],"title":"2.11.1. \nThe Canvas Background and the Root Element"},{"refs":[{"id":"ref-for-root-element\u2461"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"}],"url":"https://drafts.csswg.org/css-display-4/#root-element"}, "cecbe9cd": {"dfnID":"cecbe9cd","dfnText":"margin","external":true,"refSections":[{"refs":[{"id":"ref-for-propdef-margin"}],"title":"3.4. \nBorder Shorthand Properties"}],"url":"https://drafts.csswg.org/css-box-4/#propdef-margin"}, "d3936525": {"dfnID":"d3936525","dfnText":"natural dimension","external":true,"refSections":[{"refs":[{"id":"ref-for-natural-dimensions"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-natural-dimensions\u2460"}],"title":"5.3. \nDrawing Areas: the border-image-width property"}],"url":"https://drafts.csswg.org/css-images-3/#natural-dimensions"}, "e511deaa": {"dfnID":"e511deaa","dfnText":"padding area","external":true,"refSections":[{"refs":[{"id":"ref-for-padding-area"}],"title":"1. Introduction"}],"url":"https://drafts.csswg.org/css-box-4/#padding-area"}, "ed3eb665": {"dfnID":"ed3eb665","dfnText":"natural size","external":true,"refSections":[{"refs":[{"id":"ref-for-natural-size"},{"id":"ref-for-natural-size\u2460"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-natural-size\u2461"}],"title":"5.3. \nDrawing Areas: the border-image-width property"}],"url":"https://drafts.csswg.org/css-images-3/#natural-size"}, "f0809abc": {"dfnID":"f0809abc","dfnText":"&&","external":true,"refSections":[{"refs":[{"id":"ref-for-comb-all"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-comb-all\u2460"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-comb-all\u2461"},{"id":"ref-for-comb-all\u2462"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-comb-all\u2463"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-values-4/#comb-all"}, "f338a9f0": {"dfnID":"f338a9f0","dfnText":"text-shadow","external":true,"refSections":[{"refs":[{"id":"ref-for-propdef-text-shadow"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-text-decor-4/#propdef-text-shadow"}, "f598742d": {"dfnID":"f598742d","dfnText":"border box","external":true,"refSections":[{"refs":[{"id":"ref-for-border-box"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-border-box\u2460"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-border-box\u2461"},{"id":"ref-for-border-box\u2462"},{"id":"ref-for-border-box\u2463"},{"id":"ref-for-border-box\u2464"}],"title":"4.1. \nCurve Radii: the border-radius properties"},{"refs":[{"id":"ref-for-border-box\u2465"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-border-box\u2466"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-border-box\u2467"},{"id":"ref-for-border-box\u2468"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"}],"url":"https://drafts.csswg.org/css-box-4/#border-box"}, "f9a50f04": {"dfnID":"f9a50f04","dfnText":"padding edge","external":true,"refSections":[{"refs":[{"id":"ref-for-padding-edge"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-padding-edge\u2460"},{"id":"ref-for-padding-edge\u2461"},{"id":"ref-for-padding-edge\u2462"}],"title":"4.2. \nCorner Shaping"},{"refs":[{"id":"ref-for-padding-edge\u2463"},{"id":"ref-for-padding-edge\u2464"}],"title":"4.3. \nCorner Clipping"}],"url":"https://drafts.csswg.org/css-box-4/#padding-edge"}, "fb030e6c": {"dfnID":"fb030e6c","dfnText":"<length>","external":true,"refSections":[{"refs":[{"id":"ref-for-length-value"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-length-value\u2460"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-length-value\u2461"},{"id":"ref-for-length-value\u2462"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"},{"refs":[{"id":"ref-for-length-value\u2463"},{"id":"ref-for-length-value\u2464"},{"id":"ref-for-length-value\u2465"},{"id":"ref-for-length-value\u2466"},{"id":"ref-for-length-value\u2467"},{"id":"ref-for-length-value\u2468"},{"id":"ref-for-length-value\u2460\u24ea"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-length-value\u2460\u2460"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"},{"refs":[{"id":"ref-for-length-value\u2460\u2461"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"https://drafts.csswg.org/css-values-4/#length-value"}, "ff0f7174": {"dfnID":"ff0f7174","dfnText":"content edge","external":true,"refSections":[{"refs":[{"id":"ref-for-content-edge"}],"title":"4.2. \nCorner Shaping"},{"refs":[{"id":"ref-for-content-edge\u2460"},{"id":"ref-for-content-edge\u2461"}],"title":"4.3. \nCorner Clipping"}],"url":"https://drafts.csswg.org/css-box-4/#content-edge"}, "propdef-background": {"dfnID":"propdef-background","dfnText":"background","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-propdef-background\u2460"},{"id":"ref-for-propdef-background\u2461"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background\u2462"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-background\u2463"}],"title":"7.2. \nLevel 2"},{"refs":[{"id":"ref-for-propdef-background\u2464"}],"title":"8.1. \nChanges since the 14 February 2023 Candidate Recommendation Snapshot"},{"refs":[{"id":"ref-for-propdef-background\u2465"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-background\u2466"}],"title":"8.8. \nChanges since the 14 February 2012 \u201cLast Call\u201d Working Draft"},{"refs":[{"id":"ref-for-propdef-background\u2467"}],"title":"8.10. \nChanges Since the 17 December 2009 Candidate Recommendation"}],"url":"#propdef-background"}, "propdef-background-attachment": {"dfnID":"propdef-background-attachment","dfnText":"background-attachment","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background-attachment"},{"id":"ref-for-propdef-background-attachment\u2460"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-propdef-background-attachment\u2461"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-propdef-background-attachment\u2462"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background-attachment\u2463"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-background-attachment\u2464"}],"title":"7.2. \nLevel 2"},{"refs":[{"id":"ref-for-propdef-background-attachment\u2465"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"}],"url":"#propdef-background-attachment"}, "propdef-background-clip": {"dfnID":"propdef-background-clip","dfnText":"background-clip","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background-clip"}],"title":"2.2. \nBase Color: the background-color property"},{"refs":[{"id":"ref-for-propdef-background-clip\u2460"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-propdef-background-clip\u2461"},{"id":"ref-for-propdef-background-clip\u2462"},{"id":"ref-for-propdef-background-clip\u2463"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-propdef-background-clip\u2464"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-propdef-background-clip\u2465"},{"id":"ref-for-propdef-background-clip\u2466"},{"id":"ref-for-propdef-background-clip\u2467"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background-clip\u2468"}],"title":"4.3. \nCorner Clipping"},{"refs":[{"id":"ref-for-propdef-background-clip\u2460\u24ea"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-background-clip\u2460\u2460"},{"id":"ref-for-propdef-background-clip\u2460\u2461"}],"title":"8.10. \nChanges Since the 17 December 2009 Candidate Recommendation"}],"url":"#propdef-background-clip"}, "propdef-background-color": {"dfnID":"propdef-background-color","dfnText":"background-color","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background-color"},{"id":"ref-for-propdef-background-color\u2460"}],"title":"2. \nBackgrounds"},{"refs":[{"id":"ref-for-propdef-background-color\u2461"}],"title":"2.2. \nBase Color: the background-color property"},{"refs":[{"id":"ref-for-propdef-background-color\u2462"}],"title":"2.3. \nImage Sources: the background-image property"},{"refs":[{"id":"ref-for-propdef-background-color\u2463"},{"id":"ref-for-propdef-background-color\u2464"},{"id":"ref-for-propdef-background-color\u2465"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background-color\u2466"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"},{"refs":[{"id":"ref-for-propdef-background-color\u2467"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-background-color\u2468"}],"title":"7.2. \nLevel 2"},{"refs":[{"id":"ref-for-propdef-background-color\u2460\u24ea"}],"title":"8.4. \nChanges since the 9 September 2014 Candidate Recommendation"}],"url":"#propdef-background-color"}, "propdef-background-image": {"dfnID":"propdef-background-image","dfnText":"background-image","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background-image"}],"title":"1.2. \nValue Definitions"},{"refs":[{"id":"ref-for-propdef-background-image\u2460"}],"title":"2. \nBackgrounds"},{"refs":[{"id":"ref-for-propdef-background-image\u2461"}],"title":"2.1. \nLayering Multiple Background Images"},{"refs":[{"id":"ref-for-propdef-background-image\u2462"},{"id":"ref-for-propdef-background-image\u2463"}],"title":"2.3. \nImage Sources: the background-image property"},{"refs":[{"id":"ref-for-propdef-background-image\u2464"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background-image\u2465"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"},{"refs":[{"id":"ref-for-propdef-background-image\u2466"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-background-image\u2467"}],"title":"7.2. \nLevel 2"},{"refs":[{"id":"ref-for-propdef-background-image\u2468"}],"title":"8.1. \nChanges since the 14 February 2023 Candidate Recommendation Snapshot"},{"refs":[{"id":"ref-for-propdef-background-image\u2460\u24ea"}],"title":"8.8. \nChanges since the 14 February 2012 \u201cLast Call\u201d Working Draft"}],"url":"#propdef-background-image"}, "propdef-background-origin": {"dfnID":"propdef-background-origin","dfnText":"background-origin","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background-origin"}],"title":"2.1. \nLayering Multiple Background Images"},{"refs":[{"id":"ref-for-propdef-background-origin\u2460"},{"id":"ref-for-propdef-background-origin\u2461"},{"id":"ref-for-propdef-background-origin\u2462"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-propdef-background-origin\u2463"},{"id":"ref-for-propdef-background-origin\u2464"},{"id":"ref-for-propdef-background-origin\u2465"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background-origin\u2466"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-background-origin\u2467"}],"title":"8.10. \nChanges Since the 17 December 2009 Candidate Recommendation"}],"url":"#propdef-background-origin"}, "propdef-background-position": {"dfnID":"propdef-background-position","dfnText":"background-position","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background-position"},{"id":"ref-for-propdef-background-position\u2460"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-propdef-background-position\u2461"},{"id":"ref-for-propdef-background-position\u2462"},{"id":"ref-for-propdef-background-position\u2463"},{"id":"ref-for-propdef-background-position\u2464"},{"id":"ref-for-propdef-background-position\u2465"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-propdef-background-position\u2466"}],"title":"2.6.1. \nSerialization of background-position values"},{"refs":[{"id":"ref-for-propdef-background-position\u2467"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-propdef-background-position\u2468"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background-position\u2460\u24ea"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-background-position\u2460\u2460"}],"title":"7.2. \nLevel 2"},{"refs":[{"id":"ref-for-propdef-background-position\u2460\u2461"}],"title":"8.1. \nChanges since the 14 February 2023 Candidate Recommendation Snapshot"},{"refs":[{"id":"ref-for-propdef-background-position\u2460\u2462"},{"id":"ref-for-propdef-background-position\u2460\u2463"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-background-position\u2460\u2464"}],"title":"8.7. \nChanges since the 17 April 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-background-position\u2460\u2465"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"#propdef-background-position"}, "propdef-background-repeat": {"dfnID":"propdef-background-repeat","dfnText":"background-repeat","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background-repeat"}],"title":"2.1. \nLayering Multiple Background Images"},{"refs":[{"id":"ref-for-propdef-background-repeat\u2460"},{"id":"ref-for-propdef-background-repeat\u2461"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-propdef-background-repeat\u2462"},{"id":"ref-for-propdef-background-repeat\u2463"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-propdef-background-repeat\u2464"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background-repeat\u2465"}],"title":"5.6. \nDrawing the Border Image"},{"refs":[{"id":"ref-for-propdef-background-repeat\u2466"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-background-repeat\u2467"}],"title":"7.2. \nLevel 2"},{"refs":[{"id":"ref-for-propdef-background-repeat\u2468"}],"title":"8.8. \nChanges since the 14 February 2012 \u201cLast Call\u201d Working Draft"}],"url":"#propdef-background-repeat"}, "propdef-background-size": {"dfnID":"propdef-background-size","dfnText":"background-size","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-background-size"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-propdef-background-size\u2460"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-propdef-background-size\u2461"},{"id":"ref-for-propdef-background-size\u2462"},{"id":"ref-for-propdef-background-size\u2463"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-propdef-background-size\u2464"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-propdef-background-size\u2465"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"#propdef-background-size"}, "propdef-border": {"dfnID":"propdef-border","dfnText":"border","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border\u2460"},{"id":"ref-for-propdef-border\u2461"},{"id":"ref-for-propdef-border\u2462"},{"id":"ref-for-propdef-border\u2463"},{"id":"ref-for-propdef-border\u2464"},{"id":"ref-for-propdef-border\u2465"},{"id":"ref-for-propdef-border\u2466"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-propdef-border\u2467"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-propdef-border\u2468"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-border\u2460\u24ea"}],"title":"7.2. \nLevel 2"}],"url":"#propdef-border"}, "propdef-border-bottom": {"dfnID":"propdef-border-bottom","dfnText":"border-bottom","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-bottom"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-border-bottom\u2460"}],"title":"7.2. \nLevel 2"}],"url":"#propdef-border-bottom"}, "propdef-border-bottom-color": {"dfnID":"propdef-border-bottom-color","dfnText":"border-bottom-color","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-bottom-color"}],"title":"3.1. \nLine Colors: the border-color properties"}],"url":"#propdef-border-bottom-color"}, "propdef-border-bottom-left-radius": {"dfnID":"propdef-border-bottom-left-radius","dfnText":"border-bottom-left-radius","external":false,"refSections":[],"url":"#propdef-border-bottom-left-radius"}, "propdef-border-bottom-right-radius": {"dfnID":"propdef-border-bottom-right-radius","dfnText":"border-bottom-right-radius","external":false,"refSections":[],"url":"#propdef-border-bottom-right-radius"}, "propdef-border-bottom-style": {"dfnID":"propdef-border-bottom-style","dfnText":"border-bottom-style","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-bottom-style"}],"title":"3.2. Line Patterns: the border-style properties"}],"url":"#propdef-border-bottom-style"}, "propdef-border-bottom-width": {"dfnID":"propdef-border-bottom-width","dfnText":"border-bottom-width","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-bottom-width"}],"title":"3.3. \nLine Thickness: the border-width properties"}],"url":"#propdef-border-bottom-width"}, "propdef-border-color": {"dfnID":"propdef-border-color","dfnText":"border-color","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-color"}],"title":"3. \nBorders"},{"refs":[{"id":"ref-for-propdef-border-color\u2460"},{"id":"ref-for-propdef-border-color\u2461"},{"id":"ref-for-propdef-border-color\u2462"}],"title":"3.1. \nLine Colors: the border-color properties"},{"refs":[{"id":"ref-for-propdef-border-color\u2463"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-propdef-border-color\u2464"},{"id":"ref-for-propdef-border-color\u2465"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-propdef-border-color\u2466"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-border-color\u2467"}],"title":"7.2. \nLevel 2"}],"url":"#propdef-border-color"}, "propdef-border-image": {"dfnID":"propdef-border-image","dfnText":"border-image","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-image"}],"title":"1.1. \nModule Interactions"},{"refs":[{"id":"ref-for-propdef-border-image\u2460"}],"title":"1.2. \nValue Definitions"},{"refs":[{"id":"ref-for-propdef-border-image\u2461"},{"id":"ref-for-propdef-border-image\u2462"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-propdef-border-image\u2463"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-propdef-border-image\u2464"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"},{"refs":[{"id":"ref-for-propdef-border-image\u2465"}],"title":"5.8. Effect on Tables"},{"refs":[{"id":"ref-for-propdef-border-image\u2466"}],"title":"6.1.1. \nShadow Shape, Spread, and Knockout"},{"refs":[{"id":"ref-for-propdef-border-image\u2467"}],"title":"8.8. \nChanges since the 14 February 2012 \u201cLast Call\u201d Working Draft"},{"refs":[{"id":"ref-for-propdef-border-image\u2468"}],"title":"9. Acknowledgments"}],"url":"#propdef-border-image"}, "propdef-border-image-outset": {"dfnID":"propdef-border-image-outset","dfnText":"border-image-outset","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-image-outset"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-propdef-border-image-outset\u2460"}],"title":"5.4. \nEdge Overhang: the border-image-outset property"},{"refs":[{"id":"ref-for-propdef-border-image-outset\u2461"},{"id":"ref-for-propdef-border-image-outset\u2462"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"}],"url":"#propdef-border-image-outset"}, "propdef-border-image-repeat": {"dfnID":"propdef-border-image-repeat","dfnText":"border-image-repeat","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-image-repeat"}],"title":"5.5. \nImage Tiling: the border-image-repeat property"},{"refs":[{"id":"ref-for-propdef-border-image-repeat\u2460"}],"title":"5.6. \nDrawing the Border Image"},{"refs":[{"id":"ref-for-propdef-border-image-repeat\u2461"},{"id":"ref-for-propdef-border-image-repeat\u2462"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"},{"refs":[{"id":"ref-for-propdef-border-image-repeat\u2463"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"#propdef-border-image-repeat"}, "propdef-border-image-slice": {"dfnID":"propdef-border-image-slice","dfnText":"border-image-slice","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-image-slice"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-propdef-border-image-slice\u2460"}],"title":"5.1. \nImage Source: the border-image-source property"},{"refs":[{"id":"ref-for-propdef-border-image-slice\u2461"},{"id":"ref-for-propdef-border-image-slice\u2462"}],"title":"5.2. \nImage Slicing: the border-image-slice property"},{"refs":[{"id":"ref-for-propdef-border-image-slice\u2463"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-propdef-border-image-slice\u2464"}],"title":"5.6. \nDrawing the Border Image"},{"refs":[{"id":"ref-for-propdef-border-image-slice\u2465"},{"id":"ref-for-propdef-border-image-slice\u2466"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"}],"url":"#propdef-border-image-slice"}, "propdef-border-image-source": {"dfnID":"propdef-border-image-source","dfnText":"border-image-source","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-image-source"},{"id":"ref-for-propdef-border-image-source\u2460"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-propdef-border-image-source\u2461"}],"title":"5.1. \nImage Source: the border-image-source property"},{"refs":[{"id":"ref-for-propdef-border-image-source\u2462"},{"id":"ref-for-propdef-border-image-source\u2463"}],"title":"5.6. \nDrawing the Border Image"},{"refs":[{"id":"ref-for-propdef-border-image-source\u2464"},{"id":"ref-for-propdef-border-image-source\u2465"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"}],"url":"#propdef-border-image-source"}, "propdef-border-image-width": {"dfnID":"propdef-border-image-width","dfnText":"border-image-width","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-image-width"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-propdef-border-image-width\u2460"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-propdef-border-image-width\u2461"},{"id":"ref-for-propdef-border-image-width\u2462"},{"id":"ref-for-propdef-border-image-width\u2463"},{"id":"ref-for-propdef-border-image-width\u2464"},{"id":"ref-for-propdef-border-image-width\u2465"},{"id":"ref-for-propdef-border-image-width\u2466"},{"id":"ref-for-propdef-border-image-width\u2467"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-propdef-border-image-width\u2468"}],"title":"5.6. \nDrawing the Border Image"},{"refs":[{"id":"ref-for-propdef-border-image-width\u2460\u24ea"},{"id":"ref-for-propdef-border-image-width\u2460\u2460"},{"id":"ref-for-propdef-border-image-width\u2460\u2461"}],"title":"5.7. \nBorder Image Shorthand: the border-image property"},{"refs":[{"id":"ref-for-propdef-border-image-width\u2460\u2462"},{"id":"ref-for-propdef-border-image-width\u2460\u2463"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"}],"url":"#propdef-border-image-width"}, "propdef-border-left": {"dfnID":"propdef-border-left","dfnText":"border-left","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-left"},{"id":"ref-for-propdef-border-left\u2460"},{"id":"ref-for-propdef-border-left\u2461"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-propdef-border-left\u2462"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-border-left\u2463"}],"title":"7.2. \nLevel 2"}],"url":"#propdef-border-left"}, "propdef-border-left-color": {"dfnID":"propdef-border-left-color","dfnText":"border-left-color","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-left-color"}],"title":"3.1. \nLine Colors: the border-color properties"}],"url":"#propdef-border-left-color"}, "propdef-border-left-style": {"dfnID":"propdef-border-left-style","dfnText":"border-left-style","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-left-style"}],"title":"3.2. Line Patterns: the border-style properties"}],"url":"#propdef-border-left-style"}, "propdef-border-left-width": {"dfnID":"propdef-border-left-width","dfnText":"border-left-width","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-left-width"}],"title":"3.3. \nLine Thickness: the border-width properties"}],"url":"#propdef-border-left-width"}, "propdef-border-radius": {"dfnID":"propdef-border-radius","dfnText":"border-radius","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-radius"}],"title":"2.7. \nPainting Area: the background-clip property"},{"refs":[{"id":"ref-for-propdef-border-radius\u2460"},{"id":"ref-for-propdef-border-radius\u2461"},{"id":"ref-for-propdef-border-radius\u2462"}],"title":"4.1. \nCurve Radii: the border-radius properties"},{"refs":[{"id":"ref-for-propdef-border-radius\u2463"},{"id":"ref-for-propdef-border-radius\u2464"},{"id":"ref-for-propdef-border-radius\u2465"}],"title":"4.3. \nCorner Clipping"},{"refs":[{"id":"ref-for-propdef-border-radius\u2466"}],"title":"4.6. \nEffect on Tables"},{"refs":[{"id":"ref-for-propdef-border-radius\u2467"}],"title":"8.1. \nChanges since the 14 February 2023 Candidate Recommendation Snapshot"},{"refs":[{"id":"ref-for-propdef-border-radius\u2468"}],"title":"8.4. \nChanges since the 9 September 2014 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-border-radius\u2460\u24ea"},{"id":"ref-for-propdef-border-radius\u2460\u2460"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-border-radius\u2460\u2461"}],"title":"8.7. \nChanges since the 17 April 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-border-radius\u2460\u2462"}],"title":"8.8. \nChanges since the 14 February 2012 \u201cLast Call\u201d Working Draft"},{"refs":[{"id":"ref-for-propdef-border-radius\u2460\u2463"}],"title":"8.10. \nChanges Since the 17 December 2009 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-border-radius\u2460\u2464"}],"title":"9. Acknowledgments"}],"url":"#propdef-border-radius"}, "propdef-border-right": {"dfnID":"propdef-border-right","dfnText":"border-right","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-right"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-border-right\u2460"}],"title":"7.2. \nLevel 2"}],"url":"#propdef-border-right"}, "propdef-border-right-color": {"dfnID":"propdef-border-right-color","dfnText":"border-right-color","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-right-color"}],"title":"3.1. \nLine Colors: the border-color properties"}],"url":"#propdef-border-right-color"}, "propdef-border-right-style": {"dfnID":"propdef-border-right-style","dfnText":"border-right-style","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-right-style"}],"title":"3.2. Line Patterns: the border-style properties"}],"url":"#propdef-border-right-style"}, "propdef-border-right-width": {"dfnID":"propdef-border-right-width","dfnText":"border-right-width","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-right-width"}],"title":"3.3. \nLine Thickness: the border-width properties"}],"url":"#propdef-border-right-width"}, "propdef-border-style": {"dfnID":"propdef-border-style","dfnText":"border-style","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-style"}],"title":"3. \nBorders"},{"refs":[{"id":"ref-for-propdef-border-style\u2460"}],"title":"3.1. \nLine Colors: the border-color properties"},{"refs":[{"id":"ref-for-propdef-border-style\u2461"},{"id":"ref-for-propdef-border-style\u2462"},{"id":"ref-for-propdef-border-style\u2463"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-propdef-border-style\u2464"},{"id":"ref-for-propdef-border-style\u2465"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-propdef-border-style\u2466"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-propdef-border-style\u2467"},{"id":"ref-for-propdef-border-style\u2468"}],"title":"5.1. \nImage Source: the border-image-source property"},{"refs":[{"id":"ref-for-propdef-border-style\u2460\u24ea"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-border-style\u2460\u2460"}],"title":"7.2. \nLevel 2"},{"refs":[{"id":"ref-for-propdef-border-style\u2460\u2461"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"}],"url":"#propdef-border-style"}, "propdef-border-top": {"dfnID":"propdef-border-top","dfnText":"border-top","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-top"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-border-top\u2460"}],"title":"7.2. \nLevel 2"}],"url":"#propdef-border-top"}, "propdef-border-top-color": {"dfnID":"propdef-border-top-color","dfnText":"border-top-color","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-top-color"}],"title":"3.1. \nLine Colors: the border-color properties"}],"url":"#propdef-border-top-color"}, "propdef-border-top-left-radius": {"dfnID":"propdef-border-top-left-radius","dfnText":"border-top-left-radius","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-top-left-radius"}],"title":"4.1. \nCurve Radii: the border-radius properties"}],"url":"#propdef-border-top-left-radius"}, "propdef-border-top-right-radius": {"dfnID":"propdef-border-top-right-radius","dfnText":"border-top-right-radius","external":false,"refSections":[],"url":"#propdef-border-top-right-radius"}, "propdef-border-top-style": {"dfnID":"propdef-border-top-style","dfnText":"border-top-style","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-top-style"}],"title":"3.2. Line Patterns: the border-style properties"}],"url":"#propdef-border-top-style"}, "propdef-border-top-width": {"dfnID":"propdef-border-top-width","dfnText":"border-top-width","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-top-width"}],"title":"3.3. \nLine Thickness: the border-width properties"}],"url":"#propdef-border-top-width"}, "propdef-border-width": {"dfnID":"propdef-border-width","dfnText":"border-width","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-border-width"}],"title":"3. \nBorders"},{"refs":[{"id":"ref-for-propdef-border-width\u2460"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-propdef-border-width\u2461"},{"id":"ref-for-propdef-border-width\u2462"},{"id":"ref-for-propdef-border-width\u2463"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-propdef-border-width\u2464"},{"id":"ref-for-propdef-border-width\u2465"}],"title":"3.4. \nBorder Shorthand Properties"},{"refs":[{"id":"ref-for-propdef-border-width\u2466"},{"id":"ref-for-propdef-border-width\u2467"}],"title":"5. \nBorder Images"},{"refs":[{"id":"ref-for-propdef-border-width\u2468"}],"title":"5.3. \nDrawing Areas: the border-image-width property"},{"refs":[{"id":"ref-for-propdef-border-width\u2460\u24ea"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-propdef-border-width\u2460\u2460"}],"title":"7.2. \nLevel 2"},{"refs":[{"id":"ref-for-propdef-border-width\u2460\u2461"}],"title":"8.2. \nChanges since the 22 December 2020 Candidate Recommendation Snapshot"},{"refs":[{"id":"ref-for-propdef-border-width\u2460\u2462"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-border-width\u2460\u2463"}],"title":"8.8. \nChanges since the 14 February 2012 \u201cLast Call\u201d Working Draft"},{"refs":[{"id":"ref-for-propdef-border-width\u2460\u2464"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"#propdef-border-width"}, "propdef-box-shadow": {"dfnID":"propdef-box-shadow","dfnText":"box-shadow","external":false,"refSections":[{"refs":[{"id":"ref-for-propdef-box-shadow\u2460"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-propdef-box-shadow\u2461"}],"title":"1.1. \nModule Interactions"},{"refs":[{"id":"ref-for-propdef-box-shadow\u2462"},{"id":"ref-for-propdef-box-shadow\u2463"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-propdef-box-shadow\u2464"}],"title":"8.4. \nChanges since the 9 September 2014 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-box-shadow\u2465"},{"id":"ref-for-propdef-box-shadow\u2466"},{"id":"ref-for-propdef-box-shadow\u2467"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"},{"refs":[{"id":"ref-for-propdef-box-shadow\u2468"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"#propdef-box-shadow"}, "shadow-blur-radius": {"dfnID":"shadow-blur-radius","dfnText":"3rd <length [0,\u221e]>","external":false,"refSections":[],"url":"#shadow-blur-radius"}, "shadow-color": {"dfnID":"shadow-color","dfnText":"<color>","external":false,"refSections":[],"url":"#shadow-color"}, "shadow-inset": {"dfnID":"shadow-inset","dfnText":"inset","external":false,"refSections":[{"refs":[{"id":"ref-for-shadow-inset"},{"id":"ref-for-shadow-inset\u2460"},{"id":"ref-for-shadow-inset\u2461"},{"id":"ref-for-shadow-inset\u2462"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-shadow-inset\u2463"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"}],"url":"#shadow-inset"}, "shadow-offset-x": {"dfnID":"shadow-offset-x","dfnText":"1st <length>","external":false,"refSections":[],"url":"#shadow-offset-x"}, "shadow-offset-y": {"dfnID":"shadow-offset-y","dfnText":"2nd <length>","external":false,"refSections":[],"url":"#shadow-offset-y"}, "shadow-spread-distance": {"dfnID":"shadow-spread-distance","dfnText":"4th <length>","external":false,"refSections":[],"url":"#shadow-spread-distance"}, "typedef-attachment": {"dfnID":"typedef-attachment","dfnText":"<attachment>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-attachment"},{"id":"ref-for-typedef-attachment\u2460"},{"id":"ref-for-typedef-attachment\u2461"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-typedef-attachment\u2462"},{"id":"ref-for-typedef-attachment\u2463"}],"title":"2.10. \nBackgrounds Shorthand: the background property"}],"url":"#typedef-attachment"}, "typedef-bg-image": {"dfnID":"typedef-bg-image","dfnText":"<bg-image>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-bg-image"},{"id":"ref-for-typedef-bg-image\u2460"},{"id":"ref-for-typedef-bg-image\u2461"}],"title":"2.3. \nImage Sources: the background-image property"},{"refs":[{"id":"ref-for-typedef-bg-image\u2462"},{"id":"ref-for-typedef-bg-image\u2463"}],"title":"2.10. \nBackgrounds Shorthand: the background property"}],"url":"#typedef-bg-image"}, "typedef-bg-layer": {"dfnID":"typedef-bg-layer","dfnText":"<bg-layer>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-bg-layer"},{"id":"ref-for-typedef-bg-layer\u2460"}],"title":"2.10. \nBackgrounds Shorthand: the background property"}],"url":"#typedef-bg-layer"}, "typedef-bg-position": {"dfnID":"typedef-bg-position","dfnText":"<bg-position>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-bg-position"},{"id":"ref-for-typedef-bg-position\u2460"},{"id":"ref-for-typedef-bg-position\u2461"}],"title":"2.6. Positioning Images: the background-position property"},{"refs":[{"id":"ref-for-typedef-bg-position\u2462"}],"title":"2.6.1. \nSerialization of background-position values"},{"refs":[{"id":"ref-for-typedef-bg-position\u2463"},{"id":"ref-for-typedef-bg-position\u2464"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-typedef-bg-position\u2465"}],"title":"8.4. \nChanges since the 9 September 2014 Candidate Recommendation"}],"url":"#typedef-bg-position"}, "typedef-bg-size": {"dfnID":"typedef-bg-size","dfnText":"<bg-size>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-bg-size"},{"id":"ref-for-typedef-bg-size\u2460"},{"id":"ref-for-typedef-bg-size\u2461"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-typedef-bg-size\u2462"},{"id":"ref-for-typedef-bg-size\u2463"}],"title":"2.10. \nBackgrounds Shorthand: the background property"}],"url":"#typedef-bg-size"}, "typedef-final-bg-layer": {"dfnID":"typedef-final-bg-layer","dfnText":"<final-bg-layer>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-final-bg-layer"},{"id":"ref-for-typedef-final-bg-layer\u2460"}],"title":"2.10. \nBackgrounds Shorthand: the background property"},{"refs":[{"id":"ref-for-typedef-final-bg-layer\u2461"}],"title":"8.4. \nChanges since the 9 September 2014 Candidate Recommendation"}],"url":"#typedef-final-bg-layer"}, "typedef-line-style": {"dfnID":"typedef-line-style","dfnText":"<line-style>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-line-style"},{"id":"ref-for-typedef-line-style\u2460"},{"id":"ref-for-typedef-line-style\u2461"},{"id":"ref-for-typedef-line-style\u2462"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-typedef-line-style\u2463"},{"id":"ref-for-typedef-line-style\u2464"}],"title":"3.4. \nBorder Shorthand Properties"}],"url":"#typedef-line-style"}, "typedef-line-width": {"dfnID":"typedef-line-width","dfnText":"<line-width>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-line-width"},{"id":"ref-for-typedef-line-width\u2460"},{"id":"ref-for-typedef-line-width\u2461"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-typedef-line-width\u2462"},{"id":"ref-for-typedef-line-width\u2463"}],"title":"3.4. \nBorder Shorthand Properties"}],"url":"#typedef-line-width"}, "typedef-repeat-style": {"dfnID":"typedef-repeat-style","dfnText":"<repeat-style>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-repeat-style"},{"id":"ref-for-typedef-repeat-style\u2460"},{"id":"ref-for-typedef-repeat-style\u2461"},{"id":"ref-for-typedef-repeat-style\u2462"},{"id":"ref-for-typedef-repeat-style\u2463"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-typedef-repeat-style\u2464"},{"id":"ref-for-typedef-repeat-style\u2465"}],"title":"2.10. \nBackgrounds Shorthand: the background property"}],"url":"#typedef-repeat-style"}, "typedef-shadow": {"dfnID":"typedef-shadow","dfnText":"<shadow>","external":false,"refSections":[{"refs":[{"id":"ref-for-typedef-shadow"},{"id":"ref-for-typedef-shadow\u2460"},{"id":"ref-for-typedef-shadow\u2461"},{"id":"ref-for-typedef-shadow\u2462"}],"title":"6.1. Drop Shadows: the box-shadow property"},{"refs":[{"id":"ref-for-typedef-shadow\u2463"},{"id":"ref-for-typedef-shadow\u2464"},{"id":"ref-for-typedef-shadow\u2465"}],"title":"8.3. \nChanges since the 17 October 2017 Candidate Recommendation"}],"url":"#typedef-shadow"}, "valdef-background-attachment-fixed": {"dfnID":"valdef-background-attachment-fixed","dfnText":"fixed","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-attachment-fixed"},{"id":"ref-for-valdef-background-attachment-fixed\u2460"},{"id":"ref-for-valdef-background-attachment-fixed\u2461"},{"id":"ref-for-valdef-background-attachment-fixed\u2462"},{"id":"ref-for-valdef-background-attachment-fixed\u2463"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-valdef-background-attachment-fixed\u2464"}],"title":"2.8. \nPositioning Area: the background-origin property"},{"refs":[{"id":"ref-for-valdef-background-attachment-fixed\u2465"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-valdef-background-attachment-fixed\u2466"}],"title":"7.2. \nLevel 2"}],"url":"#valdef-background-attachment-fixed"}, "valdef-background-attachment-local": {"dfnID":"valdef-background-attachment-local","dfnText":"local","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-attachment-local"}],"title":"2.5. \nAffixing Images: the background-attachment property"}],"url":"#valdef-background-attachment-local"}, "valdef-background-attachment-scroll": {"dfnID":"valdef-background-attachment-scroll","dfnText":"scroll","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-attachment-scroll"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-valdef-background-attachment-scroll\u2460"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-valdef-background-attachment-scroll\u2461"}],"title":"7.2. \nLevel 2"}],"url":"#valdef-background-attachment-scroll"}, "valdef-background-clip-border-box": {"dfnID":"valdef-background-clip-border-box","dfnText":"border-box","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-clip-border-box"}],"title":"2.5. \nAffixing Images: the background-attachment property"}],"url":"#valdef-background-clip-border-box"}, "valdef-background-clip-content-box": {"dfnID":"valdef-background-clip-content-box","dfnText":"content-box","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-clip-content-box"}],"title":"8.10. \nChanges Since the 17 December 2009 Candidate Recommendation"}],"url":"#valdef-background-clip-content-box"}, "valdef-background-clip-padding-box": {"dfnID":"valdef-background-clip-padding-box","dfnText":"padding-box","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-clip-padding-box"}],"title":"2.5. \nAffixing Images: the background-attachment property"},{"refs":[{"id":"ref-for-valdef-background-clip-padding-box\u2460"}],"title":"2.8. \nPositioning Area: the background-origin property"}],"url":"#valdef-background-clip-padding-box"}, "valdef-background-image-none": {"dfnID":"valdef-background-image-none","dfnText":"none","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-image-none"}],"title":"2.1. \nLayering Multiple Background Images"},{"refs":[{"id":"ref-for-valdef-background-image-none\u2460"}],"title":"2.3. \nImage Sources: the background-image property"},{"refs":[{"id":"ref-for-valdef-background-image-none\u2461"}],"title":"2.11.2. \nThe Canvas Background and the HTML <body> Element"}],"url":"#valdef-background-image-none"}, "valdef-background-origin-border-box": {"dfnID":"valdef-background-origin-border-box","dfnText":"border-box","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-origin-border-box"}],"title":"2.8. \nPositioning Area: the background-origin property"}],"url":"#valdef-background-origin-border-box"}, "valdef-background-origin-content-box": {"dfnID":"valdef-background-origin-content-box","dfnText":"content-box","external":false,"refSections":[],"url":"#valdef-background-origin-content-box"}, "valdef-background-origin-padding-box": {"dfnID":"valdef-background-origin-padding-box","dfnText":"padding-box","external":false,"refSections":[],"url":"#valdef-background-origin-padding-box"}, "valdef-background-position-bottom": {"dfnID":"valdef-background-position-bottom","dfnText":"bottom","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-position-bottom"}],"title":"2.6. Positioning Images: the background-position property"}],"url":"#valdef-background-position-bottom"}, "valdef-background-position-center": {"dfnID":"valdef-background-position-center","dfnText":"center","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-position-center"},{"id":"ref-for-valdef-background-position-center\u2460"}],"title":"2.6. Positioning Images: the background-position property"}],"url":"#valdef-background-position-center"}, "valdef-background-position-left": {"dfnID":"valdef-background-position-left","dfnText":"left","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-position-left"}],"title":"2.6. Positioning Images: the background-position property"}],"url":"#valdef-background-position-left"}, "valdef-background-position-length": {"dfnID":"valdef-background-position-length","dfnText":"<length>","external":false,"refSections":[],"url":"#valdef-background-position-length"}, "valdef-background-position-percentage": {"dfnID":"valdef-background-position-percentage","dfnText":"<percentage>","external":false,"refSections":[],"url":"#valdef-background-position-percentage"}, "valdef-background-position-right": {"dfnID":"valdef-background-position-right","dfnText":"right","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-position-right"}],"title":"2.6. Positioning Images: the background-position property"}],"url":"#valdef-background-position-right"}, "valdef-background-position-top": {"dfnID":"valdef-background-position-top","dfnText":"top","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-position-top"}],"title":"2.6. Positioning Images: the background-position property"}],"url":"#valdef-background-position-top"}, "valdef-background-repeat-no-repeat": {"dfnID":"valdef-background-repeat-no-repeat","dfnText":"no-repeat","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-repeat-no-repeat"},{"id":"ref-for-valdef-background-repeat-no-repeat\u2460"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-valdef-background-repeat-no-repeat\u2461"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-valdef-background-repeat-no-repeat\u2462"}],"title":"7.2. \nLevel 2"}],"url":"#valdef-background-repeat-no-repeat"}, "valdef-background-repeat-repeat": {"dfnID":"valdef-background-repeat-repeat","dfnText":"repeat","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-repeat-repeat"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-valdef-background-repeat-repeat\u2460"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-valdef-background-repeat-repeat\u2461"}],"title":"7.2. \nLevel 2"}],"url":"#valdef-background-repeat-repeat"}, "valdef-background-repeat-repeat-x": {"dfnID":"valdef-background-repeat-repeat-x","dfnText":"repeat-x","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-repeat-repeat-x"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-valdef-background-repeat-repeat-x\u2460"}],"title":"7.2. \nLevel 2"}],"url":"#valdef-background-repeat-repeat-x"}, "valdef-background-repeat-repeat-y": {"dfnID":"valdef-background-repeat-repeat-y","dfnText":"repeat-y","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-repeat-repeat-y"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-valdef-background-repeat-repeat-y\u2460"}],"title":"7.1. \nLevel 1"},{"refs":[{"id":"ref-for-valdef-background-repeat-repeat-y\u2461"}],"title":"7.2. \nLevel 2"}],"url":"#valdef-background-repeat-repeat-y"}, "valdef-background-repeat-round": {"dfnID":"valdef-background-repeat-round","dfnText":"round","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-repeat-round"}],"title":"2.4. \nTiling Images: the background-repeat property"},{"refs":[{"id":"ref-for-valdef-background-repeat-round\u2460"},{"id":"ref-for-valdef-background-repeat-round\u2461"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-valdef-background-repeat-round\u2462"}],"title":"5.6. \nDrawing the Border Image"}],"url":"#valdef-background-repeat-round"}, "valdef-background-repeat-space": {"dfnID":"valdef-background-repeat-space","dfnText":"space","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-repeat-space"},{"id":"ref-for-valdef-background-repeat-space\u2460"}],"title":"2.4. \nTiling Images: the background-repeat property"}],"url":"#valdef-background-repeat-space"}, "valdef-background-size-auto": {"dfnID":"valdef-background-size-auto","dfnText":"auto","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-size-auto"},{"id":"ref-for-valdef-background-size-auto\u2460"},{"id":"ref-for-valdef-background-size-auto\u2461"},{"id":"ref-for-valdef-background-size-auto\u2462"},{"id":"ref-for-valdef-background-size-auto\u2463"}],"title":"2.9. Sizing Images: the background-size property"},{"refs":[{"id":"ref-for-valdef-background-size-auto\u2464"},{"id":"ref-for-valdef-background-size-auto\u2465"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"#valdef-background-size-auto"}, "valdef-background-size-contain": {"dfnID":"valdef-background-size-contain","dfnText":"contain","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-background-size-contain"}],"title":"2.9. Sizing Images: the background-size property"}],"url":"#valdef-background-size-contain"}, "valdef-background-size-cover": {"dfnID":"valdef-background-size-cover","dfnText":"cover","external":false,"refSections":[],"url":"#valdef-background-size-cover"}, "valdef-background-size-length-percentage-0": {"dfnID":"valdef-background-size-length-percentage-0","dfnText":"<length-percentage [0,\u221e]>","external":false,"refSections":[],"url":"#valdef-background-size-length-percentage-0"}, "valdef-border-image-repeat-repeat": {"dfnID":"valdef-border-image-repeat-repeat","dfnText":"repeat","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-border-image-repeat-repeat"},{"id":"ref-for-valdef-border-image-repeat-repeat\u2460"},{"id":"ref-for-valdef-border-image-repeat-repeat\u2461"},{"id":"ref-for-valdef-border-image-repeat-repeat\u2462"}],"title":"5.6. \nDrawing the Border Image"}],"url":"#valdef-border-image-repeat-repeat"}, "valdef-border-image-repeat-round": {"dfnID":"valdef-border-image-repeat-round","dfnText":"round","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-border-image-repeat-round"},{"id":"ref-for-valdef-border-image-repeat-round\u2460"}],"title":"5.6. \nDrawing the Border Image"}],"url":"#valdef-border-image-repeat-round"}, "valdef-border-image-repeat-space": {"dfnID":"valdef-border-image-repeat-space","dfnText":"space","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-border-image-repeat-space"},{"id":"ref-for-valdef-border-image-repeat-space\u2460"},{"id":"ref-for-valdef-border-image-repeat-space\u2461"}],"title":"5.6. \nDrawing the Border Image"},{"refs":[{"id":"ref-for-valdef-border-image-repeat-space\u2462"}],"title":"8.9. \nChanges Since the 15 February 2011 Candidate Recommendation"}],"url":"#valdef-border-image-repeat-space"}, "valdef-border-image-repeat-stretch": {"dfnID":"valdef-border-image-repeat-stretch","dfnText":"stretch","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-border-image-repeat-stretch"},{"id":"ref-for-valdef-border-image-repeat-stretch\u2460"}],"title":"5.6. \nDrawing the Border Image"}],"url":"#valdef-border-image-repeat-stretch"}, "valdef-border-image-slice-number-0": {"dfnID":"valdef-border-image-slice-number-0","dfnText":"<number [0,\u221e]>","external":false,"refSections":[],"url":"#valdef-border-image-slice-number-0"}, "valdef-border-image-slice-percentage-0": {"dfnID":"valdef-border-image-slice-percentage-0","dfnText":"<percentage [0,\u221e]>","external":false,"refSections":[],"url":"#valdef-border-image-slice-percentage-0"}, "valdef-border-image-width-auto": {"dfnID":"valdef-border-image-width-auto","dfnText":"auto","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-border-image-width-auto"},{"id":"ref-for-valdef-border-image-width-auto\u2460"}],"title":"5.3. \nDrawing Areas: the border-image-width property"}],"url":"#valdef-border-image-width-auto"}, "valdef-border-image-width-length-percentage-0": {"dfnID":"valdef-border-image-width-length-percentage-0","dfnText":"<length-percentage [0,\u221e]>","external":false,"refSections":[],"url":"#valdef-border-image-width-length-percentage-0"}, "valdef-border-image-width-number-0": {"dfnID":"valdef-border-image-width-number-0","dfnText":"<number [0,\u221e]>","external":false,"refSections":[],"url":"#valdef-border-image-width-number-0"}, "valdef-line-style-dashed": {"dfnID":"valdef-line-style-dashed","dfnText":"dashed","external":false,"refSections":[],"url":"#valdef-line-style-dashed"}, "valdef-line-style-dotted": {"dfnID":"valdef-line-style-dotted","dfnText":"dotted","external":false,"refSections":[],"url":"#valdef-line-style-dotted"}, "valdef-line-style-double": {"dfnID":"valdef-line-style-double","dfnText":"double","external":false,"refSections":[],"url":"#valdef-line-style-double"}, "valdef-line-style-groove": {"dfnID":"valdef-line-style-groove","dfnText":"groove","external":false,"refSections":[],"url":"#valdef-line-style-groove"}, "valdef-line-style-hidden": {"dfnID":"valdef-line-style-hidden","dfnText":"hidden","external":false,"refSections":[],"url":"#valdef-line-style-hidden"}, "valdef-line-style-inset": {"dfnID":"valdef-line-style-inset","dfnText":"inset","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-line-style-inset"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-valdef-line-style-inset\u2460"}],"title":"4.2. \nCorner Shaping"}],"url":"#valdef-line-style-inset"}, "valdef-line-style-none": {"dfnID":"valdef-line-style-none","dfnText":"none","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-line-style-none"}],"title":"3.2. Line Patterns: the border-style properties"},{"refs":[{"id":"ref-for-valdef-line-style-none\u2460"},{"id":"ref-for-valdef-line-style-none\u2461"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-valdef-line-style-none\u2462"}],"title":"8.6. \nChanges since the 24 July 2012 Candidate Recommendation"}],"url":"#valdef-line-style-none"}, "valdef-line-style-outset": {"dfnID":"valdef-line-style-outset","dfnText":"outset","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-line-style-outset"}],"title":"3.2. Line Patterns: the border-style properties"}],"url":"#valdef-line-style-outset"}, "valdef-line-style-ridge": {"dfnID":"valdef-line-style-ridge","dfnText":"ridge","external":false,"refSections":[],"url":"#valdef-line-style-ridge"}, "valdef-line-style-solid": {"dfnID":"valdef-line-style-solid","dfnText":"solid","external":false,"refSections":[],"url":"#valdef-line-style-solid"}, "valdef-line-width-medium": {"dfnID":"valdef-line-width-medium","dfnText":"medium","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-line-width-medium"}],"title":"3.3. \nLine Thickness: the border-width properties"},{"refs":[{"id":"ref-for-valdef-line-width-medium\u2460"}],"title":"8.2. \nChanges since the 22 December 2020 Candidate Recommendation Snapshot"}],"url":"#valdef-line-width-medium"}, "valdef-line-width-thick": {"dfnID":"valdef-line-width-thick","dfnText":"thick","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-line-width-thick"}],"title":"8.2. \nChanges since the 22 December 2020 Candidate Recommendation Snapshot"}],"url":"#valdef-line-width-thick"}, "valdef-line-width-thin": {"dfnID":"valdef-line-width-thin","dfnText":"thin","external":false,"refSections":[{"refs":[{"id":"ref-for-valdef-line-width-thin"}],"title":"8.2. \nChanges since the 22 December 2020 Candidate Recommendation Snapshot"}],"url":"#valdef-line-width-thin"}, }; document.addEventListener("DOMContentLoaded", ()=>{ genAllDfnPanels(); document.body.addEventListener("click", (e) => { // If not handled already, just hide all dfn panels. hideAllDfnPanels(); }); }); window.addEventListener("resize", () => { // Pin any visible dfn panel queryAll(".dfn-panel.on, .dfn-panel.activated").forEach(el=>positionDfnPanel(el)); }); function genAllDfnPanels() { for(const panelData of Object.values(dfnPanelData)) { const dfnID = panelData.dfnID; const dfn = document.getElementById(dfnID); if(!dfn) { console.log(`Can't find dfn#${dfnID}.`, panelData); continue; } dfn.panelData = panelData; insertDfnPopupAction(dfn); } } function genDfnPanel(dfn, { dfnID, url, dfnText, refSections, external }) { const dfnPanel = mk.aside({ class: "dfn-panel on", id: `infopanel-for-${dfnID}`, "data-for": dfnID, "aria-labelled-by":`infopaneltitle-for-${dfnID}`, }, mk.span({id:`infopaneltitle-for-${dfnID}`, style:"display:none"}, `Info about the '${dfnText}' ${external?"external":""} reference.`), mk.a({href:url, class:"dfn-link"}, url), refSections.length == 0 ? [] : mk.b({}, "Referenced in:"), mk.ul({}, ...refSections.map(section=> mk.li({}, ...section.refs.map((ref, refI)=> [ mk.a({ href: `#${ref.id}` }, (refI == 0) ? section.title : `(${refI + 1})` ), " ", ] ), ), ), ), genLinkingSyntaxes(dfn), ); dfnPanel.addEventListener('click', (event) => { if (event.target.nodeName == 'A') { scrollToTargetAndHighlight(event); pinDfnPanel(dfnPanel); } event.stopPropagation(); refocusOnTarget(event); }); dfnPanel.addEventListener('keydown', (event) => { if(event.keyCode == 27) { // Escape key hideDfnPanel({dfnPanel}); event.stopPropagation(); event.preventDefault(); } }); dfnPanel.dfn = dfn; dfn.dfnPanel = dfnPanel; return dfnPanel; } function hideAllDfnPanels() { // Delete the currently-active dfn panel. queryAll(".dfn-panel").forEach(dfnPanel=>hideDfnPanel({dfnPanel})); } function showDfnPanel(dfn) { hideAllDfnPanels(); // Only display one at a time. dfn.setAttribute("aria-expanded", "true"); const dfnPanel = genDfnPanel(dfn, dfn.panelData); // Give the dfn a unique tabindex, and then // give all the tabbable panel bits successive indexes. let tabIndex = 100; dfn.tabIndex = tabIndex++; const tabbable = dfnPanel.querySelectorAll(":is(a, button)"); for (const el of tabbable) { el.tabIndex = tabIndex++; } append(document.body, dfnPanel); positionDfnPanel(dfnPanel); } function positionDfnPanel(dfnPanel) { const dfn = dfnPanel.dfn; const dfnPos = getBounds(dfn); dfnPanel.style.top = dfnPos.bottom + "px"; dfnPanel.style.left = dfnPos.left + "px"; const panelPos = dfnPanel.getBoundingClientRect(); const panelMargin = 8; const maxRight = document.body.parentNode.clientWidth - panelMargin; if (panelPos.right > maxRight) { const overflowAmount = panelPos.right - maxRight; const newLeft = Math.max(panelMargin, dfnPos.left - overflowAmount); dfnPanel.style.left = newLeft + "px"; } } function pinDfnPanel(dfnPanel) { // Switch it to "activated" state, which pins it. dfnPanel.classList.add("activated"); dfnPanel.style.position = "fixed"; dfnPanel.style.left = null; dfnPanel.style.top = null; } function hideDfnPanel({dfn, dfnPanel}) { if(!dfnPanel) dfnPanel = dfn.dfnPanel; if(!dfn) dfn = dfnPanel.dfn; dfn.dfnPanel = undefined; dfnPanel.dfn = undefined; dfn.setAttribute("aria-expanded", "false"); dfn.tabIndex = undefined; dfnPanel.remove() } function toggleDfnPanel(dfn) { if(dfn.dfnPanel) { hideDfnPanel(dfn); } else { showDfnPanel(dfn); } } function insertDfnPopupAction(dfn) { dfn.setAttribute('role', 'button'); dfn.setAttribute('aria-expanded', 'false') dfn.tabIndex = 0; dfn.classList.add('has-dfn-panel'); dfn.addEventListener('click', (event) => { toggleDfnPanel(dfn); event.stopPropagation(); }); dfn.addEventListener('keypress', (event) => { const kc = event.keyCode; // 32->Space, 13->Enter if(kc == 32 || kc == 13) { toggleDfnPanel(dfn); event.stopPropagation(); event.preventDefault(); } }); } function refocusOnTarget(event) { const target = event.target; setTimeout(() => { // Refocus on the event.target element. // This is needed after browser scrolls to the destination. target.focus(); }); } // TODO: shared util // Returns the root-level absolute position {left and top} of element. function getBounds(el, relativeTo=document.body) { const relativeRect = relativeTo.getBoundingClientRect(); const elRect = el.getBoundingClientRect(); const top = elRect.top - relativeRect.top; const left = elRect.left - relativeRect.left; return { top, left, bottom: top + elRect.height, right: left + elRect.width, } } function scrollToTargetAndHighlight(event) { let hash = event.target.hash; if (hash) { hash = decodeURIComponent(hash.substring(1)); const dest = document.getElementById(hash); if (dest) { dest.classList.add('highlighted'); setTimeout(() => dest.classList.remove('highlighted'), 1000); } } } // Functions, divided by link type, that wrap an autolink's // contents with the appropriate outer syntax. // Alternately, a string naming another type they format // the same as. function needsFor(type) { switch(type) { case "descriptor": case "value": case "element-attr": case "attr-value": case "element-state": case "method": case "constructor": case "argument": case "attribute": case "const": case "dict-member": case "event": case "enum-value": case "stringifier": case "serializer": case "iterator": case "maplike": case "setlike": case "state": case "mode": case "context": case "facet": return true; default: return false; } } function refusesFor(type) { switch(type) { case "property": case "element": case "interface": case "namespace": case "callback": case "dictionary": case "enum": case "exception": case "typedef": case "http-header": case "permission": return true; default: return false; } } function linkFormatterFromType(type) { switch(type) { case 'scheme': case 'permission': case 'dfn': return (text) => `[=${text}=]`; case 'abstract-op': return (text) => `[\$${text}\$]`; case 'function': case 'at-rule': case 'selector': case 'value': return (text) => `''${text}''`; case 'http-header': return (text) => `[:${text}:]`; case 'interface': case 'constructor': case 'method': case 'argument': case 'attribute': case 'callback': case 'dictionary': case 'dict-member': case 'enum': case 'enum-value': case 'exception': case 'const': case 'typedef': case 'stringifier': case 'serializer': case 'iterator': case 'maplike': case 'setlike': case 'extended-attribute': case 'event': case 'idl': return (text) => `{{${text}}}`; case 'element-state': case 'element-attr': case 'attr-value': case 'element': return (element) => `<{${element}}>`; case 'grammar': return (text) => `${text} (within a <pre class=prod>)`; case 'type': return (text)=> `<<${text}>>`; case 'descriptor': case 'property': return (text) => `'${text}'`; default: return; }; }; function genLinkingSyntaxes(dfn) { if(dfn.tagName != "DFN") return; const type = dfn.getAttribute('data-dfn-type'); if(!type) { console.log(`<dfn> doesn't have a data-dfn-type:`, dfn); return []; } // Return a function that wraps link text based on the type const linkFormatter = linkFormatterFromType(type); if(!linkFormatter) { console.log(`<dfn> has an unknown data-dfn-type:`, dfn); return []; } let ltAlts; if(dfn.hasAttribute('data-lt')) { ltAlts = dfn.getAttribute('data-lt') .split("|") .map(x=>x.trim()); } else { ltAlts = [dfn.textContent.trim()]; } if(type == "type") { // lt of "<foo>", but "foo" is the interior; // <<foo/bar>> is how you write it with a for, // not <foo/<bar>> or whatever. for(var i = 0; i < ltAlts.length; i++) { const lt = ltAlts[i]; const match = /<(.*)>/.exec(lt); if(match) { ltAlts[i] = match[1]; } } } let forAlts; if(dfn.hasAttribute('data-dfn-for')) { forAlts = dfn.getAttribute('data-dfn-for') .split(",") .map(x=>x.trim()); } else { forAlts = ['']; } let linkingSyntaxes = []; if(!needsFor(type)) { for(const lt of ltAlts) { linkingSyntaxes.push(linkFormatter(lt)); } } if(!refusesFor(type)) { for(const f of forAlts) { linkingSyntaxes.push(linkFormatter(`${f}/${ltAlts[0]}`)) } } return [ mk.b({}, 'Possible linking syntaxes:'), mk.ul({}, ...linkingSyntaxes.map(link => { const copyLink = async () => await navigator.clipboard.writeText(link); return mk.li({}, mk.div({ class: 'link-item' }, mk.button({ class: 'copy-icon', title: 'Copy', type: 'button', _onclick: copyLink, tabindex: 0, }, mk.span({ class: 'icon' }) ), mk.span({}, link) ) ); }) ) ]; } } </script> <script>/* Boilerplate: script-link-titles */ "use strict"; { let linkTitleData = { "#typedef-line-style": "Expands to: dashed | dotted | double | groove | hidden | inset | none | outset | ridge | solid", "#typedef-line-width": "Expands to: medium | thick | thin", "https://drafts.csswg.org/css-box-4/#typedef-visual-box": "Expands to: border-box | content-box | padding-box", "https://drafts.csswg.org/css-color-5/#typedef-color": "Expands to: <alpha-value> | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | currentcolor | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | none | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | transparent | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen", "https://drafts.csswg.org/css-values-3/#typedef-position": "Expands to: block-end | block-start | bottom | center | inline-end | inline-start | left | right | top | x-end | x-start | y-end | y-start", "https://drafts.csswg.org/css-values-4/#length-value": "Expands to: advance measure | cap | ch | cm | dvb | dvh | dvi | dvmax | dvmin | dvw | em | ex | ic | in | lh | lvb | lvh | lvi | lvmax | lvmin | lvw | mm | pc | pt | px | rcap | rch | rem | rex | ric | rlh | svb | svh | svi | svmax | svmin | svw | vb | vh | vi | vmax | vmin | vw", }; function setTypeTitles() { for(let el of document.querySelectorAll("a[href]")) { if(el.href in linkTitleData && !el.hasAttribute("title")) { el.setAttribute("title", linkTitleData[el.href]); } } } document.addEventListener("DOMContentLoaded", setTypeTitles); } </script> <script>/* Boilerplate: script-position-annos */ "use strict"; { function repositionAnnoPanels(){ const panels = [...document.querySelectorAll("[data-anno-for]")]; hydratePanels(panels); let vSoFar = 0; for(const panel of panels.sort(cmpTops)) { if(panel.top < vSoFar) { panel.top = vSoFar; panel.style.top = vSoFar + "px"; } vSoFar = panel.top + panel.height + 15; } } function hydratePanels(panels) { const main = document.querySelector("main"); let mainRect; if(main) mainRect = main.getBoundingClientRect(); // First display them all, if they're not already visible. for(const panel of panels) { panel.classList.remove("unpositioned"); } // Measure them all for(const panel of panels) { const dfn = document.getElementById(panel.getAttribute("data-anno-for")); if(!dfn) { console.log("Can't find the annotation panel target:", panel); continue; } panel.dfn = dfn; panel.top = window.scrollY + dfn.getBoundingClientRect().top; let panelRect = panel.getBoundingClientRect(); panel.height = panelRect.height; if(main) { panel.overlappingMain = panelRect.left < mainRect.right; } else { panel.overlappingMain = false; } } // And finally position them for(const panel of panels) { const dfn = panel.dfn; if(!dfn) continue; panel.style.top = panel.top + "px"; panel.classList.toggle("overlapping-main", panel.overlappingMain); } } function cmpTops(a,b) { return a.top - b.top; } window.addEventListener("load", repositionAnnoPanels); window.addEventListener("resize", repositionAnnoPanels); } </script> <script>/* Boilerplate: script-ref-hints */ "use strict"; { let refsData = { "#background-color-layer": {"displayText":"background color","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background color","type":"dfn","url":"#background-color-layer"}, "#background-image-layer": {"displayText":"layer","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"layer","type":"dfn","url":"#background-image-layer"}, "#background-images": {"displayText":"background image","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background image","type":"dfn","url":"#background-images"}, "#background-painting-area": {"displayText":"background painting area","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background painting area","type":"dfn","url":"#background-painting-area"}, "#background-positioning-area": {"displayText":"background positioning area","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background positioning area","type":"dfn","url":"#background-positioning-area"}, "#border-image-area": {"displayText":"border image area","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border image area","type":"dfn","url":"#border-image-area"}, "#border-image-dfn": {"displayText":"border image","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border image","type":"dfn","url":"#border-image-dfn"}, "#border-image-region": {"displayText":"region","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"region","type":"dfn","url":"#border-image-region"}, "#border-image-slice-fill": {"displayText":"fill","export":true,"for_":["border-image-slice"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"fill","type":"value","url":"#border-image-slice-fill"}, "#border-radii": {"displayText":"border radius","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border radius","type":"dfn","url":"#border-radii"}, "#border-width-dfn": {"displayText":"border width","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border width","type":"dfn","url":"#border-width-dfn"}, "#box-shadow-blur-radius": {"displayText":"blur radius","export":true,"for_":["box-shadow"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"blur radius","type":"dfn","url":"#box-shadow-blur-radius"}, "#box-shadow-inner-box-shadow": {"displayText":"inner box-shadow","export":true,"for_":["box-shadow"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"inner box-shadow","type":"dfn","url":"#box-shadow-inner-box-shadow"}, "#box-shadow-none": {"displayText":"none","export":true,"for_":["box-shadow"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"none","type":"value","url":"#box-shadow-none"}, "#box-shadow-outer-box-shadow": {"displayText":"outer box-shadow","export":true,"for_":["box-shadow"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"outer box-shadow","type":"dfn","url":"#box-shadow-outer-box-shadow"}, "#box-shadow-spread-distance": {"displayText":"spread distance","export":true,"for_":["box-shadow"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"spread distance","type":"dfn","url":"#box-shadow-spread-distance"}, "#canvas-background": {"displayText":"canvas background","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"canvas background","type":"dfn","url":"#canvas-background"}, "#canvas-surface": {"displayText":"canvas surface","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"canvas surface","type":"dfn","url":"#canvas-surface"}, "#propdef-background": {"displayText":"background","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background","type":"property","url":"#propdef-background"}, "#propdef-background-attachment": {"displayText":"background-attachment","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background-attachment","type":"property","url":"#propdef-background-attachment"}, "#propdef-background-clip": {"displayText":"background-clip","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background-clip","type":"property","url":"#propdef-background-clip"}, "#propdef-background-color": {"displayText":"background-color","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background-color","type":"property","url":"#propdef-background-color"}, "#propdef-background-image": {"displayText":"background-image","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background-image","type":"property","url":"#propdef-background-image"}, "#propdef-background-origin": {"displayText":"background-origin","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background-origin","type":"property","url":"#propdef-background-origin"}, "#propdef-background-position": {"displayText":"background-position","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background-position","type":"property","url":"#propdef-background-position"}, "#propdef-background-repeat": {"displayText":"background-repeat","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background-repeat","type":"property","url":"#propdef-background-repeat"}, "#propdef-background-size": {"displayText":"background-size","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"background-size","type":"property","url":"#propdef-background-size"}, "#propdef-border": {"displayText":"border","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border","type":"property","url":"#propdef-border"}, "#propdef-border-bottom": {"displayText":"border-bottom","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-bottom","type":"property","url":"#propdef-border-bottom"}, "#propdef-border-bottom-color": {"displayText":"border-bottom-color","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-bottom-color","type":"property","url":"#propdef-border-bottom-color"}, "#propdef-border-bottom-left-radius": {"displayText":"border-bottom-left-radius","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-bottom-left-radius","type":"property","url":"#propdef-border-bottom-left-radius"}, "#propdef-border-bottom-right-radius": {"displayText":"border-bottom-right-radius","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-bottom-right-radius","type":"property","url":"#propdef-border-bottom-right-radius"}, "#propdef-border-bottom-style": {"displayText":"border-bottom-style","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-bottom-style","type":"property","url":"#propdef-border-bottom-style"}, "#propdef-border-bottom-width": {"displayText":"border-bottom-width","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-bottom-width","type":"property","url":"#propdef-border-bottom-width"}, "#propdef-border-color": {"displayText":"border-color","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-color","type":"property","url":"#propdef-border-color"}, "#propdef-border-image": {"displayText":"border-image","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-image","type":"property","url":"#propdef-border-image"}, "#propdef-border-image-outset": {"displayText":"border-image-outset","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-image-outset","type":"property","url":"#propdef-border-image-outset"}, "#propdef-border-image-repeat": {"displayText":"border-image-repeat","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-image-repeat","type":"property","url":"#propdef-border-image-repeat"}, "#propdef-border-image-slice": {"displayText":"border-image-slice","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-image-slice","type":"property","url":"#propdef-border-image-slice"}, "#propdef-border-image-source": {"displayText":"border-image-source","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-image-source","type":"property","url":"#propdef-border-image-source"}, "#propdef-border-image-width": {"displayText":"border-image-width","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-image-width","type":"property","url":"#propdef-border-image-width"}, "#propdef-border-left": {"displayText":"border-left","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-left","type":"property","url":"#propdef-border-left"}, "#propdef-border-left-color": {"displayText":"border-left-color","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-left-color","type":"property","url":"#propdef-border-left-color"}, "#propdef-border-left-style": {"displayText":"border-left-style","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-left-style","type":"property","url":"#propdef-border-left-style"}, "#propdef-border-left-width": {"displayText":"border-left-width","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-left-width","type":"property","url":"#propdef-border-left-width"}, "#propdef-border-radius": {"displayText":"border-radius","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-radius","type":"property","url":"#propdef-border-radius"}, "#propdef-border-right": {"displayText":"border-right","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-right","type":"property","url":"#propdef-border-right"}, "#propdef-border-right-color": {"displayText":"border-right-color","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-right-color","type":"property","url":"#propdef-border-right-color"}, "#propdef-border-right-style": {"displayText":"border-right-style","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-right-style","type":"property","url":"#propdef-border-right-style"}, "#propdef-border-right-width": {"displayText":"border-right-width","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-right-width","type":"property","url":"#propdef-border-right-width"}, "#propdef-border-style": {"displayText":"border-style","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-style","type":"property","url":"#propdef-border-style"}, "#propdef-border-top": {"displayText":"border-top","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-top","type":"property","url":"#propdef-border-top"}, "#propdef-border-top-color": {"displayText":"border-top-color","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-top-color","type":"property","url":"#propdef-border-top-color"}, "#propdef-border-top-left-radius": {"displayText":"border-top-left-radius","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-top-left-radius","type":"property","url":"#propdef-border-top-left-radius"}, "#propdef-border-top-right-radius": {"displayText":"border-top-right-radius","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-top-right-radius","type":"property","url":"#propdef-border-top-right-radius"}, "#propdef-border-top-style": {"displayText":"border-top-style","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-top-style","type":"property","url":"#propdef-border-top-style"}, "#propdef-border-top-width": {"displayText":"border-top-width","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-top-width","type":"property","url":"#propdef-border-top-width"}, "#propdef-border-width": {"displayText":"border-width","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-width","type":"property","url":"#propdef-border-width"}, "#propdef-box-shadow": {"displayText":"box-shadow","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"box-shadow","type":"property","url":"#propdef-box-shadow"}, "#shadow-inset": {"displayText":"inset","export":true,"for_":["box-shadow"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"inset","type":"value","url":"#shadow-inset"}, "#typedef-attachment": {"displayText":"<attachment>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<attachment>","type":"type","url":"#typedef-attachment"}, "#typedef-bg-image": {"displayText":"<bg-image>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<bg-image>","type":"type","url":"#typedef-bg-image"}, "#typedef-bg-layer": {"displayText":"<bg-layer>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<bg-layer>","type":"type","url":"#typedef-bg-layer"}, "#typedef-bg-position": {"displayText":"<bg-position>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<bg-position>","type":"type","url":"#typedef-bg-position"}, "#typedef-bg-size": {"displayText":"<bg-size>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<bg-size>","type":"type","url":"#typedef-bg-size"}, "#typedef-final-bg-layer": {"displayText":"<final-bg-layer>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<final-bg-layer>","type":"type","url":"#typedef-final-bg-layer"}, "#typedef-line-style": {"displayText":"<line-style>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<line-style>","type":"type","url":"#typedef-line-style"}, "#typedef-line-width": {"displayText":"<line-width>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<line-width>","type":"type","url":"#typedef-line-width"}, "#typedef-repeat-style": {"displayText":"<repeat-style>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<repeat-style>","type":"type","url":"#typedef-repeat-style"}, "#typedef-shadow": {"displayText":"<shadow>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"<shadow>","type":"type","url":"#typedef-shadow"}, "#valdef-background-attachment-fixed": {"displayText":"fixed","export":true,"for_":["background-attachment"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"fixed","type":"value","url":"#valdef-background-attachment-fixed"}, "#valdef-background-attachment-local": {"displayText":"local","export":true,"for_":["background-attachment"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"local","type":"value","url":"#valdef-background-attachment-local"}, "#valdef-background-attachment-scroll": {"displayText":"scroll","export":true,"for_":["background-attachment"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"scroll","type":"value","url":"#valdef-background-attachment-scroll"}, "#valdef-background-clip-border-box": {"displayText":"border-box","export":true,"for_":["background-clip"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-box","type":"value","url":"#valdef-background-clip-border-box"}, "#valdef-background-clip-content-box": {"displayText":"content-box","export":true,"for_":["background-clip"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"content-box","type":"value","url":"#valdef-background-clip-content-box"}, "#valdef-background-clip-padding-box": {"displayText":"padding-box","export":true,"for_":["background-clip"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"padding-box","type":"value","url":"#valdef-background-clip-padding-box"}, "#valdef-background-image-none": {"displayText":"none","export":true,"for_":["background-image"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"none","type":"value","url":"#valdef-background-image-none"}, "#valdef-background-origin-border-box": {"displayText":"border-box","export":true,"for_":["background-origin"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"border-box","type":"value","url":"#valdef-background-origin-border-box"}, "#valdef-background-position-bottom": {"displayText":"bottom","export":true,"for_":["background-position"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"bottom","type":"value","url":"#valdef-background-position-bottom"}, "#valdef-background-position-center": {"displayText":"center","export":true,"for_":["background-position"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"center","type":"value","url":"#valdef-background-position-center"}, "#valdef-background-position-left": {"displayText":"left","export":true,"for_":["background-position"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"left","type":"value","url":"#valdef-background-position-left"}, "#valdef-background-position-right": {"displayText":"right","export":true,"for_":["background-position"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"right","type":"value","url":"#valdef-background-position-right"}, "#valdef-background-position-top": {"displayText":"top","export":true,"for_":["background-position"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"top","type":"value","url":"#valdef-background-position-top"}, "#valdef-background-repeat-no-repeat": {"displayText":"no-repeat","export":true,"for_":["background-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"no-repeat","type":"value","url":"#valdef-background-repeat-no-repeat"}, "#valdef-background-repeat-repeat": {"displayText":"repeat","export":true,"for_":["background-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"repeat","type":"value","url":"#valdef-background-repeat-repeat"}, "#valdef-background-repeat-repeat-x": {"displayText":"repeat-x","export":true,"for_":["background-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"repeat-x","type":"value","url":"#valdef-background-repeat-repeat-x"}, "#valdef-background-repeat-repeat-y": {"displayText":"repeat-y","export":true,"for_":["background-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"repeat-y","type":"value","url":"#valdef-background-repeat-repeat-y"}, "#valdef-background-repeat-round": {"displayText":"round","export":true,"for_":["background-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"round","type":"value","url":"#valdef-background-repeat-round"}, "#valdef-background-repeat-space": {"displayText":"space","export":true,"for_":["background-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"space","type":"value","url":"#valdef-background-repeat-space"}, "#valdef-background-size-auto": {"displayText":"auto","export":true,"for_":["background-size"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"auto","type":"value","url":"#valdef-background-size-auto"}, "#valdef-background-size-contain": {"displayText":"contain","export":true,"for_":["background-size"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"contain","type":"value","url":"#valdef-background-size-contain"}, "#valdef-border-image-repeat-repeat": {"displayText":"repeat","export":true,"for_":["border-image-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"repeat","type":"value","url":"#valdef-border-image-repeat-repeat"}, "#valdef-border-image-repeat-round": {"displayText":"round","export":true,"for_":["border-image-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"round","type":"value","url":"#valdef-border-image-repeat-round"}, "#valdef-border-image-repeat-space": {"displayText":"space","export":true,"for_":["border-image-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"space","type":"value","url":"#valdef-border-image-repeat-space"}, "#valdef-border-image-repeat-stretch": {"displayText":"stretch","export":true,"for_":["border-image-repeat"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"stretch","type":"value","url":"#valdef-border-image-repeat-stretch"}, "#valdef-border-image-width-auto": {"displayText":"auto","export":true,"for_":["border-image-width"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"auto","type":"value","url":"#valdef-border-image-width-auto"}, "#valdef-line-style-inset": {"displayText":"inset","export":true,"for_":["<line-style>","border","border-bottom-style","border-left-style","border-right-style","border-style","border-top-style"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"inset","type":"value","url":"#valdef-line-style-inset"}, "#valdef-line-style-none": {"displayText":"none","export":true,"for_":["<line-style>","border","border-bottom-style","border-left-style","border-right-style","border-style","border-top-style"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"none","type":"value","url":"#valdef-line-style-none"}, "#valdef-line-style-outset": {"displayText":"outset","export":true,"for_":["<line-style>","border","border-bottom-style","border-left-style","border-right-style","border-style","border-top-style"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"outset","type":"value","url":"#valdef-line-style-outset"}, "#valdef-line-width-medium": {"displayText":"medium","export":true,"for_":["<line-width>","border","border-bottom-width","border-left-width","border-right-width","border-top-width","border-width"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"medium","type":"value","url":"#valdef-line-width-medium"}, "#valdef-line-width-thick": {"displayText":"thick","export":true,"for_":["<line-width>","border","border-bottom-width","border-left-width","border-right-width","border-top-width","border-width"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"thick","type":"value","url":"#valdef-line-width-thick"}, "#valdef-line-width-thin": {"displayText":"thin","export":true,"for_":["<line-width>","border","border-bottom-width","border-left-width","border-right-width","border-top-width","border-width"],"level":"3","normative":true,"shortname":"css-backgrounds","spec":"css-backgrounds-3","status":"local","text":"thin","type":"value","url":"#valdef-line-width-thin"}, "https://drafts.csswg.org/css-2023/#user-agent": {"displayText":"UA","export":false,"for_":[],"level":"2023","normative":true,"shortname":"css","spec":"css-2023","status":"current","text":"ua","type":"dfn","url":"https://drafts.csswg.org/css-2023/#user-agent"}, "https://drafts.csswg.org/css-box-4/#border": {"displayText":"border","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"border","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#border"}, "https://drafts.csswg.org/css-box-4/#border-area": {"displayText":"border area","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"border area","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#border-area"}, "https://drafts.csswg.org/css-box-4/#border-box": {"displayText":"border box","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"border box","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#border-box"}, "https://drafts.csswg.org/css-box-4/#border-edge": {"displayText":"border edge","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"border edge","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#border-edge"}, "https://drafts.csswg.org/css-box-4/#content-area": {"displayText":"content area","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"content area","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#content-area"}, "https://drafts.csswg.org/css-box-4/#content-box": {"displayText":"content box","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"content box","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#content-box"}, "https://drafts.csswg.org/css-box-4/#content-edge": {"displayText":"content edge","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"content edge","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#content-edge"}, "https://drafts.csswg.org/css-box-4/#margin": {"displayText":"margin","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"margin","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#margin"}, "https://drafts.csswg.org/css-box-4/#margin-area": {"displayText":"margin area","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"margin area","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#margin-area"}, "https://drafts.csswg.org/css-box-4/#margin-edge": {"displayText":"margin edge","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"margin edge","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#margin-edge"}, "https://drafts.csswg.org/css-box-4/#padding": {"displayText":"padding","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"padding","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#padding"}, "https://drafts.csswg.org/css-box-4/#padding-area": {"displayText":"padding area","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"padding area","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#padding-area"}, "https://drafts.csswg.org/css-box-4/#padding-box": {"displayText":"padding box","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"padding box","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#padding-box"}, "https://drafts.csswg.org/css-box-4/#padding-edge": {"displayText":"padding edge","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"padding edge","type":"dfn","url":"https://drafts.csswg.org/css-box-4/#padding-edge"}, "https://drafts.csswg.org/css-box-4/#propdef-margin": {"displayText":"margin","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"margin","type":"property","url":"https://drafts.csswg.org/css-box-4/#propdef-margin"}, "https://drafts.csswg.org/css-box-4/#propdef-padding": {"displayText":"padding","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"padding","type":"property","url":"https://drafts.csswg.org/css-box-4/#propdef-padding"}, "https://drafts.csswg.org/css-box-4/#typedef-visual-box": {"displayText":"<visual-box>","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-box","spec":"css-box-4","status":"current","text":"<visual-box>","type":"type","url":"https://drafts.csswg.org/css-box-4/#typedef-visual-box"}, "https://drafts.csswg.org/css-break-4/#box-fragment": {"displayText":"box fragment","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-break","spec":"css-break-4","status":"current","text":"box fragment","type":"dfn","url":"https://drafts.csswg.org/css-break-4/#box-fragment"}, "https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break": {"displayText":"box-decoration-break","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-break","spec":"css-break-4","status":"current","text":"box-decoration-break","type":"property","url":"https://drafts.csswg.org/css-break-4/#propdef-box-decoration-break"}, "https://drafts.csswg.org/css-cascade-5/#computed-value": {"displayText":"computed value","export":true,"for_":[],"level":"5","normative":true,"shortname":"css-cascade","spec":"css-cascade-5","status":"current","text":"computed value","type":"dfn","url":"https://drafts.csswg.org/css-cascade-5/#computed-value"}, "https://drafts.csswg.org/css-cascade-5/#initial-value": {"displayText":"initial value","export":true,"for_":[],"level":"5","normative":true,"shortname":"css-cascade","spec":"css-cascade-5","status":"current","text":"initial value","type":"dfn","url":"https://drafts.csswg.org/css-cascade-5/#initial-value"}, "https://drafts.csswg.org/css-cascade-5/#shorthand-property": {"displayText":"shorthand property","export":true,"for_":[],"level":"5","normative":true,"shortname":"css-cascade","spec":"css-cascade-5","status":"current","text":"shorthand property","type":"dfn","url":"https://drafts.csswg.org/css-cascade-5/#shorthand-property"}, "https://drafts.csswg.org/css-cascade-5/#specified-value": {"displayText":"specified value","export":true,"for_":[],"level":"5","normative":true,"shortname":"css-cascade","spec":"css-cascade-5","status":"current","text":"specified value","type":"dfn","url":"https://drafts.csswg.org/css-cascade-5/#specified-value"}, "https://drafts.csswg.org/css-cascade-5/#used-value": {"displayText":"used value","export":true,"for_":[],"level":"5","normative":true,"shortname":"css-cascade","spec":"css-cascade-5","status":"current","text":"used value","type":"dfn","url":"https://drafts.csswg.org/css-cascade-5/#used-value"}, "https://drafts.csswg.org/css-color-4/#propdef-color": {"displayText":"color","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-color","spec":"css-color-4","status":"current","text":"color","type":"property","url":"https://drafts.csswg.org/css-color-4/#propdef-color"}, "https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor": {"displayText":"currentcolor","export":true,"for_":["<color>"],"level":"4","normative":true,"shortname":"css-color","spec":"css-color-4","status":"current","text":"currentcolor","type":"value","url":"https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor"}, "https://drafts.csswg.org/css-color-4/#valdef-color-transparent": {"displayText":"transparent","export":true,"for_":["<color>"],"level":"4","normative":true,"shortname":"css-color","spec":"css-color-4","status":"current","text":"transparent","type":"value","url":"https://drafts.csswg.org/css-color-4/#valdef-color-transparent"}, "https://drafts.csswg.org/css-color-5/#typedef-color": {"displayText":"<color>","export":true,"for_":[],"level":"5","normative":true,"shortname":"css-color","spec":"css-color-5","status":"current","text":"<color>","type":"type","url":"https://drafts.csswg.org/css-color-5/#typedef-color"}, "https://drafts.csswg.org/css-contain-2/#containment": {"displayText":"containment","export":true,"for_":[],"level":"2","normative":true,"shortname":"css-contain","spec":"css-contain-2","status":"current","text":"containment","type":"dfn","url":"https://drafts.csswg.org/css-contain-2/#containment"}, "https://drafts.csswg.org/css-content-3/#propdef-content": {"displayText":"content","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-content","spec":"css-content-3","status":"current","text":"content","type":"property","url":"https://drafts.csswg.org/css-content-3/#propdef-content"}, "https://drafts.csswg.org/css-display-4/#initial-containing-block": {"displayText":"initial containing block","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-display","spec":"css-display-4","status":"current","text":"initial containing block","type":"dfn","url":"https://drafts.csswg.org/css-display-4/#initial-containing-block"}, "https://drafts.csswg.org/css-display-4/#principal-box": {"displayText":"principal box","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-display","spec":"css-display-4","status":"current","text":"principal box","type":"dfn","url":"https://drafts.csswg.org/css-display-4/#principal-box"}, "https://drafts.csswg.org/css-display-4/#replaced-element": {"displayText":"replaced element","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-display","spec":"css-display-4","status":"current","text":"replaced element","type":"dfn","url":"https://drafts.csswg.org/css-display-4/#replaced-element"}, "https://drafts.csswg.org/css-display-4/#root-element": {"displayText":"root element","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-display","spec":"css-display-4","status":"current","text":"root element","type":"dfn","url":"https://drafts.csswg.org/css-display-4/#root-element"}, "https://drafts.csswg.org/css-images-3/#default-object-size": {"displayText":"default object size","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-images","spec":"css-images-3","status":"current","text":"default object size","type":"dfn","url":"https://drafts.csswg.org/css-images-3/#default-object-size"}, "https://drafts.csswg.org/css-images-3/#natural-aspect-ratio": {"displayText":"natural aspect ratio","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-images","spec":"css-images-3","status":"current","text":"natural aspect ratio","type":"dfn","url":"https://drafts.csswg.org/css-images-3/#natural-aspect-ratio"}, "https://drafts.csswg.org/css-images-3/#natural-dimensions": {"displayText":"natural dimension","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-images","spec":"css-images-3","status":"current","text":"natural dimension","type":"dfn","url":"https://drafts.csswg.org/css-images-3/#natural-dimensions"}, "https://drafts.csswg.org/css-images-3/#natural-height": {"displayText":"natural height","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-images","spec":"css-images-3","status":"current","text":"natural height","type":"dfn","url":"https://drafts.csswg.org/css-images-3/#natural-height"}, "https://drafts.csswg.org/css-images-3/#natural-size": {"displayText":"natural size","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-images","spec":"css-images-3","status":"current","text":"natural size","type":"dfn","url":"https://drafts.csswg.org/css-images-3/#natural-size"}, "https://drafts.csswg.org/css-images-3/#natural-width": {"displayText":"natural width","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-images","spec":"css-images-3","status":"current","text":"natural width","type":"dfn","url":"https://drafts.csswg.org/css-images-3/#natural-width"}, "https://drafts.csswg.org/css-images-3/#specified-size": {"displayText":"specified size","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-images","spec":"css-images-3","status":"current","text":"specified size","type":"dfn","url":"https://drafts.csswg.org/css-images-3/#specified-size"}, "https://drafts.csswg.org/css-images-3/#typedef-image": {"displayText":"<image>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-images","spec":"css-images-3","status":"current","text":"<image>","type":"type","url":"https://drafts.csswg.org/css-images-3/#typedef-image"}, "https://drafts.csswg.org/css-overflow-3/#ink-overflow": {"displayText":"ink overflow","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-overflow","spec":"css-overflow-3","status":"current","text":"ink overflow","type":"dfn","url":"https://drafts.csswg.org/css-overflow-3/#ink-overflow"}, "https://drafts.csswg.org/css-overflow-3/#scroll-container": {"displayText":"scroll container","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-overflow","spec":"css-overflow-3","status":"current","text":"scroll container","type":"dfn","url":"https://drafts.csswg.org/css-overflow-3/#scroll-container"}, "https://drafts.csswg.org/css-overflow-3/#scrollable-overflow-region": {"displayText":"scrollable overflow area","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-overflow","spec":"css-overflow-3","status":"current","text":"scrollable overflow area","type":"dfn","url":"https://drafts.csswg.org/css-overflow-3/#scrollable-overflow-region"}, "https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box": {"displayText":"ruby annotation container","export":true,"for_":[],"level":"1","normative":true,"shortname":"css-ruby","spec":"css-ruby-1","status":"current","text":"ruby annotation container","type":"dfn","url":"https://drafts.csswg.org/css-ruby-1/#ruby-annotation-container-box"}, "https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box": {"displayText":"ruby base container","export":true,"for_":[],"level":"1","normative":true,"shortname":"css-ruby","spec":"css-ruby-1","status":"current","text":"ruby base container","type":"dfn","url":"https://drafts.csswg.org/css-ruby-1/#ruby-base-container-box"}, "https://drafts.csswg.org/css-sizing-3/#propdef-height": {"displayText":"height","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-sizing","spec":"css-sizing-3","status":"current","text":"height","type":"property","url":"https://drafts.csswg.org/css-sizing-3/#propdef-height"}, "https://drafts.csswg.org/css-tables-3/#propdef-border-collapse": {"displayText":"border-collapse","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-tables","spec":"css-tables-3","status":"current","text":"border-collapse","type":"property","url":"https://drafts.csswg.org/css-tables-3/#propdef-border-collapse"}, "https://drafts.csswg.org/css-text-decor-4/#propdef-text-shadow": {"displayText":"text-shadow","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-text-decor","spec":"css-text-decor-4","status":"current","text":"text-shadow","type":"property","url":"https://drafts.csswg.org/css-text-decor-4/#propdef-text-shadow"}, "https://drafts.csswg.org/css-values-3/#typedef-position": {"displayText":"<position>","export":true,"for_":[],"level":"3","normative":true,"shortname":"css-values","spec":"css-values-3","status":"current","text":"<position>","type":"type","url":"https://drafts.csswg.org/css-values-3/#typedef-position"}, "https://drafts.csswg.org/css-values-4/#comb-all": {"displayText":"&&","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"&&","type":"grammar","url":"https://drafts.csswg.org/css-values-4/#comb-all"}, "https://drafts.csswg.org/css-values-4/#comb-any": {"displayText":"||","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"||","type":"grammar","url":"https://drafts.csswg.org/css-values-4/#comb-any"}, "https://drafts.csswg.org/css-values-4/#comb-comma": {"displayText":",","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":",","type":"grammar","url":"https://drafts.csswg.org/css-values-4/#comb-comma"}, "https://drafts.csswg.org/css-values-4/#comb-one": {"displayText":"|","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"|","type":"grammar","url":"https://drafts.csswg.org/css-values-4/#comb-one"}, "https://drafts.csswg.org/css-values-4/#css-bracketed-range-notation": {"displayText":"CSS bracketed range notation","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"css bracketed range notation","type":"dfn","url":"https://drafts.csswg.org/css-values-4/#css-bracketed-range-notation"}, "https://drafts.csswg.org/css-values-4/#css-value-definition-syntax": {"displayText":"value definition syntax","export":true,"for_":["CSS"],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"value definition syntax","type":"dfn","url":"https://drafts.csswg.org/css-values-4/#css-value-definition-syntax"}, "https://drafts.csswg.org/css-values-4/#css-wide-keywords": {"displayText":"CSS-wide keywords","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"css-wide keywords","type":"dfn","url":"https://drafts.csswg.org/css-values-4/#css-wide-keywords"}, "https://drafts.csswg.org/css-values-4/#length-value": {"displayText":"<length>","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"<length>","type":"type","url":"https://drafts.csswg.org/css-values-4/#length-value"}, "https://drafts.csswg.org/css-values-4/#mult-comma": {"displayText":"#","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"#","type":"grammar","url":"https://drafts.csswg.org/css-values-4/#mult-comma"}, "https://drafts.csswg.org/css-values-4/#mult-num": {"displayText":"{A}","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"{a}","type":"grammar","url":"https://drafts.csswg.org/css-values-4/#mult-num"}, "https://drafts.csswg.org/css-values-4/#mult-num-range": {"displayText":"{A,B}","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"{a,b}","type":"grammar","url":"https://drafts.csswg.org/css-values-4/#mult-num-range"}, "https://drafts.csswg.org/css-values-4/#mult-opt": {"displayText":"?","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"?","type":"grammar","url":"https://drafts.csswg.org/css-values-4/#mult-opt"}, "https://drafts.csswg.org/css-values-4/#number-value": {"displayText":"<number>","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"<number>","type":"type","url":"https://drafts.csswg.org/css-values-4/#number-value"}, "https://drafts.csswg.org/css-values-4/#percentage-value": {"displayText":"<percentage>","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"<percentage>","type":"type","url":"https://drafts.csswg.org/css-values-4/#percentage-value"}, "https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width": {"displayText":"snap as a border width","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"snap as a border width","type":"dfn","url":"https://drafts.csswg.org/css-values-4/#snap-a-length-as-a-border-width"}, "https://drafts.csswg.org/css-values-4/#typedef-length-percentage": {"displayText":"<length-percentage>","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"<length-percentage>","type":"type","url":"https://drafts.csswg.org/css-values-4/#typedef-length-percentage"}, "https://drafts.csswg.org/css2/#valdef-border-collapse-collapse": {"displayText":"collapse","export":true,"for_":["border-collapse"],"level":"1","normative":true,"shortname":"css","spec":"css22","status":"current","text":"collapse","type":"value","url":"https://drafts.csswg.org/css2/#valdef-border-collapse-collapse"}, "https://drafts.csswg.org/mediaqueries-5/#paged-media": {"displayText":"paged media","export":true,"for_":[],"level":"5","normative":true,"shortname":"mediaqueries","spec":"mediaqueries-5","status":"current","text":"paged media","type":"dfn","url":"https://drafts.csswg.org/mediaqueries-5/#paged-media"}, "https://drafts.csswg.org/selectors-3/#first-letter0": {"displayText":"::first-letter","export":true,"for_":[],"level":"3","normative":true,"shortname":"selectors","spec":"selectors-3","status":"current","text":"::first-letter","type":"selector","url":"https://drafts.csswg.org/selectors-3/#first-letter0"}, "https://drafts.csswg.org/selectors-3/#sel-first-line": {"displayText":"::first-line","export":true,"for_":[],"level":"3","normative":true,"shortname":"selectors","spec":"selectors-3","status":"current","text":"::first-line","type":"selector","url":"https://drafts.csswg.org/selectors-3/#sel-first-line"}, "https://drafts.csswg.org/selectors-4/#pseudo-element": {"displayText":"pseudo-element","export":true,"for_":[],"level":"4","normative":true,"shortname":"selectors","spec":"selectors-4","status":"current","text":"pseudo-element","type":"dfn","url":"https://drafts.csswg.org/selectors-4/#pseudo-element"}, "https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-drop-shadow": {"displayText":"drop-shadow()","export":true,"for_":["filter"],"level":"1","normative":true,"shortname":"filter-effects","spec":"filter-effects-1","status":"current","text":"drop-shadow()","type":"function","url":"https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-drop-shadow"}, "https://html.spec.whatwg.org/multipage/sections.html#the-body-element": {"displayText":"body","export":true,"for_":[],"level":"1","normative":true,"shortname":"html","spec":"html","status":"current","text":"body","type":"element","url":"https://html.spec.whatwg.org/multipage/sections.html#the-body-element"}, }; function mkRefHint(link, ref) { const linkText = link.textContent; let dfnTextElements = ''; if (ref.displayText.toLowerCase() != linkText.toLowerCase()) { // Give the original term if it's being displayed in a different way. // But allow casing differences, they're insignificant. dfnTextElements = mk.li({}, mk.b({}, "Term: "), mk.span({}, ref.displayText) ); } const forList = ref.for_; let forListElements; if(forList.length == 0) { forListElements = []; } else if(forList.length == 1) { forListElements = mk.li({}, mk.b({}, "For: "), mk.span({}, forList[0]), ); } else { forListElements = mk.li({}, mk.b({}, "For: "), mk.ul({}, ...forList.map(forItem => mk.li({}, mk.span({}, forItem) ), ), ), ); } const url = ref.url; const safeUrl = encodeURIComponent(url); const hintPanel = mk.aside({ class: "ref-hint", id: `ref-hint-for-${safeUrl}`, "data-for": url, "aria-labelled-by": `ref-hint-for-${safeUrl}`, }, mk.ul({}, dfnTextElements, mk.li({}, mk.b({}, "URL: "), mk.a({ href: url, class: "ref" }, url), ), mk.li({}, mk.b({}, "Type: "), mk.span({}, `${ref.type}`), ), mk.li({}, mk.b({}, "Spec: "), mk.span({}, `${ref.spec ? ref.spec : ''}`), ), forListElements ), ); hintPanel.forLink = link; setupRefHintEventListeners(link, hintPanel); return hintPanel; } function hideAllRefHints() { queryAll(".ref-hint").forEach(el=>hideRefHint(el)); } function hideRefHint(refHint) { const link = refHint.forLink; link.setAttribute("aria-expanded", "false"); if(refHint.teardownEventListeners) { refHint.teardownEventListeners(); } refHint.remove(); } function showRefHint(link) { if(link.classList.contains("dfn-link")) return; const url = link.getAttribute("href"); const ref = refsData[url]; if(!ref) return; hideAllRefHints(); // Only display one at this time. const refHint = mkRefHint(link, ref); append(document.body, refHint); link.setAttribute("aria-expanded", "true"); positionRefHint(refHint); } function setupRefHintEventListeners(link, refHint) { if (refHint.teardownEventListeners) return; // Add event handlers to hide the refHint after the user moves away // from both the link and refHint, if not hovering either within one second. let timeout = null; const startHidingRefHint = (event) => { if (timeout) { clearTimeout(timeout); } timeout = setTimeout(() => { hideRefHint(refHint); }, 1000); } const resetHidingRefHint = (event) => { if (timeout) clearTimeout(timeout); timeout = null; }; link.addEventListener("mouseleave", startHidingRefHint); link.addEventListener("mouseenter", resetHidingRefHint); link.addEventListener("blur", startHidingRefHint); link.addEventListener("focus", resetHidingRefHint); refHint.addEventListener("mouseleave", startHidingRefHint); refHint.addEventListener("mouseenter", resetHidingRefHint); refHint.addEventListener("blur", startHidingRefHint); refHint.addEventListener("focus", resetHidingRefHint); refHint.teardownEventListeners = () => { // remove event listeners resetHidingRefHint(); link.removeEventListener("mouseleave", startHidingRefHint); link.removeEventListener("mouseenter", resetHidingRefHint); link.removeEventListener("blur", startHidingRefHint); link.removeEventListener("focus", resetHidingRefHint); refHint.removeEventListener("mouseleave", startHidingRefHint); refHint.removeEventListener("mouseenter", resetHidingRefHint); refHint.removeEventListener("blur", startHidingRefHint); refHint.removeEventListener("focus", resetHidingRefHint); }; } function positionRefHint(refHint) { const link = refHint.forLink; const linkPos = getBounds(link); refHint.style.top = linkPos.bottom + "px"; refHint.style.left = linkPos.left + "px"; const panelPos = refHint.getBoundingClientRect(); const panelMargin = 8; const maxRight = document.body.parentNode.clientWidth - panelMargin; if (panelPos.right > maxRight) { const overflowAmount = panelPos.right - maxRight; const newLeft = Math.max(panelMargin, linkPos.left - overflowAmount); refHint.style.left = newLeft + "px"; } } // TODO: shared util // Returns the root-level absolute position {left and top} of element. function getBounds(el, relativeTo=document.body) { const relativeRect = relativeTo.getBoundingClientRect(); const elRect = el.getBoundingClientRect(); const top = elRect.top - relativeRect.top; const left = elRect.left - relativeRect.left; return { top, left, bottom: top + elRect.height, right: left + elRect.width, } } function showRefHintListener(e) { // If the target isn't in a link (or is a link), // just ignore it. let link = e.target.closest("a"); if(!link) return; // If the target is in a ref-hint panel // (aka a link in the already-open one), // also just ignore it. if(link.closest(".ref-hint")) return; // Otherwise, show the panel for the link. showRefHint(link); } function hideAllHintsListener(e) { // If the click is inside a ref-hint panel, ignore it. if(e.target.closest(".ref-hint")) return; // Otherwise, close all the current panels. hideAllRefHints(); } document.addEventListener("DOMContentLoaded", () => { document.body.addEventListener("mousedown", showRefHintListener); document.body.addEventListener("focus", showRefHintListener); document.body.addEventListener("click", hideAllHintsListener); }); window.addEventListener("resize", () => { // Hide any open ref hint. hideAllRefHints(); }); } </script> <script>/* Boilerplate: script-wpt */ "use strict"; { let wptData = { "paths": ["/css/css-backgrounds/"], }; document.addEventListener("DOMContentLoaded", async ()=>{ if(wptData.paths.length == 0) return; const runsUrl = "https://wpt.fyi/api/runs?label=master&label=stable&max-count=1&product=chrome&product=firefox&product=safari&product=edge"; const runs = await (await fetch(runsUrl)).json(); let testResults = []; for(const pathPrefix of wptData.paths) { const pathResults = await (await fetch("https://wpt.fyi/api/search", { method:"POST", headers:{ "Content-Type":"application/json", }, body: JSON.stringify({ "run_ids": runs.map(x=>x.id), "query": {"path": pathPrefix}, }) })).json(); testResults = testResults.concat(pathResults.results); } const browsers = runs.map(x=>({name:x.browser_name, version:x.browser_version, passes:0, total: 0})); const resultsFromPath = new Map(testResults.map(result=>{ const testPath = result.test; const passes = result.legacy_status.map(x=>[x.passes, x.total]); return [testPath, passes]; })); const seenTests = new Set(); document.querySelectorAll(".wpt-name").forEach(nameEl=>{ const passData = resultsFromPath.get("/" + nameEl.getAttribute("title")); if(!passData) { console.log("Couldn't find test in results:", nameEl); return } const numTests = passData[0][1]; if(numTests > 1) { nameEl.insertAdjacentElement("beforeend", mk.small({}, ` (${numTests} tests)`)); } if(passData == undefined) return; const resultsEl = mk.span({"class":"wpt-results"}, ...passData.map((p,i) => mk.span( { "title": `${browsers[i].name} ${p[0]}/${p[1]}`, "class": "wpt-result", "style": `background: conic-gradient(forestgreen ${p[0]/p[1]*360}deg, darkred 0deg);`, })), ); nameEl.insertAdjacentElement("afterend", resultsEl); // Only update the summary pass/total count if we haven't seen this // test before, to support authors listing the same test multiple times // in a spec. if (!seenTests.has(nameEl.getAttribute("title"))) { seenTests.add(nameEl.getAttribute("title")); passData.forEach((p,i) => { browsers[i].passes += p[0]; browsers[i].total += p[1]; }); } }); const overview = document.querySelector(".wpt-overview"); if(overview) { overview.appendChild(mk.ul({}, ...browsers.map(formatWptResult))); document.head.appendChild(mk.style({}, `.wpt-overview ul { display: flex; flex-flow: row wrap; gap: .2em; justify-content: start; list-style: none; padding: 0; margin: 0;} .wpt-overview li { padding: .25em 1em; color: black; text-align: center; } .wpt-overview img { height: 1.5em; height: max(1.5em, 32px); background: transparent; } .wpt-overview .browser { font-weight: bold; } .wpt-overview .passes-none { background: #e57373; } .wpt-overview .passes-hardly { background: #ffb74d; } .wpt-overview .passes-a-few { background: #ffd54f; } .wpt-overview .passes-half { background: #fff176; } .wpt-overview .passes-lots { background: #dce775; } .wpt-overview .passes-most { background: #aed581; } .wpt-overview .passes-all { background: #81c784; }`)); } }); function formatWptResult({name, version, passes, total}) { const passRate = passes/total; let passClass = ""; if(passRate == 0) passClass = "passes-none"; else if(passRate < .2) passClass = "passes-hardly"; else if(passRate < .4) passClass = "passes-a-few"; else if(passRate < .6) passClass = "passes-half"; else if(passRate < .8) passClass = "passes-lots"; else if(passRate < 1) passClass = "passes-most"; else passClass = "passes-all"; name = name[0].toUpperCase() + name.slice(1); const shortVersion = /^\d+/.exec(version); const icon = [] if(name == "Chrome") icon.push(mk.img({alt:"", src:"https://wpt.fyi/static/chrome_64x64.png"})); if(name == "Edge") icon.push(mk.img({alt:"", src:"https://wpt.fyi/static/edge_64x64.png"})); if(name == "Safari") icon.push(mk.img({alt:"", src:"https://wpt.fyi/static/safari_64x64.png"})); if(name == "Firefox") icon.push(mk.img({alt:"", src:"https://wpt.fyi/static/firefox_64x64.png"})); return mk.li({"class":passClass}, mk.nobr({'class':'browser'}, ...icon, ` ${name} ${shortVersion}`), mk.br(), mk.nobr({'class':'pass-rate'}, `${passes}/${total}`) ); } } </script>

Pages: 1 2 3 4 5 6 7 8 9 10