diff --git a/src/components/main/layout/box.rs b/src/components/main/layout/box.rs index 145bb95b039..d1ed277a95b 100644 --- a/src/components/main/layout/box.rs +++ b/src/components/main/layout/box.rs @@ -27,7 +27,7 @@ use std::cast; use std::cell::Cell; use std::cmp::ApproxEq; use std::num::Zero; -use style::{ComputedValues, TElement, TNode}; +use style::{ComputedValues, TElement, TNode, cascade}; use style::computed_values::{LengthOrPercentage, overflow}; use style::computed_values::{border_style, clear, font_family, line_height}; use style::computed_values::{text_align, text_decoration, vertical_align, visibility}; @@ -228,8 +228,7 @@ impl Box { pub fn new(node: LayoutNode, specific: SpecificBoxInfo) -> Box { // Find the nearest ancestor element and take its style. (It should be either that node or // its immediate parent.) - // - // FIXME(pcwalton): This is incorrect for non-inherited properties on anonymous boxes. For + // CSS 2.1 ยง 9.2.1.1,9.2.2.1 This is for non-inherited properties on anonymous boxes // example: // //