rust/src/test
Matthias Krüger 441669c382
Rollup merge of #105442 - notriddle:notriddle/docblock-table-css, r=GuillaumeGomez
rustdoc: clean up docblock table CSS

# Preview

http://notriddle.com/notriddle-rustdoc-demos/table-2/test_dingus/fn.test.html

# Before

![image](https://user-images.githubusercontent.com/1593513/206364287-1b80eaaf-2e0e-4138-8b56-4aa8ff39abac.png)

# After

![image](https://user-images.githubusercontent.com/1593513/206364209-d287d165-31be-4de1-9b43-05b35ce2a86b.png)

# Details

* The rule `display: block` had no noticeable effect. Technically, because markdown tables have a tbody and thead, they get wrapped in an [anonymous table box] in the CSS tree, nested within the `<table>` element's block layout box.

  This rule was added in #87230 to make the table side-scrolling, but this same issue was doubly fixed in #88742 by wrapping it in an explicit `<div>` tag. Since accessibility advocates recommend the wrapper div over marking the table as `display: block`, we'll stick with that.

  https://adrianroselli.com/2020/11/under-engineered-responsive-tables.html

* The rule `width: calc(100% - 2px)` had no visible effect, because the anonymous table box was not affected.

* The style is tweaked to basically be the same style GitHub uses. In particular, it adds zebra stripes, and removes dotted borders.

  https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Markdown.20table.20styling

[anonymous table box]: https://www.w3.org/TR/CSS2/tables.html#anonymous-boxes
2022-12-09 07:25:46 +01:00
..
assembly Rollup merge of #105033 - durin42:llvm-16-dont-tail-call-me-bro, r=tmandry 2022-12-02 21:22:47 +01:00
auxiliary
codegen Auto merge of #104535 - mikebenfield:discr-fix, r=pnkfelix 2022-12-04 20:05:32 +00:00
codegen-units Statics used in reachable function's inline asm are reachable 2022-11-28 18:28:05 +01:00
debuginfo Fix pretty-std test 2022-11-27 23:15:55 +01:00
incremental Add empty ConstKind::Abstract 2022-11-25 09:28:43 +00:00
mir-opt Rollup merge of #105317 - RalfJung:retag-rework, r=oli-obk 2022-12-08 12:57:30 +01:00
pretty Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726 2022-10-24 19:32:25 +09:00
run-make Ignore errors when including clear_expected_if_blessed 2022-12-09 00:00:52 +01:00
run-make-fulldeps Use Symbol for the crate name instead of String/str 2022-12-07 20:30:02 +00:00
run-pass-valgrind Bless more tests 2022-11-05 18:05:45 +00:00
rustdoc Update rustdoc test to check its error output 2022-12-08 14:08:58 +01:00
rustdoc-gui Rollup merge of #105442 - notriddle:notriddle/docblock-table-css, r=GuillaumeGomez 2022-12-09 07:25:46 +01:00
rustdoc-js Add regression test for reexports in search results 2022-10-30 13:58:00 +01:00
rustdoc-js-std Update asrawfd.js. 2022-08-29 08:31:42 -07:00
rustdoc-json Add test for #105022 2022-12-02 17:05:37 +00:00
rustdoc-ui Rollup merge of #105427 - GuillaumeGomez:dont-silently-ignore-rustdoc-errors, r=notriddle 2022-12-09 07:25:45 +01:00
ui Rollup merge of #105408 - cuviper:help-rpitirpit, r=compiler-errors 2022-12-08 12:57:31 +01:00
ui-fulldeps Rollup merge of #104199 - SarthakSingh31:issue-97417-1, r=cjgillot 2022-12-03 17:37:41 +01:00
COMPILER_TESTS.md