Default.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. /* Default user-agent stylesheet for LibWeb
  2. * Note: This stylesheet starts with a bunch of ad-hoc custom rules.
  3. * After that, rules from the HTML spec follow.
  4. */
  5. html {
  6. font-family: sans-serif;
  7. color: -libweb-palette-base-text;
  8. }
  9. body {
  10. margin: 8px;
  11. }
  12. center {
  13. text-align: -libweb-center;
  14. }
  15. blink {
  16. display: inline;
  17. }
  18. /* FIXME: This doesn't seem right. */
  19. label {
  20. display: inline-block;
  21. }
  22. /* FIXME: This is a temporary hack until we can render a native-looking frame for these. */
  23. input, textarea {
  24. border: 1px solid -libweb-palette-threed-shadow1;
  25. min-width: 80px;
  26. min-height: 16px;
  27. width: 120px;
  28. cursor: text;
  29. overflow: hidden;
  30. }
  31. textarea {
  32. padding: 2px;
  33. display: inline-block;
  34. overflow: scroll;
  35. }
  36. input[type=submit], input[type=button], input[type=reset], input[type=checkbox], input[type=radio] {
  37. border: none;
  38. min-width: unset;
  39. min-height: unset;
  40. width: unset;
  41. cursor: unset;
  42. }
  43. input::placeholder {
  44. color: rgb(117, 117, 117);
  45. }
  46. button, input[type=submit], input[type=button], input[type=reset] {
  47. padding: 1px 4px;
  48. background-color: -libweb-palette-button;
  49. border: 1px solid -libweb-palette-threed-shadow1;
  50. color: -libweb-palette-button-text;
  51. }
  52. button:hover, input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover {
  53. background-color: -libweb-palette-hover-highlight;
  54. }
  55. option {
  56. display: none;
  57. }
  58. /* 15.3.1 Hidden elements
  59. * https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements
  60. */
  61. area, base, basefont, datalist, head, link, meta, noembed,
  62. noframes, param, rp, script, style, template, title {
  63. display: none;
  64. }
  65. [hidden]:not([hidden=until-found i]) {
  66. display: none;
  67. }
  68. [hidden=until-found i]:not(embed) {
  69. content-visibility: hidden;
  70. }
  71. embed[hidden] {
  72. display: inline;
  73. height: 0;
  74. width: 0;
  75. }
  76. input[type=hidden i] {
  77. display: none !important;
  78. }
  79. @media (scripting) {
  80. noscript {
  81. display: none !important;
  82. }
  83. }
  84. /* 15.3.2 The page
  85. * https://html.spec.whatwg.org/multipage/rendering.html#the-page
  86. */
  87. html, body {
  88. display: block;
  89. }
  90. /* 15.3.3 Flow content
  91. * https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
  92. */
  93. address, blockquote, center, dialog, div, figure, figcaption, footer, form,
  94. header, hr, legend, listing, main, p, plaintext, pre, xmp {
  95. display: block;
  96. }
  97. blockquote, figure, listing, p, plaintext, pre, xmp {
  98. margin-top: 1em;
  99. margin-bottom: 1em;
  100. }
  101. blockquote, figure {
  102. margin-left: 40px;
  103. margin-right: 40px;
  104. }
  105. address {
  106. font-style: italic;
  107. }
  108. listing, plaintext, pre, xmp {
  109. font-family: monospace;
  110. white-space: pre;
  111. }
  112. dialog:not([open]) {
  113. display: none;
  114. }
  115. dialog {
  116. position: absolute;
  117. inset-left: 0;
  118. inset-right: 0;
  119. width: fit-content;
  120. height: fit-content;
  121. margin: auto;
  122. border: solid;
  123. padding: 1em;
  124. background-color: Canvas;
  125. color: CanvasText;
  126. }
  127. dialog::backdrop {
  128. background: rgba(0, 0, 0, 0.1);
  129. }
  130. slot {
  131. display: contents;
  132. }
  133. /* 15.3.4 Phrasing content
  134. * https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3
  135. */
  136. cite, dfn, em, i, var {
  137. font-style: italic;
  138. }
  139. b, strong {
  140. font-weight: bolder;
  141. }
  142. code, kbd, samp, tt {
  143. font-family: monospace;
  144. }
  145. big {
  146. font-size: larger;
  147. }
  148. small {
  149. font-size: smaller;
  150. }
  151. sub {
  152. vertical-align: sub;
  153. }
  154. sup {
  155. vertical-align: super;
  156. }
  157. sub, sup {
  158. line-height: normal;
  159. font-size: smaller;
  160. }
  161. ruby {
  162. display: ruby;
  163. }
  164. rt {
  165. display: ruby-text;
  166. }
  167. :link {
  168. color: -libweb-link;
  169. }
  170. :visited {
  171. color: -libweb-palette-visited-link;
  172. }
  173. :link:active, :visited:active {
  174. color: -libweb-palette-active-link;
  175. }
  176. :link, :visited {
  177. text-decoration: underline;
  178. cursor: pointer;
  179. }
  180. :focus-visible {
  181. outline: auto;
  182. }
  183. mark {
  184. background: yellow;
  185. color: black;
  186. }
  187. /* this color is just a suggestion and can be changed based on implementation feedback */
  188. abbr[title], acronym[title] {
  189. text-decoration: dotted underline;
  190. }
  191. ins, u {
  192. text-decoration: underline;
  193. }
  194. del, s, strike {
  195. text-decoration: line-through;
  196. }
  197. q::before {
  198. content: open-quote;
  199. }
  200. q::after {
  201. content: close-quote;
  202. }
  203. br {
  204. display-outside: newline;
  205. }
  206. /* this also has bidi implications */
  207. nobr {
  208. white-space: nowrap;
  209. }
  210. wbr {
  211. display-outside: break-opportunity;
  212. }
  213. /* this also has bidi implications */
  214. nobr wbr {
  215. white-space: normal;
  216. }
  217. /* 15.3.5 Bidirectional text
  218. * https://html.spec.whatwg.org/multipage/rendering.html#bidi-rendering
  219. */
  220. [dir]:dir(ltr), bdi:dir(ltr), input[type=tel i]:dir(ltr) {
  221. direction: ltr;
  222. }
  223. [dir]:dir(rtl), bdi:dir(rtl) {
  224. direction: rtl;
  225. }
  226. address, blockquote, center, div, figure, figcaption, footer, form, header, hr,
  227. legend, listing, main, p, plaintext, pre, summary, xmp, article, aside, h1, h2,
  228. h3, h4, h5, h6, hgroup, nav, section, table, caption, colgroup, col, thead,
  229. tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu, ol, ul, li, bdi, output,
  230. [dir=ltr i], [dir=rtl i], [dir=auto i] {
  231. unicode-bidi: isolate;
  232. }
  233. bdo, bdo[dir] {
  234. unicode-bidi: isolate-override;
  235. }
  236. input[dir=auto i]:is([type=search i], [type=tel i], [type=url i],
  237. [type=email i]), textarea[dir=auto i], pre[dir=auto i] {
  238. unicode-bidi: plaintext;
  239. }
  240. /* 15.3.6 Sections and headings
  241. * https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings
  242. */
  243. article, aside, h1, h2, h3, h4, h5, h6, hgroup, nav, section {
  244. display: block;
  245. }
  246. h1 {
  247. margin-top: 0.67em;
  248. margin-bottom: 0.67em;
  249. font-size: 2.00em;
  250. font-weight: bold;
  251. }
  252. h2 {
  253. margin-top: 0.83em;
  254. margin-bottom: 0.83em;
  255. font-size: 1.50em;
  256. font-weight: bold;
  257. }
  258. h3 {
  259. margin-top: 1.00em;
  260. margin-bottom: 1.00em;
  261. font-size: 1.17em;
  262. font-weight: bold;
  263. }
  264. h4 {
  265. margin-top: 1.33em;
  266. margin-bottom: 1.33em;
  267. font-size: 1.00em;
  268. font-weight: bold;
  269. }
  270. h5 {
  271. margin-top: 1.67em;
  272. margin-bottom: 1.67em;
  273. font-size: 0.83em;
  274. font-weight: bold;
  275. }
  276. h6 {
  277. margin-top: 2.33em;
  278. margin-bottom: 2.33em;
  279. font-size: 0.67em;
  280. font-weight: bold;
  281. }
  282. :is(article, aside, nav, section) h1 {
  283. margin-top: 0.83em;
  284. margin-bottom: 0.83em;
  285. font-size: 1.50em;
  286. }
  287. :is(article, aside, nav, section) :is(article, aside, nav, section) h1 {
  288. margin-top: 1.00em;
  289. margin-bottom: 1.00em;
  290. font-size: 1.17em;
  291. }
  292. :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) h1 {
  293. margin-top: 1.33em;
  294. margin-bottom: 1.33em;
  295. font-size: 1.00em;
  296. }
  297. :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) h1 {
  298. margin-top: 1.67em;
  299. margin-bottom: 1.67em;
  300. font-size: 0.83em;
  301. }
  302. :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) :is(article, aside, nav, section) h1 {
  303. margin-top: 2.33em;
  304. margin-bottom: 2.33em;
  305. font-size: 0.67em;
  306. }
  307. /* 15.3.7 Lists
  308. * https://html.spec.whatwg.org/multipage/rendering.html#lists
  309. */
  310. dir, dd, dl, dt, menu, ol, ul {
  311. display: block;
  312. }
  313. li {
  314. display: list-item;
  315. text-align: match-parent;
  316. }
  317. dir, dl, menu, ol, ul {
  318. margin-top: 1em;
  319. margin-bottom: 1em;
  320. }
  321. :is(dir, dl, menu, ol, ul) :is(dir, dl, menu, ol, ul) {
  322. margin-top: 0;
  323. margin-bottom: 0;
  324. }
  325. dd {
  326. margin-left: 40px;
  327. }
  328. dir, menu, ol, ul {
  329. padding-left: 40px;
  330. }
  331. ol, ul, menu {
  332. counter-reset: list-item;
  333. }
  334. ol {
  335. list-style-type: decimal;
  336. }
  337. dir, menu, ul {
  338. list-style-type: disc;
  339. }
  340. :is(dir, menu, ol, ul) :is(dir, menu, ul) {
  341. list-style-type: circle;
  342. }
  343. :is(dir, menu, ol, ul) :is(dir, menu, ol, ul) :is(dir, menu, ul) {
  344. list-style-type: square;
  345. }
  346. /* 15.3.8 Tables
  347. * https://html.spec.whatwg.org/multipage/rendering.html#tables-2
  348. */
  349. table {
  350. display: table;
  351. }
  352. caption {
  353. display: table-caption;
  354. }
  355. colgroup, colgroup[hidden] {
  356. display: table-column-group;
  357. }
  358. col, col[hidden] {
  359. display: table-column;
  360. }
  361. thead, thead[hidden] {
  362. display: table-header-group;
  363. }
  364. tbody, tbody[hidden] {
  365. display: table-row-group;
  366. }
  367. tfoot, tfoot[hidden] {
  368. display: table-footer-group;
  369. }
  370. tr, tr[hidden] {
  371. display: table-row;
  372. }
  373. td, th {
  374. display: table-cell;
  375. }
  376. colgroup[hidden], col[hidden], thead[hidden], tbody[hidden],
  377. tfoot[hidden], tr[hidden] {
  378. visibility: collapse;
  379. }
  380. table {
  381. box-sizing: border-box;
  382. border-spacing: 2px;
  383. border-collapse: separate;
  384. text-indent: initial;
  385. }
  386. td, th {
  387. padding: 1px;
  388. }
  389. th {
  390. font-weight: bold;
  391. }
  392. caption {
  393. text-align: center;
  394. }
  395. thead, tbody, tfoot, table > tr {
  396. vertical-align: middle;
  397. }
  398. tr, td, th {
  399. vertical-align: inherit;
  400. }
  401. thead, tbody, tfoot, tr {
  402. border-color: inherit;
  403. }
  404. table[rules=none i], table[rules=groups i], table[rules=rows i],
  405. table[rules=cols i], table[rules=all i], table[frame=void i],
  406. table[frame=above i], table[frame=below i], table[frame=hsides i],
  407. table[frame=lhs i], table[frame=rhs i], table[frame=vsides i],
  408. table[frame=box i], table[frame=border i],
  409. table[rules=none i] > tr > td, table[rules=none i] > tr > th,
  410. table[rules=groups i] > tr > td, table[rules=groups i] > tr > th,
  411. table[rules=rows i] > tr > td, table[rules=rows i] > tr > th,
  412. table[rules=cols i] > tr > td, table[rules=cols i] > tr > th,
  413. table[rules=all i] > tr > td, table[rules=all i] > tr > th,
  414. table[rules=none i] > thead > tr > td, table[rules=none i] > thead > tr > th,
  415. table[rules=groups i] > thead > tr > td, table[rules=groups i] > thead > tr > th,
  416. table[rules=rows i] > thead > tr > td, table[rules=rows i] > thead > tr > th,
  417. table[rules=cols i] > thead > tr > td, table[rules=cols i] > thead > tr > th,
  418. table[rules=all i] > thead > tr > td, table[rules=all i] > thead > tr > th,
  419. table[rules=none i] > tbody > tr > td, table[rules=none i] > tbody > tr > th,
  420. table[rules=groups i] > tbody > tr > td, table[rules=groups i] > tbody > tr > th,
  421. table[rules=rows i] > tbody > tr > td, table[rules=rows i] > tbody > tr > th,
  422. table[rules=cols i] > tbody > tr > td, table[rules=cols i] > tbody > tr > th,
  423. table[rules=all i] > tbody > tr > td, table[rules=all i] > tbody > tr > th,
  424. table[rules=none i] > tfoot > tr > td, table[rules=none i] > tfoot > tr > th,
  425. table[rules=groups i] > tfoot > tr > td, table[rules=groups i] > tfoot > tr > th,
  426. table[rules=rows i] > tfoot > tr > td, table[rules=rows i] > tfoot > tr > th,
  427. table[rules=cols i] > tfoot > tr > td, table[rules=cols i] > tfoot > tr > th,
  428. table[rules=all i] > tfoot > tr > td, table[rules=all i] > tfoot > tr > th {
  429. border-color: black;
  430. }
  431. /* 15.3.10 Form controls
  432. * https://html.spec.whatwg.org/multipage/rendering.html#form-controls
  433. */
  434. input, select, button, textarea {
  435. letter-spacing: initial;
  436. word-spacing: initial;
  437. line-height: initial;
  438. text-transform: initial;
  439. text-indent: initial;
  440. text-shadow: initial;
  441. appearance: auto;
  442. }
  443. input, select, textarea {
  444. text-align: initial;
  445. }
  446. input:is([type=reset i], [type=button i], [type=submit i]), button {
  447. text-align: center;
  448. }
  449. input, button {
  450. display: inline-block;
  451. }
  452. input[type=hidden i], input[type=file i], input[type=image i] {
  453. appearance: none;
  454. }
  455. input:is([type=radio i], [type=checkbox i], [type=reset i], [type=button i],
  456. [type=submit i], [type=color i], [type=search i]), select, button {
  457. box-sizing: border-box;
  458. }
  459. textarea {
  460. white-space: pre-wrap;
  461. }
  462. /* 15.3.11 The hr element
  463. * https://html.spec.whatwg.org/multipage/rendering.html#the-hr-element-2
  464. */
  465. hr {
  466. color: gray;
  467. border-style: inset;
  468. border-width: 1px;
  469. margin: 0.5em auto;
  470. overflow: hidden;
  471. }
  472. /* 15.3.12 The fieldset and legend elements
  473. * https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements
  474. */
  475. fieldset {
  476. display: block;
  477. margin-left: 2px;
  478. margin-right: 2px;
  479. border: groove 2px ThreeDFace;
  480. padding: 0.35em 0.75em 0.625em;
  481. min-inline-size: min-content;
  482. }
  483. legend {
  484. padding-left: 2px;
  485. padding-right: 2px;
  486. }
  487. legend[align=left i] {
  488. justify-self: left;
  489. }
  490. legend[align=center i] {
  491. justify-self: center;
  492. }
  493. legend[align=right i] {
  494. justify-self: right;
  495. }
  496. /* 15.3.8 Embedded content
  497. * https://html.spec.whatwg.org/multipage/rendering.html#tables-2
  498. */
  499. table {
  500. display: table;
  501. }
  502. caption {
  503. display: table-caption;
  504. }
  505. colgroup, colgroup[hidden] {
  506. display: table-column-group;
  507. }
  508. col, col[hidden] {
  509. display: table-column;
  510. }
  511. thead, thead[hidden] {
  512. display: table-header-group;
  513. }
  514. tbody, tbody[hidden] {
  515. display: table-row-group;
  516. }
  517. tfoot, tfoot[hidden] {
  518. display: table-footer-group;
  519. }
  520. tr, tr[hidden] {
  521. display: table-row;
  522. }
  523. td, th {
  524. display: table-cell;
  525. }
  526. colgroup[hidden], col[hidden], thead[hidden], tbody[hidden],
  527. tfoot[hidden], tr[hidden] {
  528. visibility: collapse;
  529. }
  530. table {
  531. box-sizing: border-box;
  532. border-spacing: 2px;
  533. border-collapse: separate;
  534. text-indent: initial;
  535. }
  536. td, th {
  537. padding: 1px;
  538. }
  539. th {
  540. font-weight: bold;
  541. }
  542. caption {
  543. text-align: center;
  544. }
  545. thead, tbody, tfoot, table > tr {
  546. vertical-align: middle;
  547. }
  548. tr, td, th {
  549. vertical-align: inherit;
  550. }
  551. thead, tbody, tfoot, tr {
  552. border-color: inherit;
  553. }
  554. table[rules=none i], table[rules=groups i], table[rules=rows i],
  555. table[rules=cols i], table[rules=all i], table[frame=void i],
  556. table[frame=above i], table[frame=below i], table[frame=hsides i],
  557. table[frame=lhs i], table[frame=rhs i], table[frame=vsides i],
  558. table[frame=box i], table[frame=border i],
  559. table[rules=none i] > tr > td, table[rules=none i] > tr > th,
  560. table[rules=groups i] > tr > td, table[rules=groups i] > tr > th,
  561. table[rules=rows i] > tr > td, table[rules=rows i] > tr > th,
  562. table[rules=cols i] > tr > td, table[rules=cols i] > tr > th,
  563. table[rules=all i] > tr > td, table[rules=all i] > tr > th,
  564. table[rules=none i] > thead > tr > td, table[rules=none i] > thead > tr > th,
  565. table[rules=groups i] > thead > tr > td, table[rules=groups i] > thead > tr > th,
  566. table[rules=rows i] > thead > tr > td, table[rules=rows i] > thead > tr > th,
  567. table[rules=cols i] > thead > tr > td, table[rules=cols i] > thead > tr > th,
  568. table[rules=all i] > thead > tr > td, table[rules=all i] > thead > tr > th,
  569. table[rules=none i] > tbody > tr > td, table[rules=none i] > tbody > tr > th,
  570. table[rules=groups i] > tbody > tr > td, table[rules=groups i] > tbody > tr > th,
  571. table[rules=rows i] > tbody > tr > td, table[rules=rows i] > tbody > tr > th,
  572. table[rules=cols i] > tbody > tr > td, table[rules=cols i] > tbody > tr > th,
  573. table[rules=all i] > tbody > tr > td, table[rules=all i] > tbody > tr > th,
  574. table[rules=none i] > tfoot > tr > td, table[rules=none i] > tfoot > tr > th,
  575. table[rules=groups i] > tfoot > tr > td, table[rules=groups i] > tfoot > tr > th,
  576. table[rules=rows i] > tfoot > tr > td, table[rules=rows i] > tfoot > tr > th,
  577. table[rules=cols i] > tfoot > tr > td, table[rules=cols i] > tfoot > tr > th,
  578. table[rules=all i] > tfoot > tr > td, table[rules=all i] > tfoot > tr > th {
  579. border-color: black;
  580. }
  581. /* 15.4.1 Embedded content
  582. * https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules
  583. */
  584. iframe {
  585. border: 2px inset;
  586. }
  587. video {
  588. object-fit: contain;
  589. }
  590. /* 15.4.3 Attributes for embedded content and images
  591. * https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images
  592. */
  593. iframe[frameborder='0'], iframe[frameborder=no i] { border: none; }
  594. embed[align=left i], iframe[align=left i], img[align=left i],
  595. input[type=image i][align=left i], object[align=left i] {
  596. float: left;
  597. }
  598. embed[align=right i], iframe[align=right i], img[align=right i],
  599. input[type=image i][align=right i], object[align=right i] {
  600. float: right;
  601. }
  602. embed[align=top i], iframe[align=top i], img[align=top i],
  603. input[type=image i][align=top i], object[align=top i] {
  604. vertical-align: top;
  605. }
  606. embed[align=baseline i], iframe[align=baseline i], img[align=baseline i],
  607. input[type=image i][align=baseline i], object[align=baseline i] {
  608. vertical-align: baseline;
  609. }
  610. embed[align=texttop i], iframe[align=texttop i], img[align=texttop i],
  611. input[type=image i][align=texttop i], object[align=texttop i] {
  612. vertical-align: text-top;
  613. }
  614. embed[align=absmiddle i], iframe[align=absmiddle i], img[align=absmiddle i],
  615. input[type=image i][align=absmiddle i], object[align=absmiddle i],
  616. embed[align=abscenter i], iframe[align=abscenter i], img[align=abscenter i],
  617. input[type=image i][align=abscenter i], object[align=abscenter i] {
  618. vertical-align: middle;
  619. }
  620. embed[align=bottom i], iframe[align=bottom i], img[align=bottom i],
  621. input[type=image i][align=bottom i], object[align=bottom i] {
  622. vertical-align: bottom;
  623. }
  624. /* 15.5.4 The details and summary elements
  625. * https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements
  626. */
  627. summary {
  628. display: list-item;
  629. counter-increment: list-item 0;
  630. list-style: disclosure-closed inside;
  631. }
  632. details[open] > summary {
  633. list-style-type: disclosure-open;
  634. }
  635. /* 15.5.12 The marquee element
  636. * https://html.spec.whatwg.org/multipage/rendering.html#the-marquee-element-2
  637. */
  638. marquee {
  639. display: inline-block;
  640. text-align: initial;
  641. }
  642. /* 15.5.13 The meter element
  643. * https://html.spec.whatwg.org/multipage/rendering.html#the-meter-element-2
  644. */
  645. meter {
  646. appearance: auto;
  647. }
  648. /* 15.5.14 The progress element
  649. * https://html.spec.whatwg.org/multipage/rendering.html#the-progress-element-2
  650. */
  651. progress {
  652. appearance: auto;
  653. }
  654. /* https://www.w3.org/TR/mediaqueries-5/#descdef-media-inverted-colors
  655. */
  656. @media (inverted-colors) {
  657. img:not(picture>img),
  658. picture,
  659. video {
  660. filter: invert(100%);
  661. }
  662. }
  663. /* This is the same as default intrinsic size of a <progress> element */
  664. progress {
  665. width: 300px;
  666. height: 12px;
  667. }
  668. /* The default progress-value/bar CSS below is the same as Blink/WebKit.
  669. * Note: Setting any more than the backgrond-color may have unintended consequences, as sites don't expect to unset more than that.
  670. */
  671. progress::-webkit-progress-bar {
  672. width: inherit;
  673. height: inherit;
  674. background-color: grey;
  675. }
  676. progress::-webkit-progress-value {
  677. height: inherit;
  678. background-color: green;
  679. }