diff --git a/speculation-rules.bs b/speculation-rules.bs index 983666f..e6ee542 100644 --- a/speculation-rules.bs +++ b/speculation-rules.bs @@ -545,6 +545,9 @@ A prerender candidate is a [=struct=] with the following [=struct/ite
This corresponds to the elements which match '':any-link'' [=pseudo-class=], or which appear in the {{Document/links}} collection.
+ 1. If |descendant| is not [=being rendered=] or is part of [=skipped contents=], [=iteration/continue=]. + +
Such links, though present in the document, aren't available for the user to interact with and are unlikely to be good candidates. In addition, they may not have their style or layout computed, which might make CSS selector matching less efficient in user agents which skip some or all of that work for these elements.
1. Let |url| be |descendant|'s [=HTMLHyperlinkElementUtils/url=]. 1. If |url| is null, or its [=url/scheme=] is not an [=HTTP(S) scheme=], [=iteration/continue=]. 1. If |predicate| [=document rule predicate/matches=] |descendant|, then [=list/append=] |descendant| to |links|.