[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs:css":3},{"versions":4,"version":13,"nav":16,"path":40,"page":80},[5,10],{"name":6,"label":7,"prefix":8,"channel":9},"0.1","0.1.0 (latest)","","latest",{"name":11,"label":12,"prefix":11,"channel":11},"next","next (main)",{"name":6,"label":7,"prefix":8,"channel":9,"base":14,"ref":15},"\u002Fdocs","v0.1.0",[17,21,24,27,30,33,36,39,43,46,49,52,55,58,61,65,68,71,74,77],{"slug":18,"title":19,"group":20},"index","Overview","Guide",{"slug":22,"title":23,"group":20},"getting-started","Getting started",{"slug":25,"title":26,"group":20},"php","PHP API",{"slug":28,"title":29,"group":20},"laravel","Laravel",{"slug":31,"title":32,"group":20},"resources","Resources",{"slug":34,"title":35,"group":20},"deployment","Deployment",{"slug":37,"title":38,"group":20},"troubleshooting","Troubleshooting",{"slug":40,"title":41,"group":42},"css","CSS reference","Reference",{"slug":44,"title":45,"group":42},"paged-media","Paged media",{"slug":47,"title":48,"group":42},"fonts","Fonts",{"slug":50,"title":51,"group":42},"extensions","Extensions",{"slug":53,"title":54,"group":42},"pdf","The PDF",{"slug":56,"title":57,"group":42},"cli","Command line",{"slug":59,"title":60,"group":42},"rust","Rust library",{"slug":62,"title":63,"group":64},"protocol","Worker protocol","Internals",{"slug":66,"title":67,"group":64},"releasing","Releasing",{"slug":69,"title":70,"group":64},"adr\u002F0001-record-architecture-decisions","1. Record architecture decisions",{"slug":72,"title":73,"group":64},"adr\u002F0002-rust-and-fragmentation-in-layout","2. Rust core with fragmentation inside layout",{"slug":75,"title":76,"group":64},"adr\u002F0003-css-parsing-and-own-selector-matching","3. lightningcss for parsing, own selector matching and cascade",{"slug":78,"title":79,"group":64},"adr\u002F0004-extensions-only-where-css-has-no-way","4. Extensions only where CSS has no way",{"title":41,"seoTitle":81,"seoDescription":82,"html":83,"headings":84,"editUrl":190,"sourceUrl":191,"markdownUrl":192,"prev":193,"next":194},"CSS reference: what Fagus supports, compared with Chrome","What Fagus supports of CSS, grouped by topic, where it differs from Chrome in print and what it does not support. Chrome 157 on Linux is the reference.","\u003Ch1 id=\"css-reference\">CSS reference\u003C\u002Fh1>\n\u003Cp>Fagus lays out HTML and CSS the way Chrome prints it (Chrome 157 on Linux is the reference). This\npage lists what Fagus supports, grouped by topic, with the details that matter in print and the\nplaces where Fagus differs from Chrome or has no support. Page size, margins, headers, footers and\npage breaks have a page of their own: \u003Ca href=\"\u002Fdocs\u002Fpaged-media\">Paged media\u003C\u002Fa>. Fonts are described in\n\u003Ca href=\"\u002Fdocs\u002Ffonts\">Fonts\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>A rule of thumb: if Chrome's print preview shows it, Fagus renders it the same way. Where this\npage says &quot;as in Chrome&quot;, Fagus follows Chrome's behavior in print, which is not always what the\nspecification says.\u003C\u002Fp>\n\u003Ch2 id=\"find-out-what-was-ignored\">Find out what was ignored\u003Ca class=\"f-doc-anchor\" href=\"#find-out-what-was-ignored\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>A declaration that Fagus cannot use is dropped and reported as a diagnostic with its position in\nthe stylesheet, like the console of a browser. Declarations in \u003Ccode>style\u003C\u002Fcode> attributes are reported too,\nwith the line of the element in the HTML, once for each different attribute:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>php\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">use\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Fagus\\Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">$pdf \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> Fagus\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">::\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">html\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">($html)\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">->\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">render\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">();\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">foreach\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> ($pdf\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">->\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\">diagnostics\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">() \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">as\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $diagnostic) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    echo\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $diagnostic, \u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">\\n\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\">\"\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#8B949E\">    \u002F\u002F &#x3C;style> 1:12:3: warning[css.unknown-property]: unknown property `paint-order`; the declaration is ignored\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#8B949E\">    \u002F\u002F html:40: warning[css.unknown-property]: `style` attribute of &#x3C;p>: unknown property `colr`; the declaration is ignored\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp>\u003Ccode>-&gt;strict()\u003C\u002Fcode> turns these warnings into a \u003Ccode>RenderException\u003C\u002Fcode>, which is useful in tests. The codes you\nwill see for CSS:\u003C\u002Fp>\n\u003Ctable class=\"f-doc-table f-stack-table\">\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Code\u003C\u002Fth>\n\u003Cth>Meaning\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>css.unknown-property\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Meaning\">A property Fagus does not know.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>css.invalid-value\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Meaning\">A known property with a value Fagus does not accept (as Chrome would not either).\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>css.parse-error\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Meaning\">A rule or at-rule that does not parse, such as an unknown at-rule.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>css.unparsable\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Meaning\">A value that could not be read safely and was left out.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>css.too-deep\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Meaning\">A stylesheet nested more than 256 levels deep.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>resource.not-loaded\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Meaning\">A stylesheet, image or font that could not be loaded.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>Properties that have no effect in print are dropped without a diagnostic: \u003Ccode>transition-*\u003C\u002Fcode>,\n\u003Ccode>animation-*\u003C\u002Fcode> (see \u003Ca href=\"#animations-and-transitions\">Animations\u003C\u002Fa>), \u003Ccode>cursor\u003C\u002Fcode>, \u003Ccode>pointer-events\u003C\u002Fcode>,\n\u003Ccode>user-select\u003C\u002Fcode>, \u003Ccode>touch-action\u003C\u002Fcode>, \u003Ccode>resize\u003C\u002Fcode>, \u003Ccode>caret-color\u003C\u002Fcode>, \u003Ccode>scroll-*\u003C\u002Fcode>, \u003Ccode>overscroll-*\u003C\u002Fcode>,\n\u003Ccode>scrollbar-*\u003C\u002Fcode>, \u003Ccode>view-transition-*\u003C\u002Fcode>, \u003Ccode>text-size-adjust\u003C\u002Fcode>, Microsoft Office's \u003Ccode>mso-*\u003C\u002Fcode> properties,\nand vendor-prefixed properties (\u003Ccode>-webkit-\u003C\u002Fcode>, \u003Ccode>-moz-\u003C\u002Fcode>, \u003Ccode>-ms-\u003C\u002Fcode>, \u003Ccode>-o-\u003C\u002Fcode>) other than the ones listed on\nthis page.\u003C\u002Fp>\n\u003Ch2 id=\"stylesheets\">Stylesheets\u003Ca class=\"f-doc-anchor\" href=\"#stylesheets\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Ccode>&lt;style&gt;\u003C\u002Fcode> elements, \u003Ccode>style\u003C\u002Fcode> attributes and \u003Ccode>&lt;link rel=&quot;stylesheet&quot;&gt;\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Ccode>@import\u003C\u002Fcode>, also with media queries, \u003Ccode>supports()\u003C\u002Fcode> conditions and \u003Ccode>layer()\u003C\u002Fcode>, up to eight levels\ndeep. A stylesheet that cannot be loaded is reported.\u003C\u002Fli>\n\u003Cli>Relative URLs in a linked or imported stylesheet resolve against that stylesheet, as in browsers.\u003C\u002Fli>\n\u003Cli>Stylesheets passed with \u003Ccode>-&gt;stylesheet($css)\u003C\u002Fcode> in PHP apply after the document's own styles.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Stylesheets, fonts and images come only from the places a document may read: \u003Ccode>data:\u003C\u002Fcode> URLs,\nresources handed over with \u003Ccode>-&gt;resource()\u003C\u002Fcode>, the \u003Ccode>-&gt;resolver()\u003C\u002Fcode> callback, and files inside the base\ndirectory or root. Fagus never loads anything from the network (see \u003Ca href=\"\u002Fdocs\u002Fresources\">Resources\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch3 id=\"html-and-its-presentational-attributes\">HTML and its presentational attributes\u003Ca class=\"f-doc-anchor\" href=\"#html-and-its-presentational-attributes\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>Documents are parsed as HTML5, as browsers parse them. A document without a doctype is rendered in\nquirks mode, with the quirks Chrome applies (line height quirk, table and form rules, full-height\n\u003Ccode>html\u003C\u002Fcode> and \u003Ccode>body\u003C\u002Fcode>, hashless colors and unitless lengths where Chrome takes them). XHTML is parsed as\nXML with \u003Ccode>Fagus::xhtml()\u003C\u002Fcode> (or a \u003Ccode>.xhtml\u003C\u002Fcode> file on the command line).\u003C\u002Fp>\n\u003Cp>The presentational attributes of older templates work as in Chrome and lose against any CSS:\n\u003Ccode>width\u003C\u002Fcode>, \u003Ccode>height\u003C\u002Fcode>, \u003Ccode>align\u003C\u002Fcode>, \u003Ccode>valign\u003C\u002Fcode>, \u003Ccode>bgcolor\u003C\u002Fcode> and \u003Ccode>nowrap\u003C\u002Fcode> on tables and their parts;\n\u003Ccode>cellspacing\u003C\u002Fcode>, \u003Ccode>cellpadding\u003C\u002Fcode>, \u003Ccode>border\u003C\u002Fcode>, \u003Ccode>bordercolor\u003C\u002Fcode>, \u003Ccode>frame\u003C\u002Fcode> and \u003Ccode>rules\u003C\u002Fcode> on tables; \u003Ccode>color\u003C\u002Fcode>,\n\u003Ccode>face\u003C\u002Fcode> and \u003Ccode>size\u003C\u002Fcode> on \u003Ccode>&lt;font&gt;\u003C\u002Fcode>; \u003Ccode>size\u003C\u002Fcode>, \u003Ccode>width\u003C\u002Fcode>, \u003Ccode>color\u003C\u002Fcode> and \u003Ccode>noshade\u003C\u002Fcode> on \u003Ccode>&lt;hr&gt;\u003C\u002Fcode>; \u003Ccode>align\u003C\u002Fcode>, \u003Ccode>border\u003C\u002Fcode>,\n\u003Ccode>hspace\u003C\u002Fcode> and \u003Ccode>vspace\u003C\u002Fcode> on images; \u003Ccode>align\u003C\u002Fcode> on blocks and \u003Ccode>&lt;center&gt;\u003C\u002Fcode>; \u003Ccode>type\u003C\u002Fcode> on lists; \u003Ccode>bgcolor\u003C\u002Fcode>,\n\u003Ccode>text\u003C\u002Fcode> and the margin attributes of \u003Ccode>&lt;body&gt;\u003C\u002Fcode>; \u003Ccode>&lt;br clear&gt;\u003C\u002Fcode>. Templates written for dompdf or mPDF\nwith table layouts render as in Chrome.\u003C\u002Fp>\n\u003Ch2 id=\"selectors-and-the-cascade\">Selectors and the cascade\u003Ca class=\"f-doc-anchor\" href=\"#selectors-and-the-cascade\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>All selectors of CSS Selectors 4 that make sense in a static document: type, class, id,\nuniversal, attribute selectors with all operators and the \u003Ccode>i\u003C\u002Fcode>\u002F\u003Ccode>s\u003C\u002Fcode> flags, all combinators,\n\u003Ccode>:is()\u003C\u002Fcode>, \u003Ccode>:where()\u003C\u002Fcode>, \u003Ccode>:not()\u003C\u002Fcode>, \u003Ccode>:has()\u003C\u002Fcode> (also with sibling and child relations),\n\u003Ccode>:nth-child(… of S)\u003C\u002Fcode>, \u003Ccode>:nth-last-child()\u003C\u002Fcode>, \u003Ccode>:nth-of-type()\u003C\u002Fcode>, \u003Ccode>:first-child\u003C\u002Fcode>, \u003Ccode>:last-child\u003C\u002Fcode>,\n\u003Ccode>:only-child\u003C\u002Fcode>, \u003Ccode>:empty\u003C\u002Fcode>, \u003Ccode>:root\u003C\u002Fcode>, \u003Ccode>:scope\u003C\u002Fcode>, \u003Ccode>:lang()\u003C\u002Fcode>, \u003Ccode>:dir()\u003C\u002Fcode>, \u003Ccode>:link\u003C\u002Fcode>, \u003Ccode>:any-link\u003C\u002Fcode>, \u003Ccode>:defined\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Form states: \u003Ccode>:checked\u003C\u002Fcode>, \u003Ccode>:default\u003C\u002Fcode>, \u003Ccode>:disabled\u003C\u002Fcode>, \u003Ccode>:enabled\u003C\u002Fcode>, \u003Ccode>:required\u003C\u002Fcode>, \u003Ccode>:optional\u003C\u002Fcode>,\n\u003Ccode>:read-only\u003C\u002Fcode>, \u003Ccode>:read-write\u003C\u002Fcode>, \u003Ccode>:placeholder-shown\u003C\u002Fcode>, \u003Ccode>:indeterminate\u003C\u002Fcode>, \u003Ccode>:open\u003C\u002Fcode>, \u003Ccode>:closed\u003C\u002Fcode>, and\n\u003Ccode>:valid\u003C\u002Fcode>, \u003Ccode>:invalid\u003C\u002Fcode>, \u003Ccode>:in-range\u003C\u002Fcode>, \u003Ccode>:out-of-range\u003C\u002Fcode> with real constraint validation (including\n\u003Ccode>pattern\u003C\u002Fcode>).\u003C\u002Fli>\n\u003Cli>Pseudo-elements: \u003Ccode>::before\u003C\u002Fcode>, \u003Ccode>::after\u003C\u002Fcode>, \u003Ccode>::marker\u003C\u002Fcode>, \u003Ccode>::first-letter\u003C\u002Fcode>, \u003Ccode>::first-line\u003C\u002Fcode>,\n\u003Ccode>::placeholder\u003C\u002Fcode>, the \u003Ccode>::-webkit-\u003C\u002Fcode> parts of progress bars, meters and range sliders, and\n\u003Ccode>::scroll-marker\u003C\u002Fcode>, \u003Ccode>::scroll-marker-group\u003C\u002Fcode> and \u003Ccode>::scroll-button()\u003C\u002Fcode> as far as Chrome prints them.\u003C\u002Fli>\n\u003Cli>CSS nesting (\u003Ccode>&amp;\u003C\u002Fcode>, nested rules and nested at-rules).\u003C\u002Fli>\n\u003Cli>The cascade with origins, \u003Ccode>!important\u003C\u002Fcode>, specificity, order, inline styles, cascade layers\n(\u003Ccode>@layer\u003C\u002Fcode>, also anonymous and nested, with \u003Ccode>revert-layer\u003C\u002Fcode>) and \u003Ccode>@scope\u003C\u002Fcode> (with \u003Ccode>:scope\u003C\u002Fcode>, limits,\nproximity, and the implicit scope of a \u003Ccode>&lt;style&gt;\u003C\u002Fcode> element).\u003C\u002Fli>\n\u003Cli>CSS-wide keywords \u003Ccode>initial\u003C\u002Fcode>, \u003Ccode>inherit\u003C\u002Fcode>, \u003Ccode>unset\u003C\u002Fcode>, \u003Ccode>revert\u003C\u002Fcode>, \u003Ccode>revert-layer\u003C\u002Fcode>, and \u003Ccode>all\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Differs or not supported:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>User-action and time states never match: \u003Ccode>:hover\u003C\u002Fcode>, \u003Ccode>:focus\u003C\u002Fcode>, \u003Ccode>:focus-visible\u003C\u002Fcode>, \u003Ccode>:active\u003C\u002Fcode>,\n\u003Ccode>:visited\u003C\u002Fcode>, \u003Ccode>:target\u003C\u002Fcode> (except in SVG fragments), \u003Ccode>:playing\u003C\u002Fcode> and the like.\u003C\u002Fli>\n\u003Cli>Shadow DOM selectors (\u003Ccode>:host\u003C\u002Fcode>, \u003Ccode>::slotted()\u003C\u002Fcode>, \u003Ccode>::part()\u003C\u002Fcode>) match nothing; there is no shadow DOM\nwithout scripts.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"values-and-units\">Values and units\u003Ca class=\"f-doc-anchor\" href=\"#values-and-units\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Custom properties and \u003Ccode>var()\u003C\u002Fcode> with fallbacks; \u003Ccode>@property\u003C\u002Fcode> with syntax checking of registered\nproperties, \u003Ccode>inherits\u003C\u002Fcode> and \u003Ccode>initial-value\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Math functions: \u003Ccode>calc()\u003C\u002Fcode>, \u003Ccode>min()\u003C\u002Fcode>, \u003Ccode>max()\u003C\u002Fcode>, \u003Ccode>clamp()\u003C\u002Fcode>, \u003Ccode>round()\u003C\u002Fcode> (with \u003Ccode>nearest\u003C\u002Fcode>, \u003Ccode>up\u003C\u002Fcode>, \u003Ccode>down\u003C\u002Fcode>,\n\u003Ccode>to-zero\u003C\u002Fcode>), \u003Ccode>mod()\u003C\u002Fcode>, \u003Ccode>rem()\u003C\u002Fcode>, \u003Ccode>abs()\u003C\u002Fcode>, \u003Ccode>sign()\u003C\u002Fcode>, \u003Ccode>hypot()\u003C\u002Fcode>, \u003Ccode>pow()\u003C\u002Fcode>, \u003Ccode>sqrt()\u003C\u002Fcode>, \u003Ccode>exp()\u003C\u002Fcode>, \u003Ccode>log()\u003C\u002Fcode>,\ntrigonometric functions, division of typed values, and \u003Ccode>progress()\u003C\u002Fcode>. A calculation that comes to\nNaN is 0.\u003C\u002Fli>\n\u003Cli>\u003Ccode>calc-size()\u003C\u002Fcode> for widths and heights, and the sizing keywords \u003Ccode>min-content\u003C\u002Fcode>, \u003Ccode>max-content\u003C\u002Fcode>,\n\u003Ccode>fit-content\u003C\u002Fcode>, \u003Ccode>stretch\u003C\u002Fcode> (also \u003Ccode>-webkit-fill-available\u003C\u002Fcode>).\u003C\u002Fli>\n\u003Cli>Newer functions computed per element: \u003Ccode>if()\u003C\u002Fcode> with \u003Ccode>media()\u003C\u002Fcode>, \u003Ccode>supports()\u003C\u002Fcode> and \u003Ccode>style()\u003C\u002Fcode>; typed\n\u003Ccode>attr()\u003C\u002Fcode>; \u003Ccode>sibling-index()\u003C\u002Fcode>, \u003Ccode>sibling-count()\u003C\u002Fcode>; \u003Ccode>env()\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Absolute units: \u003Ccode>px\u003C\u002Fcode>, \u003Ccode>pt\u003C\u002Fcode>, \u003Ccode>pc\u003C\u002Fcode>, \u003Ccode>in\u003C\u002Fcode>, \u003Ccode>cm\u003C\u002Fcode>, \u003Ccode>mm\u003C\u002Fcode>, \u003Ccode>Q\u003C\u002Fcode>. One CSS pixel is 1\u002F96 inch.\u003C\u002Fli>\n\u003Cli>Font-relative units: \u003Ccode>em\u003C\u002Fcode>, \u003Ccode>rem\u003C\u002Fcode>, \u003Ccode>ex\u003C\u002Fcode>, \u003Ccode>rex\u003C\u002Fcode>, \u003Ccode>ch\u003C\u002Fcode>, \u003Ccode>rch\u003C\u002Fcode>, \u003Ccode>cap\u003C\u002Fcode>, \u003Ccode>rcap\u003C\u002Fcode>, \u003Ccode>ic\u003C\u002Fcode>, \u003Ccode>ric\u003C\u002Fcode>, \u003Ccode>lh\u003C\u002Fcode>,\n\u003Ccode>rlh\u003C\u002Fcode>, measured in the first available font of the element's language, as in Chrome.\u003C\u002Fli>\n\u003Cli>Viewport units (\u003Ccode>vw\u003C\u002Fcode>, \u003Ccode>vh\u003C\u002Fcode>, \u003Ccode>vmin\u003C\u002Fcode>, \u003Ccode>vmax\u003C\u002Fcode>, \u003Ccode>vi\u003C\u002Fcode>, \u003Ccode>vb\u003C\u002Fcode> and the \u003Ccode>s\u003C\u002Fcode>, \u003Ccode>l\u003C\u002Fcode>, \u003Ccode>d\u003C\u002Fcode> variants) refer to\nthe page area of the first page.\u003C\u002Fli>\n\u003Cli>Container query units (\u003Ccode>cqw\u003C\u002Fcode>, \u003Ccode>cqh\u003C\u002Fcode>, \u003Ccode>cqi\u003C\u002Fcode>, \u003Ccode>cqb\u003C\u002Fcode>, \u003Ccode>cqmin\u003C\u002Fcode>, \u003Ccode>cqmax\u003C\u002Fcode>).\u003C\u002Fli>\n\u003Cli>\u003Ccode>zoom\u003C\u002Fcode>, as Chrome implements it, including on the root element.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Details:\u003C\u002Fstrong> Lengths are cut to Chrome's layout unit of 1\u002F64 pixel and border widths to whole\npixels, so a border of \u003Ccode>0.5pt\u003C\u002Fcode> is drawn 1px wide and \u003Ccode>1.5px\u003C\u002Fcode> is 1px, as in Chrome. A unitless zero\nnext to lengths in \u003Ccode>min()\u003C\u002Fcode>, \u003Ccode>max()\u003C\u002Fcode> and \u003Ccode>clamp()\u003C\u002Fcode> is invalid, as in Chrome. More than eight nested\nmath functions make a value invalid.\u003C\u002Fp>\n\u003Ch2 id=\"colors\">Colors\u003Ca class=\"f-doc-anchor\" href=\"#colors\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Named colors, hex notation, \u003Ccode>rgb()\u003C\u002Fcode>, \u003Ccode>hsl()\u003C\u002Fcode>, \u003Ccode>hwb()\u003C\u002Fcode>, \u003Ccode>lab()\u003C\u002Fcode>, \u003Ccode>lch()\u003C\u002Fcode>, \u003Ccode>oklab()\u003C\u002Fcode>, \u003Ccode>oklch()\u003C\u002Fcode> and\n\u003Ccode>color()\u003C\u002Fcode> with the predefined spaces (\u003Ccode>srgb\u003C\u002Fcode>, \u003Ccode>display-p3\u003C\u002Fcode>, \u003Ccode>display-p3-linear\u003C\u002Fcode>, \u003Ccode>a98-rgb\u003C\u002Fcode>,\n\u003Ccode>prophoto-rgb\u003C\u002Fcode>, \u003Ccode>rec2020\u003C\u002Fcode>, \u003Ccode>xyz\u003C\u002Fcode> …).\u003C\u002Fli>\n\u003Cli>\u003Ccode>color-mix()\u003C\u002Fcode>, relative colors (\u003Ccode>oklch(from var(--brand) l c h \u002F 50%)\u003C\u002Fcode>, also with \u003Ccode>calc()\u003C\u002Fcode> on the\nchannels), \u003Ccode>currentcolor\u003C\u002Fcode>, \u003Ccode>light-dark()\u003C\u002Fcode>, \u003Ccode>contrast-color()\u003C\u002Fcode>, and the system colors.\u003C\u002Fli>\n\u003Cli>\u003Ccode>color-scheme\u003C\u002Fcode> (including \u003Ccode>&lt;meta name=&quot;color-scheme&quot;&gt;\u003C\u002Fcode>): a dark root gives a dark page and dark\nform controls, as in Chrome.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Details:\u003C\u002Fstrong> Colors outside sRGB are clipped to sRGB channel by channel, as Chrome clips them for\nprint. \u003Ccode>prefers-color-scheme\u003C\u002Fcode> is \u003Ccode>light\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"the-box-model\">The box model\u003Ca class=\"f-doc-anchor\" href=\"#the-box-model\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>margin\u003C\u002Fcode>, \u003Ccode>padding\u003C\u002Fcode>, \u003Ccode>border\u003C\u002Fcode>, \u003Ccode>width\u003C\u002Fcode>, \u003Ccode>height\u003C\u002Fcode> with their minimums and maximums,\n\u003Ccode>box-sizing\u003C\u002Fcode>, \u003Ccode>aspect-ratio\u003C\u002Fcode>, logical properties (\u003Ccode>margin-inline\u003C\u002Fcode>, \u003Ccode>inset-block-start\u003C\u002Fcode>,\n\u003Ccode>border-start-end-radius\u003C\u002Fcode> …) in every writing mode, margin collapsing, \u003Ccode>margin-trim\u003C\u002Fcode> for block\ncontainers, \u003Ccode>outline\u003C\u002Fcode> with \u003Ccode>outline-offset\u003C\u002Fcode> (and \u003Ccode>outline-style: auto\u003C\u002Fcode> as Chrome's focus ring),\n\u003Ccode>visibility\u003C\u002Fcode> (including \u003Ccode>collapse\u003C\u002Fcode> on table rows and columns), \u003Ccode>opacity\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Details:\u003C\u002Fstrong> Percentage heights resolve against the containing block where its height does not\ndepend on the content: the page area for the root element, so a page laid out with\n\u003Ccode>html, body { height: 100% }\u003C\u002Fcode> fills the page. \u003Ccode>border-style: solid\u003C\u002Fcode> without a width is \u003Ccode>medium\u003C\u002Fcode>\n(3px), as in Chrome.\u003C\u002Fp>\n\u003Ch2 id=\"display-and-layout\">Display and layout\u003Ca class=\"f-doc-anchor\" href=\"#display-and-layout\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Ch3 id=\"block-and-inline\">Block and inline\u003Ca class=\"f-doc-anchor\" href=\"#block-and-inline\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> block and inline formatting contexts, \u003Ccode>inline-block\u003C\u002Fcode>, \u003Ccode>flow-root\u003C\u002Fcode>, \u003Ccode>display: contents\u003C\u002Fcode>,\n\u003Ccode>list-item\u003C\u002Fcode> (also \u003Ccode>inline list-item\u003C\u002Fcode>), every \u003Ccode>vertical-align\u003C\u002Fcode> value, inline boxes with padding,\nborders and backgrounds across lines, \u003Ccode>box-decoration-break: clone\u003C\u002Fcode> (and its \u003Ccode>-webkit-\u003C\u002Fcode> alias),\n\u003Ccode>justify-self\u003C\u002Fcode>\u002F\u003Ccode>justify-items\u003C\u002Fcode> on block-level boxes, and \u003Ccode>display: -webkit-box\u003C\u002Fcode> with the old\n\u003Ccode>-webkit-box-*\u003C\u002Fcode> properties as Blink lays it out.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> \u003Ccode>display: run-in\u003C\u002Fcode> is invalid, as in Chrome.\u003C\u002Fp>\n\u003Ch3 id=\"floats\">Floats\u003Ca class=\"f-doc-anchor\" href=\"#floats\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>float\u003C\u002Fcode> (\u003Ccode>left\u003C\u002Fcode>, \u003Ccode>right\u003C\u002Fcode>, \u003Ccode>inline-start\u003C\u002Fcode>, \u003Ccode>inline-end\u003C\u002Fcode>) and \u003Ccode>clear\u003C\u002Fcode> as in CSS 2.1, floats\nthat break across pages and columns, and \u003Ccode>shape-outside\u003C\u002Fcode> (basic shapes, \u003Ccode>path()\u003C\u002Fcode>, \u003Ccode>xywh()\u003C\u002Fcode>,\n\u003Ccode>rect()\u003C\u002Fcode>, \u003Ccode>shape()\u003C\u002Fcode>, box keywords, images and gradients with \u003Ccode>shape-image-threshold\u003C\u002Fcode>, and\n\u003Ccode>shape-margin\u003C\u002Fcode>).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> \u003Ccode>float: footnote\u003C\u002Fcode> (an invalid value, as in Chrome, which leaves an earlier\n\u003Ccode>float\u003C\u002Fcode> in force) and the other footnote properties (see \u003Ca href=\"\u002Fdocs\u002Fpaged-media#footnotes\">Paged media\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch3 id=\"flexbox\">Flexbox\u003Ca class=\"f-doc-anchor\" href=\"#flexbox\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> all of CSS Flexbox: direction and wrapping (with \u003Ccode>row-reverse\u003C\u002Fcode>, \u003Ccode>column-reverse\u003C\u002Fcode>,\n\u003Ccode>wrap-reverse\u003C\u002Fcode>), \u003Ccode>flex-grow\u003C\u002Fcode>, \u003Ccode>flex-shrink\u003C\u002Fcode>, \u003Ccode>flex-basis\u003C\u002Fcode> (with \u003Ccode>content\u003C\u002Fcode> and keywords), \u003Ccode>order\u003C\u002Fcode>,\n\u003Ccode>gap\u003C\u002Fcode>, every alignment property with \u003Ccode>safe\u003C\u002Fcode> and \u003Ccode>unsafe\u003C\u002Fcode>, \u003Ccode>baseline\u003C\u002Fcode> and \u003Ccode>last baseline\u003C\u002Fcode>\nalignment, auto margins, the automatic minimum size of items, and \u003Ccode>flex-wrap: balance\u003C\u002Fcode>. Flex\ncontainers break across pages between lines and inside items.\u003C\u002Fp>\n\u003Ch3 id=\"grid\">Grid\u003Ca class=\"f-doc-anchor\" href=\"#grid\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> CSS Grid 1 and 2: explicit and implicit tracks, \u003Ccode>fr\u003C\u002Fcode>, \u003Ccode>minmax()\u003C\u002Fcode>, \u003Ccode>fit-content()\u003C\u002Fcode>,\n\u003Ccode>repeat()\u003C\u002Fcode> with \u003Ccode>auto-fill\u003C\u002Fcode> and \u003Ccode>auto-fit\u003C\u002Fcode>, named lines and areas (\u003Ccode>grid-template-areas\u003C\u002Fcode>,\n\u003Ccode>grid-template\u003C\u002Fcode>, \u003Ccode>grid\u003C\u002Fcode>), auto-placement with \u003Ccode>dense\u003C\u002Fcode> and \u003Ccode>grid-auto-flow: column\u003C\u002Fcode>, \u003Ccode>subgrid\u003C\u002Fcode>\n(with line names), gaps (also the old \u003Ccode>grid-gap\u003C\u002Fcode>), alignment including baselines, and absolutely\npositioned items placed by grid lines. Grids break across pages between rows and inside items.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Limits:\u003C\u002Fstrong> at most 1000 explicit tracks, line numbers and spans are clamped to 1000 (browsers\nclamp too), and items are placed in at most 10,000 rows.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> \u003Ccode>display: grid-lanes\u003C\u002Fcode> (masonry) is invalid, as in Chrome 157 without\nexperimental features.\u003C\u002Fp>\n\u003Ch3 id=\"multi-column-layout\">Multi-column layout\u003Ca class=\"f-doc-anchor\" href=\"#multi-column-layout\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>columns\u003C\u002Fcode>, \u003Ccode>column-count\u003C\u002Fcode>, \u003Ccode>column-width\u003C\u002Fcode>, \u003Ccode>column-gap\u003C\u002Fcode>, \u003Ccode>column-rule\u003C\u002Fcode>, \u003Ccode>column-fill\u003C\u002Fcode>\n(balanced by default), \u003Ccode>column-span: all\u003C\u002Fcode>, \u003Ccode>break-before\u003C\u002Fcode>\u002F\u003Ccode>break-after: column\u003C\u002Fcode>, \u003Ccode>column-height\u003C\u002Fcode>\nand \u003Ccode>column-wrap\u003C\u002Fcode> (rows of columns), and nested multi-column containers. Columns continue on the\nnext page when they are full.\u003C\u002Fp>\n\u003Ch3 id=\"tables\">Tables\u003Ca class=\"f-doc-anchor\" href=\"#tables\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>table-layout: auto\u003C\u002Fcode> and \u003Ccode>fixed\u003C\u002Fcode> with Chrome's column width algorithm, \u003Ccode>rowspan\u003C\u002Fcode> and\n\u003Ccode>colspan\u003C\u002Fcode>, \u003Ccode>&lt;col&gt;\u003C\u002Fcode> and \u003Ccode>&lt;colgroup&gt;\u003C\u002Fcode> widths and backgrounds, \u003Ccode>border-collapse\u003C\u002Fcode> (collapsed borders\nresolved as Chrome resolves them) and \u003Ccode>border-spacing\u003C\u002Fcode>, captions (\u003Ccode>caption-side\u003C\u002Fcode>), \u003Ccode>empty-cells\u003C\u002Fcode>,\n\u003Ccode>vertical-align\u003C\u002Fcode> in cells, anonymous table boxes as Chrome generates them, and CSS table displays\non any element.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>In print:\u003C\u002Fstrong> \u003Ccode>&lt;thead&gt;\u003C\u002Fcode> and \u003Ccode>&lt;tfoot&gt;\u003C\u002Fcode> repeat on every page where the table breaks; rows that do not\nfit break inside their cells; \u003Ccode>counter-increment\u003C\u002Fcode> and \u003Ccode>string-set\u003C\u002Fcode> on rows work. See\n\u003Ca href=\"\u002Fdocs\u002Fpaged-media#repeat-table-headers-on-every-page\">Paged media\u003C\u002Fa> and the carry-over rows of\n\u003Ca href=\"\u002Fdocs\u002Fextensions\">Extensions\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Differs:\u003C\u002Fstrong> cells with \u003Ccode>vertical-align: baseline\u003C\u002Fcode> sit at the top of their row, as in Chrome's print\nof tables that may break across pages.\u003C\u002Fp>\n\u003Ch3 id=\"positioning\">Positioning\u003Ca class=\"f-doc-anchor\" href=\"#positioning\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>relative\u003C\u002Fcode>, \u003Ccode>absolute\u003C\u002Fcode>, \u003Ccode>fixed\u003C\u002Fcode>, \u003Ccode>sticky\u003C\u002Fcode>, \u003Ccode>z-index\u003C\u002Fcode> and stacking contexts, inset\nproperties, \u003Ccode>clip: rect()\u003C\u002Fcode>, and anchor positioning (\u003Ccode>anchor-name\u003C\u002Fcode>, \u003Ccode>position-anchor\u003C\u002Fcode>, \u003Ccode>anchor()\u003C\u002Fcode>,\n\u003Ccode>anchor-size()\u003C\u002Fcode>, \u003Ccode>position-area\u003C\u002Fcode>, \u003Ccode>anchor-center\u003C\u002Fcode>, \u003Ccode>anchor-scope\u003C\u002Fcode>, \u003Ccode>@position-try\u003C\u002Fcode>,\n\u003Ccode>position-try-fallbacks\u003C\u002Fcode>, \u003Ccode>position-try-order\u003C\u002Fcode>, \u003Ccode>position-visibility\u003C\u002Fcode>).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>In print:\u003C\u002Fstrong> a \u003Ccode>position: fixed\u003C\u002Fcode> box repeats on every page, as in Chrome. Absolutely positioned\nboxes break across pages. Sticky boxes stick in Chrome's print window.\u003C\u002Fp>\n\u003Ch3 id=\"overflow-and-containment\">Overflow and containment\u003Ca class=\"f-doc-anchor\" href=\"#overflow-and-containment\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>overflow\u003C\u002Fcode> (\u003Ccode>visible\u003C\u002Fcode>, \u003Ccode>hidden\u003C\u002Fcode>, \u003Ccode>clip\u003C\u002Fcode>, \u003Ccode>scroll\u003C\u002Fcode>, \u003Ccode>auto\u003C\u002Fcode>, also per axis),\n\u003Ccode>overflow-clip-margin\u003C\u002Fcode>, \u003Ccode>text-overflow\u003C\u002Fcode> (\u003Ccode>ellipsis\u003C\u002Fcode> and a string), \u003Ccode>-webkit-line-clamp\u003C\u002Fcode> (Tailwind's\n\u003Ccode>line-clamp-*\u003C\u002Fcode>), \u003Ccode>contain\u003C\u002Fcode>, \u003Ccode>content-visibility: hidden\u003C\u002Fcode>, \u003Ccode>contain-intrinsic-size\u003C\u002Fcode>,\n\u003Ccode>container-type\u003C\u002Fcode>, \u003Ccode>container-name\u003C\u002Fcode>, \u003Ccode>will-change\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Details:\u003C\u002Fstrong> content of a scroll container is printed as far as the box shows it, without\nscrolling. Content wider than the page area makes Fagus lay the page out again and scale it down,\nas Chrome's shrink-to-fit does (to at most 1.5 times the page width).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> the unprefixed \u003Ccode>line-clamp\u003C\u002Fcode> is ignored, as Chrome 157 ignores it; use\n\u003Ccode>-webkit-line-clamp\u003C\u002Fcode> with \u003Ccode>display: -webkit-box\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch3 id=\"container-queries\">Container queries\u003Ca class=\"f-doc-anchor\" href=\"#container-queries\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Ccode>@container\u003C\u002Fcode> with size features (\u003Ccode>width\u003C\u002Fcode>, \u003Ccode>height\u003C\u002Fcode>, \u003Ccode>inline-size\u003C\u002Fcode>, \u003Ccode>block-size\u003C\u002Fcode>, \u003Ccode>aspect-ratio\u003C\u002Fcode>,\n\u003Ccode>orientation\u003C\u002Fcode>, ranges) and style queries (\u003Ccode>style(--x: y)\u003C\u002Fcode>). Fagus finds the container sizes in a\nfirst layout and lays the document out again with them.\u003C\u002Fp>\n\u003Ch2 id=\"backgrounds-borders-and-shadows\">Backgrounds, borders and shadows\u003Ca class=\"f-doc-anchor\" href=\"#backgrounds-borders-and-shadows\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Several background layers with \u003Ccode>background-image\u003C\u002Fcode>, \u003Ccode>-size\u003C\u002Fcode>, \u003Ccode>-position\u003C\u002Fcode>, \u003Ccode>-repeat\u003C\u002Fcode> (\u003Ccode>space\u003C\u002Fcode> and\n\u003Ccode>round\u003C\u002Fcode> too), \u003Ccode>-origin\u003C\u002Fcode>, \u003Ccode>-clip\u003C\u002Fcode> (including \u003Ccode>text\u003C\u002Fcode> and \u003Ccode>border-area\u003C\u002Fcode>), \u003Ccode>-attachment\u003C\u002Fcode>\n(\u003Ccode>fixed\u003C\u002Fcode> is placed as Chrome places it in print, \u003Ccode>local\u003C\u002Fcode> in the scrollable overflow) and\n\u003Ccode>background-blend-mode\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Gradients: \u003Ccode>linear-gradient()\u003C\u002Fcode>, \u003Ccode>radial-gradient()\u003C\u002Fcode>, \u003Ccode>conic-gradient()\u003C\u002Fcode> and their repeating\nforms, with color hints and interpolation methods (\u003Ccode>in oklch longer hue\u003C\u002Fcode>); \u003Ccode>image()\u003C\u002Fcode>,\n\u003Ccode>image-set()\u003C\u002Fcode> (and \u003Ccode>-webkit-image-set()\u003C\u002Fcode>), and \u003Ccode>light-dark()\u003C\u002Fcode> images.\u003C\u002Fli>\n\u003Cli>Borders in all styles (\u003Ccode>solid\u003C\u002Fcode>, \u003Ccode>dashed\u003C\u002Fcode>, \u003Ccode>dotted\u003C\u002Fcode>, \u003Ccode>double\u003C\u002Fcode>, \u003Ccode>groove\u003C\u002Fcode>, \u003Ccode>ridge\u003C\u002Fcode>, \u003Ccode>inset\u003C\u002Fcode>,\n\u003Ccode>outset\u003C\u002Fcode>), drawn with Chrome's dash patterns, miters and 3D shades; \u003Ccode>border-radius\u003C\u002Fcode> with\nelliptical corners; \u003Ccode>corner-shape\u003C\u002Fcode> (with \u003Ccode>superellipse()\u003C\u002Fcode>); \u003Ccode>border-shape\u003C\u002Fcode>; \u003Ccode>border-image\u003C\u002Fcode> with\nall its longhands.\u003C\u002Fli>\n\u003Cli>\u003Ccode>box-shadow\u003C\u002Fcode> (outer and inset, blur and spread) and \u003Ccode>text-shadow\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Details:\u003C\u002Fstrong> gradients are written as vector shadings in the PDF and stay sharp at any zoom. As in\nChrome's PDF output, the colors between two stops are interpolated in sRGB whatever color space the\ngradient names, while color hints follow the named space. A background on the root element (or on\n\u003Ccode>body\u003C\u002Fcode> when the root has none) covers the whole canvas on every page. Backgrounds of boxes broken\nacross pages continue where the page before left off; with \u003Ccode>box-decoration-break: clone\u003C\u002Fcode> each part\nstarts anew.\u003C\u002Fp>\n\u003Ch2 id=\"effects\">Effects\u003Ca class=\"f-doc-anchor\" href=\"#effects\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>2D and 3D transforms: \u003Ccode>transform\u003C\u002Fcode> with all functions, the individual \u003Ccode>translate\u003C\u002Fcode>, \u003Ccode>rotate\u003C\u002Fcode> and\n\u003Ccode>scale\u003C\u002Fcode>, \u003Ccode>transform-origin\u003C\u002Fcode>, \u003Ccode>transform-box\u003C\u002Fcode>, \u003Ccode>transform-style: preserve-3d\u003C\u002Fcode>, \u003Ccode>perspective\u003C\u002Fcode> and\n\u003Ccode>perspective-origin\u003C\u002Fcode>. 3D transforms are flattened onto the page as Chrome prints them.\u003C\u002Fli>\n\u003Cli>\u003Ccode>filter\u003C\u002Fcode> with all CSS filter functions and SVG filter references (\u003Ccode>url(#filter)\u003C\u002Fcode>).\u003C\u002Fli>\n\u003Cli>\u003Ccode>mix-blend-mode\u003C\u002Fcode>, \u003Ccode>isolation\u003C\u002Fcode>, \u003Ccode>background-blend-mode\u003C\u002Fcode>, as PDF blend modes.\u003C\u002Fli>\n\u003Cli>\u003Ccode>mask\u003C\u002Fcode> and its longhands (also \u003Ccode>-webkit-mask-*\u003C\u002Fcode>): gradient, raster and SVG image layers,\n\u003Ccode>mask-mode\u003C\u002Fcode>, \u003Ccode>mask-composite\u003C\u002Fcode>, \u003Ccode>mask-type\u003C\u002Fcode>, and SVG \u003Ccode>&lt;mask&gt;\u003C\u002Fcode> references.\u003C\u002Fli>\n\u003Cli>\u003Ccode>clip-path\u003C\u002Fcode> with \u003Ccode>inset()\u003C\u002Fcode>, \u003Ccode>circle()\u003C\u002Fcode>, \u003Ccode>ellipse()\u003C\u002Fcode>, \u003Ccode>polygon()\u003C\u002Fcode>, \u003Ccode>path()\u003C\u002Fcode>, \u003Ccode>xywh()\u003C\u002Fcode>, \u003Ccode>rect()\u003C\u002Fcode>,\n\u003Ccode>shape()\u003C\u002Fcode>, a box keyword, or an SVG \u003Ccode>&lt;clipPath&gt;\u003C\u002Fcode> reference.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Differs from Chrome:\u003C\u002Fstrong> Chrome prints filtered content as an image; Fagus keeps text and shapes as\nvectors where the filter allows it (color filters, \u003Ccode>drop-shadow()\u003C\u002Fcode>, \u003Ccode>opacity()\u003C\u002Fcode>), so the text stays\nsearchable. Blurs and SVG filter primitives without a CSS equivalent (turbulence, lighting,\nmorphology, displacement) are rasterized at 300 ppi, as Chrome prints them.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> \u003Ccode>backdrop-filter\u003C\u002Fcode> does not filter what lies behind the box; the box is only drawn\nas an isolated group.\u003C\u002Fp>\n\u003Ch2 id=\"images-and-replaced-content\">Images and replaced content\u003Ca class=\"f-doc-anchor\" href=\"#images-and-replaced-content\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>&lt;img&gt;\u003C\u002Fcode> with PNG, JPEG, GIF, WebP and SVG. SVG stays vector graphics. JPEG, PNG and WebP are\nturned as their EXIF orientation says (\u003Ccode>image-orientation: none\u003C\u002Fcode> turns this off).\u003C\u002Fli>\n\u003Cli>\u003Ccode>srcset\u003C\u002Fcode>, \u003Ccode>sizes\u003C\u002Fcode> and \u003Ccode>&lt;picture&gt;\u003C\u002Fcode> with \u003Ccode>media\u003C\u002Fcode> and \u003Ccode>type\u003C\u002Fcode>, chosen as Chrome chooses them when it\nloads the page (on screen, before printing). \u003Ccode>(min-resolution)\u003C\u002Fcode> queries see 300 dpi.\u003C\u002Fli>\n\u003Cli>\u003Ccode>object-fit\u003C\u002Fcode> and \u003Ccode>object-position\u003C\u002Fcode>, \u003Ccode>image-rendering: pixelated\u003C\u002Fcode> and \u003Ccode>crisp-edges\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Inline \u003Ccode>&lt;svg&gt;\u003C\u002Fcode>, drawn as vectors in the text's color (\u003Ccode>currentColor\u003C\u002Fcode>) and font, styled by the\ndocument's CSS (\u003Ccode>fill\u003C\u002Fcode>, \u003Ccode>stroke\u003C\u002Fcode>, Tailwind's \u003Ccode>fill-current\u003C\u002Fcode>), with \u003Ccode>&lt;use&gt;\u003C\u002Fcode> across documents,\n\u003Ccode>&lt;foreignObject&gt;\u003C\u002Fcode> HTML, masks, clips, filters, text on paths and \u003Ccode>vector-effect\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Ccode>content: url(…)\u003C\u002Fcode> on an element replaces it with the image (as print stylesheets swap logos);\nin \u003Ccode>::before\u003C\u002Fcode> and \u003Ccode>::after\u003C\u002Fcode> it shows the image.\u003C\u002Fli>\n\u003Cli>\u003Ccode>&lt;iframe&gt;\u003C\u002Fcode> (\u003Ccode>srcdoc\u003C\u002Fcode> or \u003Ccode>src\u003C\u002Fcode>), \u003Ccode>&lt;object&gt;\u003C\u002Fcode> and \u003Ccode>&lt;embed&gt;\u003C\u002Fcode> showing an HTML document, an image or a\ntext file; frames are laid out at their own size, unpaginated and clipped, as Chrome prints them,\nat most 8 levels deep. \u003Ccode>frame-sizing: content-height\u003C\u002Fcode> sizes a frame to its document.\u003C\u002Fli>\n\u003Cli>\u003Ccode>&lt;video&gt;\u003C\u002Fcode> shows its poster, \u003Ccode>&lt;canvas&gt;\u003C\u002Fcode> is a transparent box.\u003C\u002Fli>\n\u003Cli>MathML Core: \u003Ccode>&lt;math&gt;\u003C\u002Fcode> with fractions, roots, scripts, operators stretched through the font's MATH\ntable, and tables. The generic family \u003Ccode>math\u003C\u002Fcode> finds a math font.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Differs:\u003C\u002Fstrong> AVIF and JPEG XL are skipped in \u003Ccode>&lt;picture&gt;\u003C\u002Fcode> and \u003Ccode>image-set()\u003C\u002Fcode>; use one of the formats\nabove. An image that does not load shows its alt text after Chrome's broken-image icon. An image\nwhose data does not decode is left out with an \u003Ccode>image.broken\u003C\u002Fcode> warning.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> scripts in SVG and in frames do not run. Fagus loads no media other than images.\u003C\u002Fp>\n\u003Ch2 id=\"text\">Text\u003Ca class=\"f-doc-anchor\" href=\"#text\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Ch3 id=\"white-space-and-line-breaking\">White space and line breaking\u003Ca class=\"f-doc-anchor\" href=\"#white-space-and-line-breaking\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>white-space\u003C\u002Fcode> with its longhands \u003Ccode>white-space-collapse\u003C\u002Fcode> and \u003Ccode>text-wrap-mode\u003C\u002Fcode>,\n\u003Ccode>text-wrap\u003C\u002Fcode> (\u003Ccode>wrap\u003C\u002Fcode>, \u003Ccode>nowrap\u003C\u002Fcode>, \u003Ccode>balance\u003C\u002Fcode>, \u003Ccode>pretty\u003C\u002Fcode>, \u003Ccode>stable\u003C\u002Fcode>) with Chrome's line breakers,\n\u003Ccode>overflow-wrap\u003C\u002Fcode> (\u003Ccode>anywhere\u003C\u002Fcode>, \u003Ccode>break-word\u003C\u002Fcode>, also as \u003Ccode>word-wrap\u003C\u002Fcode>), \u003Ccode>word-break\u003C\u002Fcode> (\u003Ccode>break-all\u003C\u002Fcode>,\n\u003Ccode>keep-all\u003C\u002Fcode>, \u003Ccode>auto-phrase\u003C\u002Fcode> for Japanese, and the old \u003Ccode>break-word\u003C\u002Fcode>), \u003Ccode>line-break\u003C\u002Fcode>, \u003Ccode>&lt;wbr&gt;\u003C\u002Fcode>, soft\nhyphens (\u003Ccode>&amp;shy;\u003C\u002Fcode>), \u003Ccode>tab-size\u003C\u002Fcode>, and \u003Ccode>hanging\u003C\u002Fcode> and \u003Ccode>each-line\u003C\u002Fcode> in \u003Ccode>text-indent\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Details:\u003C\u002Fstrong> lines break where Chrome breaks them: between ASCII characters by Blink's own table\n(after \u003Ccode>-\u003C\u002Fcode> and \u003Ccode>?\u003C\u002Fcode>, not after the slashes and dots of a URL), elsewhere by the Unicode line breaking\nalgorithm. Thai, Lao, Khmer and Myanmar break between dictionary words.\u003C\u002Fp>\n\u003Ch3 id=\"hyphenation\">Hyphenation\u003Ca class=\"f-doc-anchor\" href=\"#hyphenation\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Ccode>hyphens: auto\u003C\u002Fcode> hyphenates with Chrome's dictionaries and rules on Linux, the same on every system,\nin the language of the text's \u003Ccode>lang\u003C\u002Fcode> attribute. Without \u003Ccode>lang\u003C\u002Fcode> nothing is hyphenated. There are\ndictionaries for Afrikaans, Assamese, Belarusian, Bengali, Bulgarian, Czech, Church Slavonic,\nWelsh, Danish, German (1901, 1996 and Swiss), Greek, English (US and UK), Spanish, Estonian, Basque,\nFrench, Irish, Galician, Gujarati, Hindi, Croatian, Italian, Georgian, Kannada, Latin, Lithuanian,\nMalayalam, Mongolian, Marathi, Ethiopic scripts, Norwegian (Bokmål and Nynorsk), Dutch, Odia,\nPunjabi, Portuguese, Slovak, Slovenian, Albanian, Swedish, Tamil, Telugu, Turkmen and Ukrainian.\nHungarian, Armenian, Latvian and Russian are left out for their licenses.\u003C\u002Fp>\n\u003Cp>\u003Ccode>hyphenate-character\u003C\u002Fcode> and \u003Ccode>hyphenate-limit-chars\u003C\u002Fcode> work. As in Chrome, capitalized English words and\nthe last word of a paragraph are not hyphenated. The hyphen at a break is a soft hyphen in the\ntext of the PDF, so copied text and screen readers get the whole word.\u003C\u002Fp>\n\u003Ch3 id=\"alignment-and-spacing\">Alignment and spacing\u003Ca class=\"f-doc-anchor\" href=\"#alignment-and-spacing\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>text-align\u003C\u002Fcode> (including \u003Ccode>justify\u003C\u002Fcode>, \u003Ccode>start\u003C\u002Fcode>, \u003Ccode>end\u003C\u002Fcode>, \u003Ccode>match-parent\u003C\u002Fcode>), \u003Ccode>text-align-last\u003C\u002Fcode>,\n\u003Ccode>text-justify\u003C\u002Fcode> (\u003Ccode>auto\u003C\u002Fcode>, \u003Ccode>none\u003C\u002Fcode>, \u003Ccode>inter-word\u003C\u002Fcode>, \u003Ccode>inter-character\u003C\u002Fcode>), \u003Ccode>text-indent\u003C\u002Fcode>, \u003Ccode>letter-spacing\u003C\u002Fcode>\nand \u003Ccode>word-spacing\u003C\u002Fcode> (also as percentages), \u003Ccode>text-transform\u003C\u002Fcode> (with language rules for Greek and\nTurkish, and \u003Ccode>math-auto\u003C\u002Fcode>), \u003Ccode>initial-letter\u003C\u002Fcode>, \u003Ccode>text-box-trim\u003C\u002Fcode>, \u003Ccode>text-box-edge\u003C\u002Fcode> and \u003Ccode>text-box\u003C\u002Fcode>,\n\u003Ccode>text-fit\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> \u003Ccode>text-align: justify-all\u003C\u002Fcode> is invalid, as in Chrome; use \u003Ccode>text-align: justify\u003C\u002Fcode>\nwith \u003Ccode>text-align-last: justify\u003C\u002Fcode>. \u003Ccode>text-justify: distribute\u003C\u002Fcode> is invalid.\u003C\u002Fp>\n\u003Ch3 id=\"decorations-and-emphasis\">Decorations and emphasis\u003Ca class=\"f-doc-anchor\" href=\"#decorations-and-emphasis\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>text-decoration\u003C\u002Fcode> with \u003Ccode>-line\u003C\u002Fcode>, \u003Ccode>-style\u003C\u002Fcode> (\u003Ccode>solid\u003C\u002Fcode>, \u003Ccode>double\u003C\u002Fcode>, \u003Ccode>dotted\u003C\u002Fcode>, \u003Ccode>dashed\u003C\u002Fcode>, \u003Ccode>wavy\u003C\u002Fcode>),\n\u003Ccode>-color\u003C\u002Fcode>, \u003Ccode>-thickness\u003C\u002Fcode>, \u003Ccode>text-underline-offset\u003C\u002Fcode>, \u003Ccode>text-underline-position\u003C\u002Fcode>,\n\u003Ccode>text-decoration-skip-ink\u003C\u002Fcode>; \u003Ccode>-webkit-text-fill-color\u003C\u002Fcode>; emphasis marks (\u003Ccode>text-emphasis\u003C\u002Fcode> and its\nlonghands).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> \u003Ccode>-webkit-text-stroke\u003C\u002Fcode> and \u003Ccode>paint-order\u003C\u002Fcode> for HTML text.\u003C\u002Fp>\n\u003Ch3 id=\"writing-modes-and-bidirectional-text\">Writing modes and bidirectional text\u003Ca class=\"f-doc-anchor\" href=\"#writing-modes-and-bidirectional-text\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>writing-mode\u003C\u002Fcode> (\u003Ccode>horizontal-tb\u003C\u002Fcode>, \u003Ccode>vertical-rl\u003C\u002Fcode>, \u003Ccode>vertical-lr\u003C\u002Fcode>, \u003Ccode>sideways-rl\u003C\u002Fcode>,\n\u003Ccode>sideways-lr\u003C\u002Fcode>, the SVG names and \u003Ccode>-webkit-writing-mode\u003C\u002Fcode>), \u003Ccode>text-orientation\u003C\u002Fcode>,\n\u003Ccode>text-combine-upright: all\u003C\u002Fcode>, \u003Ccode>direction\u003C\u002Fcode>, \u003Ccode>unicode-bidi\u003C\u002Fcode>, \u003Ccode>dir\u003C\u002Fcode> and \u003Ccode>dir=auto\u003C\u002Fcode>, \u003Ccode>&lt;bdi&gt;\u003C\u002Fcode> and \u003Ccode>&lt;bdo&gt;\u003C\u002Fcode>.\nLogical properties, tables, flex, grid and columns follow right-to-left and vertical text. Hebrew\nand Arabic copy out of the PDF in reading order.\u003C\u002Fp>\n\u003Ch3 id=\"east-asian-text-and-ruby\">East Asian text and ruby\u003Ca class=\"f-doc-anchor\" href=\"#east-asian-text-and-ruby\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>&lt;ruby&gt;\u003C\u002Fcode>, \u003Ccode>&lt;rt&gt;\u003C\u002Fcode> and \u003Ccode>&lt;rp&gt;\u003C\u002Fcode> with \u003Ccode>ruby-position\u003C\u002Fcode> and \u003Ccode>ruby-align\u003C\u002Fcode>, nested and double-sided\nruby; \u003Ccode>text-spacing-trim\u003C\u002Fcode>, \u003Ccode>text-autospace\u003C\u002Fcode>, and justification between ideographs and kana, as in\nChrome. Japanese and Chinese stand upright in vertical text with the vertical forms of the font.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> \u003Ccode>ruby-overhang\u003C\u002Fcode>, \u003Ccode>text-spacing\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch3 id=\"scripts\">Scripts\u003Ca class=\"f-doc-anchor\" href=\"#scripts\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>Text is shaped with HarfBuzz rules in its script and language: Arabic and other joining scripts join\n(also across inline elements), Indic scripts form their clusters, and the \u003Ccode>lang\u003C\u002Fcode> attribute selects\na font's localized forms. Emoji sequences use a color font where one is available.\u003C\u002Fp>\n\u003Ch2 id=\"fonts\">Fonts\u003Ca class=\"f-doc-anchor\" href=\"#fonts\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Ccode>@font-face\u003C\u002Fcode> (TTF, OTF, WOFF, WOFF2, variable fonts, \u003Ccode>unicode-range\u003C\u002Fcode>, \u003Ccode>local()\u003C\u002Fcode>, \u003Ccode>size-adjust\u003C\u002Fcode> and\nthe metric overrides), \u003Ccode>font-family\u003C\u002Fcode>, \u003Ccode>font-weight\u003C\u002Fcode>, \u003Ccode>font-style\u003C\u002Fcode> (italic and oblique angles),\n\u003Ccode>font-stretch\u003C\u002Fcode>, \u003Ccode>font-size\u003C\u002Fcode> (with \u003Ccode>math\u003C\u002Fcode>), \u003Ccode>font-size-adjust\u003C\u002Fcode>, \u003Ccode>font-synthesis\u003C\u002Fcode>, \u003Ccode>font-kerning\u003C\u002Fcode>,\n\u003Ccode>font-optical-sizing\u003C\u002Fcode>, \u003Ccode>font-variation-settings\u003C\u002Fcode>, \u003Ccode>font-feature-settings\u003C\u002Fcode>, \u003Ccode>font-variant\u003C\u002Fcode> with all\nits longhands, \u003Ccode>font-palette\u003C\u002Fcode> with \u003Ccode>@font-palette-values\u003C\u002Fcode>, and \u003Ccode>text-rendering\u003C\u002Fcode>. See\n\u003Ca href=\"\u002Fdocs\u002Ffonts\">Fonts\u003C\u002Fa> for where fonts come from and how fallback works.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Not supported:\u003C\u002Fstrong> \u003Ccode>@font-feature-values\u003C\u002Fcode> (so \u003Ccode>font-variant-alternates: styleset(name)\u003C\u002Fcode> has no\nnamed sets).\u003C\u002Fp>\n\u003Ch2 id=\"lists-and-counters\">Lists and counters\u003Ca class=\"f-doc-anchor\" href=\"#lists-and-counters\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>list-style-type\u003C\u002Fcode> with all of Chrome's predefined counter styles, \u003Ccode>list-style-position\u003C\u002Fcode>,\n\u003Ccode>list-style-image\u003C\u002Fcode>, \u003Ccode>::marker\u003C\u002Fcode>, \u003Ccode>@counter-style\u003C\u002Fcode> (all systems and descriptors), \u003Ccode>counter-reset\u003C\u002Fcode>,\n\u003Ccode>counter-increment\u003C\u002Fcode>, \u003Ccode>counter-set\u003C\u002Fcode>, \u003Ccode>counter()\u003C\u002Fcode> and \u003Ccode>counters()\u003C\u002Fcode>, and the \u003Ccode>start\u003C\u002Fcode>, \u003Ccode>reversed\u003C\u002Fcode> and\n\u003Ccode>value\u003C\u002Fcode> attributes.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Details:\u003C\u002Fstrong> \u003Ccode>disc\u003C\u002Fcode>, \u003Ccode>circle\u003C\u002Fcode>, \u003Ccode>square\u003C\u002Fcode> and the disclosure markers are drawn as Chrome's shapes,\nnot as glyphs, at Chrome's distance from the text.\u003C\u002Fp>\n\u003Ch2 id=\"generated-content\">Generated content\u003Ca class=\"f-doc-anchor\" href=\"#generated-content\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Works:\u003C\u002Fstrong> \u003Ccode>content\u003C\u002Fcode> on \u003Ccode>::before\u003C\u002Fcode>, \u003Ccode>::after\u003C\u002Fcode> and \u003Ccode>::marker\u003C\u002Fcode> with strings, \u003Ccode>attr()\u003C\u002Fcode>, \u003Ccode>counter()\u003C\u002Fcode>,\n\u003Ccode>counters()\u003C\u002Fcode>, \u003Ccode>open-quote\u003C\u002Fcode>\u002F\u003Ccode>close-quote\u003C\u002Fcode> (with \u003Ccode>quotes\u003C\u002Fcode>, and \u003Ccode>auto\u003C\u002Fcode> quotes by language), images\n(\u003Ccode>url()\u003C\u002Fcode>, gradients) and alternative text after \u003Ccode>\u002F\u003C\u002Fcode>. In print, \u003Ccode>content\u003C\u002Fcode> also takes the functions of\nCSS Generated Content for Paged Media: \u003Ccode>string()\u003C\u002Fcode>, \u003Ccode>element()\u003C\u002Fcode>, \u003Ccode>target-counter()\u003C\u002Fcode>,\n\u003Ccode>target-counters()\u003C\u002Fcode>, \u003Ccode>target-text()\u003C\u002Fcode> and \u003Ccode>leader()\u003C\u002Fcode> (see \u003Ca href=\"\u002Fdocs\u002Fpaged-media\">Paged media\u003C\u002Fa>). \u003Ccode>&lt;q&gt;\u003C\u002Fcode>\nshows quotation marks of the language around it.\u003C\u002Fp>\n\u003Ch2 id=\"form-controls\">Form controls\u003Ca class=\"f-doc-anchor\" href=\"#form-controls\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Form controls print as Chrome prints them: text, password, number, email, date and time fields,\ncheckboxes and radio buttons (with \u003Ccode>accent-color\u003C\u002Fcode>), buttons, \u003Ccode>&lt;select&gt;\u003C\u002Fcode> and list boxes,\n\u003Ccode>&lt;textarea&gt;\u003C\u002Fcode>, \u003Ccode>&lt;progress&gt;\u003C\u002Fcode>, \u003Ccode>&lt;meter&gt;\u003C\u002Fcode>, range sliders, color and file inputs, \u003Ccode>&lt;fieldset&gt;\u003C\u002Fcode> with\n\u003Ccode>&lt;legend&gt;\u003C\u002Fcode>, \u003Ccode>&lt;details&gt;\u003C\u002Fcode> and \u003Ccode>&lt;summary&gt;\u003C\u002Fcode>, \u003Ccode>&lt;dialog&gt;\u003C\u002Fcode>. \u003Ccode>appearance: none\u003C\u002Fcode> or author borders and\nbackgrounds give the CSS look instead of the native one, as in Chrome. \u003Ccode>field-sizing: content\u003C\u002Fcode>\nworks.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Differs from Chrome:\u003C\u002Fstrong> the texts controls show of their own (the labels of submit and reset\nbuttons, &quot;Choose File&quot;, date placeholders such as \u003Ccode>mm\u002Fdd\u002Fyyyy\u003C\u002Fcode>, the decimal separator) are written\nin the language of the control's \u003Ccode>lang\u003C\u002Fcode>, else the engine's \u003Ccode>locale\u003C\u002Fcode>, else American English. Chrome\nwrites them in the language of its user interface. See \u003Ca href=\"\u002Fdocs\u002Ffonts#the-language-of-form-controls\">Fonts\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"media-queries-and-feature-queries\">Media queries and feature queries\u003Ca class=\"f-doc-anchor\" href=\"#media-queries-and-feature-queries\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Media queries are evaluated for print:\u003C\u002Fp>\n\u003Ctable class=\"f-doc-table f-stack-table\">\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Feature\u003C\u002Fth>\n\u003Cth>Value in Fagus\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>media type\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>print\u003C\u002Fcode> (\u003Ccode>screen\u003C\u002Fcode> rules do not apply)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>width\u003C\u002Fcode>, \u003Ccode>height\u003C\u002Fcode>, \u003Ccode>aspect-ratio\u003C\u002Fcode>, \u003Ccode>orientation\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">the page area of the first page\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>resolution\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">300 dpi (96 dpi while choosing \u003Ccode>&lt;picture&gt;\u003C\u002Fcode> sources, as Chrome chooses them on screen)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>color\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">8; \u003Ccode>monochrome\u003C\u002Fcode>, \u003Ccode>color-index\u003C\u002Fcode> and \u003Ccode>grid\u003C\u002Fcode> are 0\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>color-gamut\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>srgb\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>dynamic-range\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>standard\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>overflow-block\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>paged\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>prefers-color-scheme\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>light\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>prefers-reduced-motion\u003C\u002Fcode>, \u003Ccode>prefers-contrast\u003C\u002Fcode>, \u003Ccode>prefers-reduced-transparency\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>no-preference\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>hover\u003C\u002Fcode>, \u003Ccode>any-hover\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>hover\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>pointer\u003C\u002Fcode>, \u003Ccode>any-pointer\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>fine\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>scripting\u003C\u002Fcode>, \u003Ccode>update\u003C\u002Fcode>, \u003Ccode>overflow-inline\u003C\u002Fcode>, \u003Ccode>forced-colors\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>none\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>display-mode\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd data-label=\"Value in Fagus\">\u003Ccode>browser\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>A Tailwind document with \u003Ccode>print:\u003C\u002Fcode> variants or a stylesheet with \u003Ccode>@media print { … }\u003C\u002Fcode> therefore gets\nits print styles.\u003C\u002Fp>\n\u003Cp>\u003Ccode>@supports\u003C\u002Fcode> knows the properties and values Fagus parses (also its own, such as\n\u003Ccode>-fagus-repeat\u003C\u002Fcode>), and answers \u003Ccode>selector()\u003C\u002Fcode>, \u003Ccode>font-tech()\u003C\u002Fcode>, \u003Ccode>font-format()\u003C\u002Fcode> and \u003Ccode>at-rule()\u003C\u002Fcode> as\nChrome does.\u003C\u002Fp>\n\u003Ch2 id=\"animations-and-transitions\">Animations and transitions\u003Ca class=\"f-doc-anchor\" href=\"#animations-and-transitions\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Scripts do not run, so nothing moves. CSS animations print at time zero as in Chrome: a fade-in\nprints transparent, a slide-in where it starts, a negative \u003Ccode>animation-delay\u003C\u002Fcode> that far into the\nanimation, with fill modes, direction and easing. Transitions have no effect.\u003C\u002Fp>\n\u003Cp>If a page uses animations to reveal content, turn them off for print:\u003C\u002Fp>\n\u003Cdiv class=\"f-doc-code\">\u003Cdiv class=\"f-doc-code-bar\">\u003Cspan>css\u003C\u002Fspan>\u003Cbutton type=\"button\" class=\"f-doc-copy\" data-copy aria-label=\"Copy code\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fsvg>\u003Cspan>Copy\u003C\u002Fspan>\u003C\u002Fbutton>\u003C\u002Fdiv>\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">@media\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> print\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:4ch;text-indent:-4ch\">\u003Cspan style=\"color:#7EE787\">  *\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> { \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">animation\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">: \u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">none\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> !important\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">; }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Ch2 id=\"not-supported\">Not supported\u003Ca class=\"f-doc-anchor\" href=\"#not-supported\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>A short list of what Fagus does not do. Most of it is also absent in Chrome's print.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Scripts:\u003C\u002Fstrong> \u003Ccode>&lt;script&gt;\u003C\u002Fcode> does not run, in the document, in SVG or in frames. \u003Ccode>&lt;noscript&gt;\u003C\u002Fcode> content\nis shown. Content that JavaScript would build (charts, client-side rendering) must be rendered on\nthe server first, for example as inline SVG.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Network:\u003C\u002Fstrong> nothing is loaded from \u003Ccode>http:\u003C\u002Fcode> or \u003Ccode>https:\u003C\u002Fcode> URLs; hand resources over instead (see\n\u003Ca href=\"\u002Fdocs\u002Fresources\">Resources\u003C\u002Fa>).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Interaction:\u003C\u002Fstrong> \u003Ccode>:hover\u003C\u002Fcode>, \u003Ccode>:focus\u003C\u002Fcode>, \u003Ccode>:active\u003C\u002Fcode>, \u003Ccode>:visited\u003C\u002Fcode> never match; transitions do nothing;\nanimations print their state at time zero.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Footnotes:\u003C\u002Fstrong> \u003Ccode>float: footnote\u003C\u002Fcode>, \u003Ccode>@footnote\u003C\u002Fcode>, \u003Ccode>footnote-display\u003C\u002Fcode>, \u003Ccode>footnote-policy\u003C\u002Fcode> and\n\u003Ccode>float-reference\u003C\u002Fcode> (see \u003Ca href=\"\u002Fdocs\u002Fpaged-media#footnotes\">Paged media\u003C\u002Fa>).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Pages:\u003C\u002Fstrong> \u003Ccode>@page :nth()\u003C\u002Fcode> (see \u003Ca href=\"\u002Fdocs\u002Fpaged-media\">Paged media\u003C\u002Fa>).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Layout:\u003C\u002Fstrong> \u003Ccode>display: grid-lanes\u003C\u002Fcode> (masonry), \u003Ccode>display: run-in\u003C\u002Fcode>, unprefixed \u003Ccode>line-clamp\u003C\u002Fcode>,\n\u003Ccode>shape-inside\u003C\u002Fcode>, \u003Ccode>block-step\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Text:\u003C\u002Fstrong> \u003Ccode>text-align: justify-all\u003C\u002Fcode>, \u003Ccode>-webkit-text-stroke\u003C\u002Fcode>, \u003Ccode>paint-order\u003C\u002Fcode> for HTML text,\n\u003Ccode>text-spacing\u003C\u002Fcode>, \u003Ccode>ruby-overhang\u003C\u002Fcode>, \u003Ccode>hanging-punctuation\u003C\u002Fcode>, \u003Ccode>@font-feature-values\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Effects:\u003C\u002Fstrong> \u003Ccode>backdrop-filter\u003C\u002Fcode> (no filtering of the backdrop), \u003Ccode>cross-fade()\u003C\u002Fcode>, \u003Ccode>element()\u003C\u002Fcode> as an\nimage.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Images:\u003C\u002Fstrong> AVIF, JPEG XL, BMP, TIFF and ICO.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>At-rules:\u003C\u002Fstrong> \u003Ccode>@function\u003C\u002Fcode>, \u003Ccode>@starting-style\u003C\u002Fcode> and \u003Ccode>@view-transition\u003C\u002Fcode> have no effect.\u003C\u002Fli>\n\u003C\u002Ful>\n",[85,89,92,96,99,102,105,108,111,114,117,120,123,126,129,132,135,138,141,144,147,150,153,156,159,162,165,168,171,172,175,178,181,184,187],{"id":86,"text":87,"level":88},"find-out-what-was-ignored","Find out what was ignored",2,{"id":90,"text":91,"level":88},"stylesheets","Stylesheets",{"id":93,"text":94,"level":95},"html-and-its-presentational-attributes","HTML and its presentational attributes",3,{"id":97,"text":98,"level":88},"selectors-and-the-cascade","Selectors and the cascade",{"id":100,"text":101,"level":88},"values-and-units","Values and units",{"id":103,"text":104,"level":88},"colors","Colors",{"id":106,"text":107,"level":88},"the-box-model","The box model",{"id":109,"text":110,"level":88},"display-and-layout","Display and layout",{"id":112,"text":113,"level":95},"block-and-inline","Block and inline",{"id":115,"text":116,"level":95},"floats","Floats",{"id":118,"text":119,"level":95},"flexbox","Flexbox",{"id":121,"text":122,"level":95},"grid","Grid",{"id":124,"text":125,"level":95},"multi-column-layout","Multi-column layout",{"id":127,"text":128,"level":95},"tables","Tables",{"id":130,"text":131,"level":95},"positioning","Positioning",{"id":133,"text":134,"level":95},"overflow-and-containment","Overflow and containment",{"id":136,"text":137,"level":95},"container-queries","Container queries",{"id":139,"text":140,"level":88},"backgrounds-borders-and-shadows","Backgrounds, borders and shadows",{"id":142,"text":143,"level":88},"effects","Effects",{"id":145,"text":146,"level":88},"images-and-replaced-content","Images and replaced content",{"id":148,"text":149,"level":88},"text","Text",{"id":151,"text":152,"level":95},"white-space-and-line-breaking","White space and line breaking",{"id":154,"text":155,"level":95},"hyphenation","Hyphenation",{"id":157,"text":158,"level":95},"alignment-and-spacing","Alignment and spacing",{"id":160,"text":161,"level":95},"decorations-and-emphasis","Decorations and emphasis",{"id":163,"text":164,"level":95},"writing-modes-and-bidirectional-text","Writing modes and bidirectional text",{"id":166,"text":167,"level":95},"east-asian-text-and-ruby","East Asian text and ruby",{"id":169,"text":170,"level":95},"scripts","Scripts",{"id":47,"text":48,"level":88},{"id":173,"text":174,"level":88},"lists-and-counters","Lists and counters",{"id":176,"text":177,"level":88},"generated-content","Generated content",{"id":179,"text":180,"level":88},"form-controls","Form controls",{"id":182,"text":183,"level":88},"media-queries-and-feature-queries","Media queries and feature queries",{"id":185,"text":186,"level":88},"animations-and-transitions","Animations and transitions",{"id":188,"text":189,"level":88},"not-supported","Not supported","https:\u002F\u002Fgithub.com\u002Fnforst\u002Ffagus\u002Fedit\u002Fmain\u002Fdocs\u002Fcss.md","https:\u002F\u002Fgithub.com\u002Fnforst\u002Ffagus\u002Fblob\u002Fv0.1.0\u002Fdocs\u002Fcss.md","\u002Fdocs\u002Fcss.md",{"slug":37,"title":38},{"slug":44,"title":45}]