-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
P3 - normalNew features, bugs with workarounds, bugs affecting very specific usage...New features, bugs with workarounds, bugs affecting very specific usage...crt:csslsrsChanges in the CSSlsrs crate.Changes in the CSSlsrs crate.enhancementNew feature aheadNew feature ahead
Description
format_css_selector_entry uses a placeholder for selectors :
/// Formats the CSS selector entry into a hover content string.
fn format_css_selector_entry(name: &str, specificity: Option<(u32, u32, u32)>) -> String {
let mut content = String::new();
// TODO: this is a placeholder, we should render an HTML preview of the selector
writeln!(content, "**{}**\n", escape_markdown(name)).unwrap();
// Add specificity if available
if let Some((ids, classes, elements)) = specificity {
writeln!(content,
"[Selector Specificity](https://developer.mozilla.org/docs/Web/CSS/Specificity): ({}, {}, {})\n",
ids, classes, elements
).unwrap();
}
content
}Metadata
Metadata
Assignees
Labels
P3 - normalNew features, bugs with workarounds, bugs affecting very specific usage...New features, bugs with workarounds, bugs affecting very specific usage...crt:csslsrsChanges in the CSSlsrs crate.Changes in the CSSlsrs crate.enhancementNew feature aheadNew feature ahead
