Skip to content

Commit

Permalink
fix overflow_y_is_visible()
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Nov 6, 2017
1 parent 0f5325d commit ea3d897
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
5 changes: 3 additions & 2 deletions components/script/dom/element.rs
Expand Up @@ -109,7 +109,8 @@ use style::dom_apis;
use style::element_state::ElementState;
use style::invalidation::element::restyle_hints::RestyleHint;
use style::properties::{Importance, PropertyDeclaration, PropertyDeclarationBlock, parse_style_attribute};
use style::properties::longhands::{self, background_image, border_spacing, font_family, font_size, overflow_x};
use style::properties::longhands::{self, background_image, border_spacing, font_family, font_size};
use style::properties::longhands::{overflow_x, overflow_y};
use style::rule_tree::CascadeLevel;
use style::selector_parser::{NonTSPseudoClass, PseudoElement, RestyleDamage, SelectorImpl, SelectorParser};
use style::selector_parser::extended_filtering;
Expand Down Expand Up @@ -373,7 +374,7 @@ impl Element {
fn overflow_y_is_visible(&self) -> bool {
let window = window_from_node(self);
let overflow_pair = window.overflow_query(self.upcast::<Node>().to_trusted_node_address());
overflow_pair.y != overflow_x::computed_value::T::visible
overflow_pair.y == overflow_y::computed_value::T::visible
}
}

Expand Down

This file was deleted.

This file was deleted.

Expand Up @@ -5,15 +5,6 @@
[scrollWidth/scrollHeight on the root element in quirks mode]
expected: FAIL

[scroll() on the HTML body element in quirks mode]
expected: FAIL

[scrollBy() on the HTML body element in quirks mode]
expected: FAIL

[scrollLeft/scrollTop on the HTML body element in quirks mode]
expected: FAIL

[scrollWidth/scrollHeight on the HTML body element in quirks mode]
expected: FAIL

Expand Down

0 comments on commit ea3d897

Please sign in to comment.