aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2015-08-07 18:10:48 -0700
committerPatrick Walton <pcwalton@mimiga.net>2015-08-10 21:27:04 -0700
commitdf4acbac0424514ecbcdf0212e44ab4ae39a7387 (patch)
tree2a907c4a5b83996da89fbe772f172df44eabefcf /components/layout/inline.rs
parentfc13dd11698524b2b332ad4579fb377a8324248f (diff)
downloadservo-df4acbac0424514ecbcdf0212e44ab4ae39a7387.tar.gz
servo-df4acbac0424514ecbcdf0212e44ab4ae39a7387.zip
layout: Implement basic `overflow: scroll` functionality.
Known issues: * Display list optimization can sometimes optimize out elements that should be shown. This affects the Enyo demo. * The `overflow: scroll` container doesn't clip the inner layer properly when borders, border radius, etc. are present. * `overflow-x: scroll` and `overflow-y: scroll` don't work individually; elements are scrolled all at once. * Scrolling only works on absolutely-positioned elements.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r--components/layout/inline.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs
index b293478656e..359660e05ed 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -1627,7 +1627,8 @@ impl Flow for InlineFlow {
.relative_containing_block_mode,
CoordinateSystem::Parent);
let clip = fragment.clipping_region_for_children(&self.base.clip,
- &stacking_relative_border_box);
+ &stacking_relative_border_box,
+ false);
match fragment.specific {
SpecificFragmentInfo::InlineBlock(ref mut info) => {
flow::mut_base(&mut *info.flow_ref).clip = clip;