mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
rustdoc: remove incorrect CSS selector .impl-items table td
Fixes #100994 This selector was added inc7312fbae4. The bug can be seen at <https://doc.rust-lang.org/1.27.0/alloc/slice/trait.SliceIndex.html#foreign-impls>. This rule was added to help with a `<table>` that was used for displaying the function signature [src] lockup. That lockup was changed in34bd2b845bto use flexbox instead, leaving this selector unused (at least, for its original purpose).
This commit is contained in:
@@ -777,7 +777,7 @@ pre, .rustdoc.source .example-wrap {
|
||||
.content .docblock >.impl-items table td {
|
||||
padding: 0;
|
||||
}
|
||||
.content .docblock > .impl-items .table-display, .impl-items table td {
|
||||
.content .docblock > .impl-items .table-display {
|
||||
border: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
goto: file://|DOC_PATH|/test_docs/doc_block_table/struct.DocBlockTable.html#method.func
|
||||
|
||||
compare-elements-css: (".impl-items .docblock table th", ".top-doc .docblock table th", ["border"])
|
||||
compare-elements-css: (".impl-items .docblock table td", ".top-doc .docblock table td", ["border"])
|
||||
@@ -293,3 +293,29 @@ pub mod details {
|
||||
/// </details>
|
||||
pub struct Details;
|
||||
}
|
||||
|
||||
pub mod doc_block_table {
|
||||
|
||||
pub trait DocBlockTableTrait {
|
||||
fn func();
|
||||
}
|
||||
|
||||
/// Struct doc.
|
||||
///
|
||||
/// | header1 | header2 |
|
||||
/// |--------------------------|--------------------------|
|
||||
/// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum |
|
||||
pub struct DocBlockTable {}
|
||||
|
||||
impl DocBlockTableTrait for DocBlockTable {
|
||||
/// Trait impl func doc for struct.
|
||||
///
|
||||
/// | header1 | header2 |
|
||||
/// |--------------------------|--------------------------|
|
||||
/// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum |
|
||||
fn func() {
|
||||
println!();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user