Correct a variety of documentation issues (#34786)

Fix some warnings in documentation as well as some faulty documentation
introduced in #34776.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2024-12-29 11:37:57 +01:00 committed by GitHub
parent 3aa9e00e4e
commit 93ae8d22fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 20 additions and 19 deletions

View file

@ -522,7 +522,7 @@ fn process_offset_parent_query_inner(
/// is eligible to be a parent element for offset* queries.
///
/// From <https://www.w3.org/TR/cssom-view-1/#dom-htmlelement-offsetparent>:
/// >
///
/// > Return the nearest ancestor element of the element for which at least one of the following is
/// > true and terminate this algorithm if such an ancestor is found:
/// > 1. The computed value of the position property is not static.

View file

@ -8,7 +8,7 @@ use style::properties::ComputedValues;
use super::convert;
/// A wrapper struct for anything that Deref's to a [`stylo::ComputedValues`], which
/// A wrapper struct for anything that Deref's to a [`ComputedValues`], which
/// implements Taffy's layout traits and can used with Taffy's layout algorithms.
pub struct TaffyStyloStyle<T: Deref<Target = ComputedValues>>(pub T);