mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
style: Implement the body text color quirk in a more straight-forward way.
This avoids grabbing the document when values that inherit from the body, whatever that means, aren't under the body. In that case we'll get a semi-random value, but that's also mishandled by Gecko anyways (and probably Blink, though haven't tested), and doesn't really make much sense.
This commit is contained in:
parent
920585bd74
commit
bd314747da
8 changed files with 76 additions and 22 deletions
|
@ -547,6 +547,14 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
|||
};
|
||||
extended_filtering(&element_lang, &*value)
|
||||
}
|
||||
|
||||
fn is_html_document_body_element(&self) -> bool {
|
||||
// This is only used for the "tables inherit from body" quirk, which we
|
||||
// don't implement.
|
||||
//
|
||||
// FIXME(emilio): We should be able to give the right answer though!
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
impl<'le> PartialEq for ServoLayoutElement<'le> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue