Changeset 140993 in webkit


Ignore:
Timestamp:
Jan 28, 2013 12:43:33 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

getComputedStyle returns "left" instead of "none" for "float" on abspos elements
https://bugs.webkit.org/show_bug.cgi?id=105836

Patch by Uday Kiran <udaykiran@motorola.com> on 2013-01-28
Reviewed by Tony Chang.

If 'position' has the value absolute, page or fixed, and the value of float is
left or right, the box is absolutely positioned and the computed value of float is none.
http://www.w3.org/TR/css3-positioning/#dis-pos-flo
This matches behavior of Firefox 18, Opera 12 and IE9.

Source/WebCore:

Test: fast/css/position-absolute-float.html

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):

LayoutTests:

  • fast/css/position-absolute-float-expected.txt: Added.
  • fast/css/position-absolute-float.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r140991 r140993  
     12013-01-28  Uday Kiran  <udaykiran@motorola.com>
     2
     3        getComputedStyle returns "left" instead of "none" for "float" on abspos elements
     4        https://bugs.webkit.org/show_bug.cgi?id=105836
     5
     6        Reviewed by Tony Chang.
     7
     8        If 'position' has the value absolute, page or fixed, and the value of float is
     9        left or right, the box is absolutely positioned and the computed value of float is none.
     10        http://www.w3.org/TR/css3-positioning/#dis-pos-flo
     11        This matches behavior of Firefox 18, Opera 12 and IE9.
     12
     13        * fast/css/position-absolute-float-expected.txt: Added.
     14        * fast/css/position-absolute-float.html: Added.
     15
    1162013-01-28  Zan Dobersek  <zdobersek@igalia.com>
    217
  • trunk/Source/WebCore/ChangeLog

    r140992 r140993  
     12013-01-28  Uday Kiran  <udaykiran@motorola.com>
     2
     3        getComputedStyle returns "left" instead of "none" for "float" on abspos elements
     4        https://bugs.webkit.org/show_bug.cgi?id=105836
     5
     6        Reviewed by Tony Chang.
     7
     8        If 'position' has the value absolute, page or fixed, and the value of float is
     9        left or right, the box is absolutely positioned and the computed value of float is none.
     10        http://www.w3.org/TR/css3-positioning/#dis-pos-flo
     11        This matches behavior of Firefox 18, Opera 12 and IE9.
     12
     13        Test: fast/css/position-absolute-float.html
     14
     15        * css/CSSComputedStyleDeclaration.cpp:
     16        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
     17
    1182013-01-28  Tony Gentilcore  <tonyg@chromium.org>
    219
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp

    r140642 r140993  
    18611861            return cssValuePool().createValue(style->order(), CSSPrimitiveValue::CSS_NUMBER);
    18621862        case CSSPropertyFloat:
     1863            if (style->display() != NONE && style->hasOutOfFlowPosition())
     1864                return cssValuePool().createIdentifierValue(CSSValueNone);
    18631865            return cssValuePool().createValue(style->floating());
    18641866        case CSSPropertyFont: {
Note: See TracChangeset for help on using the changeset viewer.