mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
servo: Merge #17804 - Add a comment about visited style inheritance (from emilio:visited-comment); r=jryans
Source-Repo: https://github.com/servo/servo Source-Revision: 3c89486de233d7fe8c81050399b5fc15cf6941aa --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 8ba6e0209d48c16a147bffb4176c129c86f00748
This commit is contained in:
parent
a7e21703f6
commit
efd2383211
@ -474,6 +474,9 @@ where
|
||||
cascade_flags.insert(SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP);
|
||||
}
|
||||
if cascade_visited.visited_dependent_only() {
|
||||
// If this element is a link, we want its visited style to inherit
|
||||
// from the regular style of its parent, because only the
|
||||
// visitedness of the relevant link should influence style.
|
||||
if pseudo.is_some() || !self.element.is_link() {
|
||||
parent_style = parent_style.map(|s| {
|
||||
s.get_visited_style().unwrap_or(s)
|
||||
|
Loading…
Reference in New Issue
Block a user