| Differences between
and this patch
- Source/WebCore/ChangeLog +53 lines
Lines 1-3 Source/WebCore/ChangeLog_sec1
1
2012-06-14  Ryosuke Niwa  <rniwa@webkit.org>
2
3
        The initial value of text-align should be start instead of -webkit-auto
4
        https://bugs.webkit.org/show_bug.cgi?id=79914
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        Change the initial value of text-align CSS property from -webkit-auto to start as specified in
9
        http://www.w3.org/TR/css3-text/#text-align
10
11
        In editing, we have to coerce start and end to left and right for now because match-parent,
12
        which is the text-align value of li in UA stylesheet is going to result in the computed values of
13
        left as supposed to start by default, and this causes editing code not being able to remove
14
        text-align: left when computing typing styles and preserving styles.
15
16
        In the long term, we should detect this specific case and ignore match-parent but that seemed like
17
        too much work to be done in a single patch also because the test result improved because of this change.
18
19
        This behavior change is covered by existing regression tests.
20
21
        * css/CSSParser.cpp:
22
        (WebCore::CSSParser::parseValue):
23
        * css/CSSPrimitiveValueMappings.h:
24
        (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): No longer supports TAAUTO since it's identical to TASTART.
25
        (WebCore::CSSPrimitiveValue::operator ETextAlign): Ditto. Parse -webkit-auto as start.
26
        * css/StyleResolver.cpp:
27
        (WebCore::StyleResolver::collectMatchingRulesForList): Replace TAAUTO by TASTART.
28
        * editing/EditingStyle.cpp:
29
        (WebCore):
30
        (WebCore::textAlignResolvingStartAndEnd): Coerce start and end into left and right based on the directionality
31
        for editing. Otherwise, we end up adding lots of text-align: left due to li's UA style rule having match-parent
32
        as the text alignment and its descendent inherits this style. We need to handle it better in the future
33
        since start and left or end and right are semantically different.
34
        (WebCore::EditingStyle::prepareToApplyAt):
35
        (WebCore::getPropertiesNotIn):
36
        * rendering/RenderBlockLineLayout.cpp:
37
        (WebCore::RenderBlock::textAlignmentForLine): Justified text is aligned at start by default.
38
        (WebCore::RenderBlock::updateLogicalWidthForAlignment):
39
        (WebCore::RenderBlock::startAlignedOffsetForLine):
40
        * rendering/RenderBoxModelObject.cpp:
41
        (WebCore::RenderBoxModelObject::localCaretRectForEmptyElement):
42
        * rendering/RenderListBox.cpp:
43
        (WebCore::itemOffsetForAlignment):
44
        * rendering/RenderMarquee.cpp:
45
        (WebCore::RenderMarquee::updateMarqueeStyle):
46
        * rendering/RenderRubyText.cpp:
47
        (WebCore::RenderRubyText::textAlignmentForLine):
48
        (WebCore::RenderRubyText::adjustInlineDirectionLineBounds):
49
        * rendering/RenderText.cpp:
50
        (WebCore::RenderText::localCaretRect):
51
        * rendering/style/RenderStyle.h:
52
        * rendering/style/RenderStyleConstants.h:
53
1
2012-06-14  Maciej Stachowiak  <mjs@apple.com>
54
2012-06-14  Maciej Stachowiak  <mjs@apple.com>
2
55
3
        The whole world rebuilds when you touch any IDL file
56
        The whole world rebuilds when you touch any IDL file
- Source/WebCore/css/CSSParser.cpp -2 / +2 lines
Lines 1646-1653 bool CSSParser::parseValue(CSSPropertyID Source/WebCore/css/CSSParser.cpp_sec1
1646
    }
1646
    }
1647
1647
1648
    case CSSPropertyTextAlign:
1648
    case CSSPropertyTextAlign:
1649
        // left | right | center | justify | webkit_left | webkit_right | webkit_center | webkit_match_parent |
1649
        // left | right | center | justify | -webkit-left | -webkit-right | -webkit-center | -webkit-match-parent
1650
        // start | end | <string> | inherit
1650
        // | start | end | <string> | inherit | -webkit-auto (converted to start)
1651
        if ((id >= CSSValueWebkitAuto && id <= CSSValueWebkitMatchParent) || id == CSSValueStart || id == CSSValueEnd
1651
        if ((id >= CSSValueWebkitAuto && id <= CSSValueWebkitMatchParent) || id == CSSValueStart || id == CSSValueEnd
1652
            || value->unit == CSSPrimitiveValue::CSS_STRING)
1652
            || value->unit == CSSPrimitiveValue::CSS_STRING)
1653
            validPrimitive = true;
1653
            validPrimitive = true;
- Source/WebCore/css/CSSPrimitiveValueMappings.h -9 / +7 lines
Lines 2148-2156 template<> inline CSSPrimitiveValue::CSS Source/WebCore/css/CSSPrimitiveValueMappings.h_sec1
2148
{
2148
{
2149
    m_primitiveUnitType = CSS_IDENT;
2149
    m_primitiveUnitType = CSS_IDENT;
2150
    switch (e) {
2150
    switch (e) {
2151
    case TAAUTO:
2152
        m_value.ident = CSSValueWebkitAuto;
2153
        break;
2154
    case TASTART:
2151
    case TASTART:
2155
        m_value.ident = CSSValueStart;
2152
        m_value.ident = CSSValueStart;
2156
        break;
2153
        break;
Lines 2184-2195 template<> inline CSSPrimitiveValue::CSS Source/WebCore/css/CSSPrimitiveValueMappings.h_sec2
2184
template<> inline CSSPrimitiveValue::operator ETextAlign() const
2181
template<> inline CSSPrimitiveValue::operator ETextAlign() const
2185
{
2182
{
2186
    switch (m_value.ident) {
2183
    switch (m_value.ident) {
2187
        case CSSValueStart:
2184
    case CSSValueWebkitAuto: // Legacy -webkit-auto. Eqiuvalent to start.
2188
            return TASTART;
2185
    case CSSValueStart:
2189
        case CSSValueEnd:
2186
        return TASTART;
2190
            return TAEND;
2187
    case CSSValueEnd:
2191
        default:
2188
        return TAEND;
2192
            return static_cast<ETextAlign>(m_value.ident - CSSValueWebkitAuto);
2189
    default:
2190
        return static_cast<ETextAlign>(m_value.ident - CSSValueLeft);
2193
    }
2191
    }
2194
}
2192
}
2195
2193
- Source/WebCore/css/StyleResolver.cpp -3 / +4 lines
Lines 2047-2053 void StyleResolver::adjustRenderStyle(Re Source/WebCore/css/StyleResolver.cpp_sec1
2047
2047
2048
        // Tables never support the -webkit-* values for text-align and will reset back to the default.
2048
        // Tables never support the -webkit-* values for text-align and will reset back to the default.
2049
        if (e && e->hasTagName(tableTag) && (style->textAlign() == WEBKIT_LEFT || style->textAlign() == WEBKIT_CENTER || style->textAlign() == WEBKIT_RIGHT))
2049
        if (e && e->hasTagName(tableTag) && (style->textAlign() == WEBKIT_LEFT || style->textAlign() == WEBKIT_CENTER || style->textAlign() == WEBKIT_RIGHT))
2050
            style->setTextAlign(TAAUTO);
2050
            style->setTextAlign(TASTART);
2051
2051
2052
        // Frames and framesets never honor position:relative or position:absolute. This is necessary to
2052
        // Frames and framesets never honor position:relative or position:absolute. This is necessary to
2053
        // fix a crash where a site tries to position these objects. They also never honor display.
2053
        // fix a crash where a site tries to position these objects. They also never honor display.
Lines 2062-2069 void StyleResolver::adjustRenderStyle(Re Source/WebCore/css/StyleResolver.cpp_sec2
2062
            style->setFloating(NoFloat);
2062
            style->setFloating(NoFloat);
2063
        }
2063
        }
2064
2064
2065
        // Table headers with a text-align of auto will change the text-align to center.
2065
        // FIXME: We shouldn't be overriding start/-webkit-auto like this.
2066
        if (e && e->hasTagName(thTag) && style->textAlign() == TAAUTO)
2066
        // Table headers with a text-align of -webkit-auto will change the text-align to center.
2067
        if (e && e->hasTagName(thTag) && style->textAlign() == TASTART)
2067
            style->setTextAlign(CENTER);
2068
            style->setTextAlign(CENTER);
2068
2069
2069
        if (e && e->hasTagName(legendTag))
2070
        if (e && e->hasTagName(legendTag))
- Source/WebCore/editing/EditingStyle.cpp -32 / +33 lines
Lines 373-378 static inline RGBA32 rgbaBackgroundColor Source/WebCore/editing/EditingStyle.cpp_sec1
373
    return cssValueToRGBA(backgroundColorInEffect(node).get());
373
    return cssValueToRGBA(backgroundColorInEffect(node).get());
374
}
374
}
375
375
376
template<typename T>
377
static int textAlignResolvingStartAndEnd(T* style)
378
{
379
    int direction = getIdentifierValue(style, CSSPropertyDirection);
380
    switch (getIdentifierValue(style, CSSPropertyTextAlign)) {
381
    case CSSValueCenter:
382
    case CSSValueWebkitCenter:
383
        return CSSValueCenter;
384
    case CSSValueJustify:
385
        return CSSValueJustify;
386
    case CSSValueLeft:
387
    case CSSValueWebkitLeft:
388
        return CSSValueLeft;
389
    case CSSValueRight:
390
    case CSSValueWebkitRight:
391
        return CSSValueRight;
392
    case CSSValueStart:
393
        return direction != CSSValueRtl ? CSSValueLeft : CSSValueRight;
394
    case CSSValueEnd:
395
        return direction == CSSValueRtl ? CSSValueRight : CSSValueLeft;
396
    }
397
    return CSSValueInvalid;
398
}
399
376
void EditingStyle::init(Node* node, PropertiesToInclude propertiesToInclude)
400
void EditingStyle::init(Node* node, PropertiesToInclude propertiesToInclude)
377
{
401
{
378
    if (isTabSpanTextNode(node))
402
    if (isTabSpanTextNode(node))
Lines 874-880 void EditingStyle::prepareToApplyAt(cons Source/WebCore/editing/EditingStyle.cpp_sec2
874
    // ReplaceSelectionCommand::handleStyleSpans() requires that this function only removes the editing style.
898
    // ReplaceSelectionCommand::handleStyleSpans() requires that this function only removes the editing style.
875
    // If this function was modified in the future to delete all redundant properties, then add a boolean value to indicate
899
    // If this function was modified in the future to delete all redundant properties, then add a boolean value to indicate
876
    // which one of editingStyleAtPosition or computedStyle is called.
900
    // which one of editingStyleAtPosition or computedStyle is called.
877
    RefPtr<EditingStyle> style = EditingStyle::create(position, EditingPropertiesInEffect);
901
    RefPtr<EditingStyle> editingStyleAtPosition = EditingStyle::create(position, EditingPropertiesInEffect);
902
    StylePropertySet* styleAtPosition = editingStyleAtPosition->m_mutableStyle.get();
878
903
879
    RefPtr<CSSValue> unicodeBidi;
904
    RefPtr<CSSValue> unicodeBidi;
880
    RefPtr<CSSValue> direction;
905
    RefPtr<CSSValue> direction;
Lines 883-891 void EditingStyle::prepareToApplyAt(cons Source/WebCore/editing/EditingStyle.cpp_sec3
883
        direction = m_mutableStyle->getPropertyCSSValue(CSSPropertyDirection);
908
        direction = m_mutableStyle->getPropertyCSSValue(CSSPropertyDirection);
884
    }
909
    }
885
910
886
    m_mutableStyle->removeEquivalentProperties(style->m_mutableStyle.get());
911
    m_mutableStyle->removeEquivalentProperties(styleAtPosition);
912
913
    if (textAlignResolvingStartAndEnd(styleAtPosition) == textAlignResolvingStartAndEnd(styleAtPosition))
914
        m_mutableStyle->removeProperty(CSSPropertyTextAlign);
887
915
888
    if (getRGBAFontColor(m_mutableStyle.get()) == getRGBAFontColor(style->m_mutableStyle.get()))
916
    if (getRGBAFontColor(m_mutableStyle.get()) == getRGBAFontColor(styleAtPosition))
889
        m_mutableStyle->removeProperty(CSSPropertyColor);
917
        m_mutableStyle->removeProperty(CSSPropertyColor);
890
918
891
    if (hasTransparentBackgroundColor(m_mutableStyle.get())
919
    if (hasTransparentBackgroundColor(m_mutableStyle.get())
Lines 1451-1484 static bool fontWeightIsBold(StyleProper Source/WebCore/editing/EditingStyle.cpp_sec4
1451
    return fontWeightIsBold(fontWeight.get());
1479
    return fontWeightIsBold(fontWeight.get());
1452
}
1480
}
1453
1481
1454
static int getTextAlignment(int textAlignIdentifierValue)
1455
{
1456
    switch (textAlignIdentifierValue) {
1457
    case CSSValueCenter:
1458
    case CSSValueWebkitCenter:
1459
        return CSSValueCenter;
1460
    case CSSValueJustify:
1461
        return CSSValueJustify;
1462
    case CSSValueLeft:
1463
    case CSSValueWebkitLeft:
1464
        return CSSValueLeft;
1465
    case CSSValueRight:
1466
    case CSSValueWebkitRight:
1467
        return CSSValueRight;
1468
    }
1469
    return CSSValueInvalid;
1470
}
1471
1472
static int getTextAlignment(CSSStyleDeclaration* style)
1473
{
1474
    return getTextAlignment(getIdentifierValue(style, CSSPropertyTextAlign));
1475
}
1476
1477
static int getTextAlignment(StylePropertySet* style)
1478
{
1479
    return getTextAlignment(getIdentifierValue(style, CSSPropertyTextAlign));
1480
}
1481
1482
PassRefPtr<StylePropertySet> getPropertiesNotIn(StylePropertySet* styleWithRedundantProperties, CSSStyleDeclaration* baseStyle)
1482
PassRefPtr<StylePropertySet> getPropertiesNotIn(StylePropertySet* styleWithRedundantProperties, CSSStyleDeclaration* baseStyle)
1483
{
1483
{
1484
    ASSERT(styleWithRedundantProperties);
1484
    ASSERT(styleWithRedundantProperties);
Lines 1497-1503 PassRefPtr<StylePropertySet> getProperti Source/WebCore/editing/EditingStyle.cpp_sec5
1497
    if (baseStyle->getPropertyCSSValueInternal(CSSPropertyColor) && getRGBAFontColor(result.get()) == getRGBAFontColor(baseStyle))
1497
    if (baseStyle->getPropertyCSSValueInternal(CSSPropertyColor) && getRGBAFontColor(result.get()) == getRGBAFontColor(baseStyle))
1498
        result->removeProperty(CSSPropertyColor);
1498
        result->removeProperty(CSSPropertyColor);
1499
1499
1500
    if (baseStyle->getPropertyCSSValueInternal(CSSPropertyTextAlign) && getTextAlignment(result.get()) == getTextAlignment(baseStyle))
1500
    if (baseStyle->getPropertyCSSValueInternal(CSSPropertyTextAlign)
1501
        && textAlignResolvingStartAndEnd(result.get()) == textAlignResolvingStartAndEnd(baseStyle))
1501
        result->removeProperty(CSSPropertyTextAlign);
1502
        result->removeProperty(CSSPropertyTextAlign);
1502
1503
1503
    return result;
1504
    return result;
- Source/WebCore/rendering/RenderBlockLineLayout.cpp -18 / +11 lines
Lines 554-560 ETextAlign RenderBlock::textAlignmentFor Source/WebCore/rendering/RenderBlockLineLayout.cpp_sec1
554
{
554
{
555
    ETextAlign alignment = style()->textAlign();
555
    ETextAlign alignment = style()->textAlign();
556
    if (!endsWithSoftBreak && alignment == JUSTIFY)
556
    if (!endsWithSoftBreak && alignment == JUSTIFY)
557
        alignment = TAAUTO;
557
        alignment = TASTART;
558
558
559
    return alignment;
559
    return alignment;
560
}
560
}
Lines 714-719 void RenderBlock::updateLogicalWidthForA Source/WebCore/rendering/RenderBlockLineLayout.cpp_sec2
714
    case WEBKIT_LEFT:
714
    case WEBKIT_LEFT:
715
        updateLogicalWidthForLeftAlignedBlock(style()->isLeftToRightDirection(), trailingSpaceRun, logicalLeft, totalLogicalWidth, availableLogicalWidth);
715
        updateLogicalWidthForLeftAlignedBlock(style()->isLeftToRightDirection(), trailingSpaceRun, logicalLeft, totalLogicalWidth, availableLogicalWidth);
716
        break;
716
        break;
717
    case RIGHT:
718
    case WEBKIT_RIGHT:
719
        updateLogicalWidthForRightAlignedBlock(style()->isLeftToRightDirection(), trailingSpaceRun, logicalLeft, totalLogicalWidth, availableLogicalWidth);
720
        break;
721
    case CENTER:
722
    case WEBKIT_CENTER:
723
        updateLogicalWidthForCenterAlignedBlock(style()->isLeftToRightDirection(), trailingSpaceRun, logicalLeft, totalLogicalWidth, availableLogicalWidth);
724
        break;
717
    case JUSTIFY:
725
    case JUSTIFY:
718
        adjustInlineDirectionLineBounds(expansionOpportunityCount, logicalLeft, availableLogicalWidth);
726
        adjustInlineDirectionLineBounds(expansionOpportunityCount, logicalLeft, availableLogicalWidth);
719
        if (expansionOpportunityCount) {
727
        if (expansionOpportunityCount) {
Lines 723-744 void RenderBlock::updateLogicalWidthForA Source/WebCore/rendering/RenderBlockLineLayout.cpp_sec3
723
            }
731
            }
724
            break;
732
            break;
725
        }
733
        }
726
        // fall through
734
        // Fall through
727
    case TAAUTO:
728
        // for right to left fall through to right aligned
729
        if (style()->isLeftToRightDirection()) {
730
            if (totalLogicalWidth > availableLogicalWidth && trailingSpaceRun)
731
                trailingSpaceRun->m_box->setLogicalWidth(max<float>(0, trailingSpaceRun->m_box->logicalWidth() - totalLogicalWidth + availableLogicalWidth));
732
            break;
733
        }
734
    case RIGHT:
735
    case WEBKIT_RIGHT:
736
        updateLogicalWidthForRightAlignedBlock(style()->isLeftToRightDirection(), trailingSpaceRun, logicalLeft, totalLogicalWidth, availableLogicalWidth);
737
        break;
738
    case CENTER:
739
    case WEBKIT_CENTER:
740
        updateLogicalWidthForCenterAlignedBlock(style()->isLeftToRightDirection(), trailingSpaceRun, logicalLeft, totalLogicalWidth, availableLogicalWidth);
741
        break;
742
    case TASTART:
735
    case TASTART:
743
        if (style()->isLeftToRightDirection())
736
        if (style()->isLeftToRightDirection())
744
            updateLogicalWidthForLeftAlignedBlock(style()->isLeftToRightDirection(), trailingSpaceRun, logicalLeft, totalLogicalWidth, availableLogicalWidth);
737
            updateLogicalWidthForLeftAlignedBlock(style()->isLeftToRightDirection(), trailingSpaceRun, logicalLeft, totalLogicalWidth, availableLogicalWidth);
Lines 2774-2780 LayoutUnit RenderBlock::startAlignedOffs Source/WebCore/rendering/RenderBlockLineLayout.cpp_sec4
2774
{
2767
{
2775
    ETextAlign textAlign = style()->textAlign();
2768
    ETextAlign textAlign = style()->textAlign();
2776
2769
2777
    if (textAlign == TAAUTO)
2770
    if (textAlign == TASTART) // FIXME: Handle TAEND here
2778
        return startOffsetForLine(position, firstLine);
2771
        return startOffsetForLine(position, firstLine);
2779
2772
2780
    // updateLogicalWidthForAlignment() handles the direction of the block so no need to consider it here
2773
    // updateLogicalWidthForAlignment() handles the direction of the block so no need to consider it here
- Source/WebCore/rendering/RenderBoxModelObject.cpp -5 / +1 lines
Lines 2666-2676 LayoutRect RenderBoxModelObject::localCa Source/WebCore/rendering/RenderBoxModelObject.cpp_sec1
2666
    CaretAlignment alignment = alignLeft;
2666
    CaretAlignment alignment = alignLeft;
2667
2667
2668
    switch (currentStyle->textAlign()) {
2668
    switch (currentStyle->textAlign()) {
2669
    case TAAUTO:
2670
    case JUSTIFY:
2671
        if (!currentStyle->isLeftToRightDirection())
2672
            alignment = alignRight;
2673
        break;
2674
    case LEFT:
2669
    case LEFT:
2675
    case WEBKIT_LEFT:
2670
    case WEBKIT_LEFT:
2676
        break;
2671
        break;
Lines 2682-2687 LayoutRect RenderBoxModelObject::localCa Source/WebCore/rendering/RenderBoxModelObject.cpp_sec2
2682
    case WEBKIT_RIGHT:
2677
    case WEBKIT_RIGHT:
2683
        alignment = alignRight;
2678
        alignment = alignRight;
2684
        break;
2679
        break;
2680
    case JUSTIFY:
2685
    case TASTART:
2681
    case TASTART:
2686
        if (!currentStyle->isLeftToRightDirection())
2682
        if (!currentStyle->isLeftToRightDirection())
2687
            alignment = alignRight;
2683
            alignment = alignRight;
- Source/WebCore/rendering/RenderListBox.cpp -1 / +2 lines
Lines 358-364 static LayoutSize itemOffsetForAlignment Source/WebCore/rendering/RenderListBox.cpp_sec1
358
{
358
{
359
    ETextAlign actualAlignment = itemStyle->textAlign();
359
    ETextAlign actualAlignment = itemStyle->textAlign();
360
    // FIXME: Firefox doesn't respect JUSTIFY. Should we?
360
    // FIXME: Firefox doesn't respect JUSTIFY. Should we?
361
    if (actualAlignment == TAAUTO || actualAlignment == JUSTIFY)
361
    // FIXME: Handle TAEND here
362
    if (actualAlignment == TASTART || actualAlignment == JUSTIFY)
362
      actualAlignment = itemStyle->isLeftToRightDirection() ? LEFT : RIGHT;
363
      actualAlignment = itemStyle->isLeftToRightDirection() ? LEFT : RIGHT;
363
364
364
    LayoutSize offset = LayoutSize(0, itemFont.fontMetrics().ascent());
365
    LayoutSize offset = LayoutSize(0, itemFont.fontMetrics().ascent());
- Source/WebCore/rendering/RenderMarquee.cpp -1 / +1 lines
Lines 230-236 void RenderMarquee::updateMarqueeStyle() Source/WebCore/rendering/RenderMarquee.cpp_sec1
230
        // FIXME: Bring these up with the CSS WG.
230
        // FIXME: Bring these up with the CSS WG.
231
        if (isHorizontal() && m_layer->renderer()->childrenInline()) {
231
        if (isHorizontal() && m_layer->renderer()->childrenInline()) {
232
            s->setWhiteSpace(NOWRAP);
232
            s->setWhiteSpace(NOWRAP);
233
            s->setTextAlign(TAAUTO);
233
            s->setTextAlign(TASTART);
234
        }
234
        }
235
    }
235
    }
236
    
236
    
- Source/WebCore/rendering/RenderRubyText.cpp -2 / +4 lines
Lines 54-60 bool RenderRubyText::isChildAllowed(Rend Source/WebCore/rendering/RenderRubyText.cpp_sec1
54
ETextAlign RenderRubyText::textAlignmentForLine(bool endsWithSoftBreak) const
54
ETextAlign RenderRubyText::textAlignmentForLine(bool endsWithSoftBreak) const
55
{
55
{
56
    ETextAlign textAlign = style()->textAlign();
56
    ETextAlign textAlign = style()->textAlign();
57
    if (textAlign != TAAUTO)
57
    // FIXME: This check is bogus since user can set the initial value.
58
    if (textAlign != RenderStyle::initialTextAlign())
58
        return RenderBlock::textAlignmentForLine(endsWithSoftBreak);
59
        return RenderBlock::textAlignmentForLine(endsWithSoftBreak);
59
60
60
    // The default behavior is to allow ruby text to expand if it is shorter than the ruby base.
61
    // The default behavior is to allow ruby text to expand if it is shorter than the ruby base.
Lines 64-70 ETextAlign RenderRubyText::textAlignment Source/WebCore/rendering/RenderRubyText.cpp_sec2
64
void RenderRubyText::adjustInlineDirectionLineBounds(int expansionOpportunityCount, float& logicalLeft, float& logicalWidth) const
65
void RenderRubyText::adjustInlineDirectionLineBounds(int expansionOpportunityCount, float& logicalLeft, float& logicalWidth) const
65
{
66
{
66
    ETextAlign textAlign = style()->textAlign();
67
    ETextAlign textAlign = style()->textAlign();
67
    if (textAlign != TAAUTO)
68
    // FIXME: This check is bogus since user can set the initial value.
69
    if (textAlign != RenderStyle::initialTextAlign())
68
        return RenderBlock::adjustInlineDirectionLineBounds(expansionOpportunityCount, logicalLeft, logicalWidth);
70
        return RenderBlock::adjustInlineDirectionLineBounds(expansionOpportunityCount, logicalLeft, logicalWidth);
69
71
70
    int maxPreferredLogicalWidth = this->maxPreferredLogicalWidth();
72
    int maxPreferredLogicalWidth = this->maxPreferredLogicalWidth();
- Source/WebCore/rendering/RenderText.cpp -4 / +1 lines
Lines 687-696 LayoutRect RenderText::localCaretRect(In Source/WebCore/rendering/RenderText.cpp_sec1
687
687
688
    bool rightAligned = false;
688
    bool rightAligned = false;
689
    switch (cbStyle->textAlign()) {
689
    switch (cbStyle->textAlign()) {
690
    case TAAUTO:
691
    case JUSTIFY:
692
        rightAligned = !cbStyle->isLeftToRightDirection();
693
        break;
694
    case RIGHT:
690
    case RIGHT:
695
    case WEBKIT_RIGHT:
691
    case WEBKIT_RIGHT:
696
        rightAligned = true;
692
        rightAligned = true;
Lines 700-705 LayoutRect RenderText::localCaretRect(In Source/WebCore/rendering/RenderText.cpp_sec2
700
    case CENTER:
696
    case CENTER:
701
    case WEBKIT_CENTER:
697
    case WEBKIT_CENTER:
702
        break;
698
        break;
699
    case JUSTIFY:
703
    case TASTART:
700
    case TASTART:
704
        rightAligned = !cbStyle->isLeftToRightDirection();
701
        rightAligned = !cbStyle->isLeftToRightDirection();
705
        break;
702
        break;
- Source/WebCore/rendering/style/RenderStyle.h -1 / +1 lines
Lines 1586-1592 public: Source/WebCore/rendering/style/RenderStyle.h_sec1
1586
    static short initialWidows() { return 2; }
1586
    static short initialWidows() { return 2; }
1587
    static short initialOrphans() { return 2; }
1587
    static short initialOrphans() { return 2; }
1588
    static Length initialLineHeight() { return Length(-100.0, Percent); }
1588
    static Length initialLineHeight() { return Length(-100.0, Percent); }
1589
    static ETextAlign initialTextAlign() { return TAAUTO; }
1589
    static ETextAlign initialTextAlign() { return TASTART; }
1590
    static ETextDecoration initialTextDecoration() { return TDNONE; }
1590
    static ETextDecoration initialTextDecoration() { return TDNONE; }
1591
    static float initialZoom() { return 1.0f; }
1591
    static float initialZoom() { return 1.0f; }
1592
    static int initialOutlineOffset() { return 0; }
1592
    static int initialOutlineOffset() { return 0; }
- Source/WebCore/rendering/style/RenderStyleConstants.h -1 / +1 lines
Lines 335-341 enum EWhiteSpace { Source/WebCore/rendering/style/RenderStyleConstants.h_sec1
335
335
336
// The order of this enum must match the order of the text align values in CSSValueKeywords.in.
336
// The order of this enum must match the order of the text align values in CSSValueKeywords.in.
337
enum ETextAlign {
337
enum ETextAlign {
338
    TAAUTO, LEFT, RIGHT, CENTER, JUSTIFY, WEBKIT_LEFT, WEBKIT_RIGHT, WEBKIT_CENTER, TASTART, TAEND,
338
    LEFT, RIGHT, CENTER, JUSTIFY, WEBKIT_LEFT, WEBKIT_RIGHT, WEBKIT_CENTER, TASTART, TAEND,
339
};
339
};
340
340
341
enum ETextTransform {
341
enum ETextTransform {
- LayoutTests/ChangeLog +50 lines
Lines 1-3 LayoutTests/ChangeLog_sec1
1
2012-06-14  Ryosuke Niwa  <rniwa@webkit.org>
2
3
        The default value of text-align should be start instead of -webkit-auto
4
        https://bugs.webkit.org/show_bug.cgi?id=79914
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        Rebaselined tests. For query-text-alignment.html, we now match start and end
9
        with justifyLeft and justifyRight, which appears to be consistent with Firefox for time being.
10
11
        * editing/execCommand/query-text-alignment-expected.txt:
12
        * editing/execCommand/script-tests/query-text-alignment.js:
13
        (queryTextAlignment):
14
        (selectFirstPosition):
15
        (selectMiddleOfHelloWorld):
16
        (runRangeTests):
17
        * editing/pasteboard/paste-4039777-fix-expected.txt:
18
        * fast/css/getComputedStyle/computed-style-expected.txt:
19
        * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
20
        * fast/css/list-item-text-align.html:
21
        * fast/css/text-align-webkit-auto.html:
22
        * fast/events/ondrop-text-html-expected.txt:
23
        * platform/chromium-linux-x86/svg/css/getComputedStyle-basic-expected.txt:
24
        * platform/chromium-linux/svg/css/getComputedStyle-basic-expected.txt:
25
        * platform/chromium-mac-leopard/fast/css/getComputedStyle/computed-style-expected.txt:
26
        * platform/chromium-mac-leopard/svg/css/getComputedStyle-basic-expected.txt:
27
        * platform/chromium-mac-snowleopard/fast/lists/001-expected.png:
28
        * platform/chromium-mac-snowleopard/fast/lists/001-vertical-expected.png:
29
        * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt:
30
        * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt:
31
        * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
32
        * platform/chromium-mac/svg/css/getComputedStyle-basic-expected.txt:
33
        * platform/chromium-win-vista/svg/css/getComputedStyle-basic-expected.txt:
34
        * platform/chromium-win-xp/svg/css/getComputedStyle-basic-expected.txt:
35
        * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt:
36
        * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
37
        * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt:
38
        * platform/gtk/fast/css/getComputedStyle/computed-style-expected.txt:
39
        * platform/gtk/svg/css/getComputedStyle-basic-expected.txt:
40
        * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
41
        * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
42
        * platform/mac/fast/lists/001-expected.txt:
43
        * platform/mac/fast/lists/001-vertical-expected.txt:
44
        * platform/mac/svg/css/getComputedStyle-basic-expected.txt:
45
        * platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
46
        * platform/qt/svg/css/getComputedStyle-basic-expected.txt:
47
        * platform/win/fast/css/getComputedStyle/computed-style-expected.txt:
48
        * platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
49
        * svg/css/getComputedStyle-basic-expected.txt:
50
1
2012-06-14  Jia Pu  <jpu@apple.com>
51
2012-06-14  Jia Pu  <jpu@apple.com>
2
52
3
        Mark text with text alternative with blue underline.
53
        Mark text with text alternative with blue underline.
- LayoutTests/editing/execCommand/query-text-alignment-expected.txt -10 / +10 lines
Lines 5-12 On success, you will see a series of "PA LayoutTests/editing/execCommand/query-text-alignment-expected.txt_sec1
5
5
6
Caret
6
Caret
7
PASS queryCommand('format') returns "" when selecting no selection on of "hello"
7
PASS queryCommand('format') returns "" when selecting no selection on of "hello"
8
PASS queryCommand('format') returns "" when selecting first position of "hello"
8
PASS queryCommand('format') returns "left" when selecting first position of "hello"
9
PASS queryCommand('format') returns "" when selecting first position of "<p>hello</p>"
9
PASS queryCommand('format') returns "left" when selecting first position of "<p>hello</p>"
10
PASS queryCommand('format') returns "center" when selecting first position of "<p align="center">hello</p>"
10
PASS queryCommand('format') returns "center" when selecting first position of "<p align="center">hello</p>"
11
PASS queryCommand('format') returns "full" when selecting first position of "<p align="justify">hello</p>"
11
PASS queryCommand('format') returns "full" when selecting first position of "<p align="justify">hello</p>"
12
PASS queryCommand('format') returns "left" when selecting first position of "<p align="left">hello</p>"
12
PASS queryCommand('format') returns "left" when selecting first position of "<p align="left">hello</p>"
Lines 22-28 PASS queryCommand('format') returns "cen LayoutTests/editing/execCommand/query-text-alignment-expected.txt_sec2
22
PASS queryCommand('format') returns "left" when selecting first position of "<p align="right" style="text-align: left;">hello</p>"
22
PASS queryCommand('format') returns "left" when selecting first position of "<p align="right" style="text-align: left;">hello</p>"
23
PASS queryCommand('format') returns "right" when selecting first position of "<p align="center" style="text-align: right;">hello</p>"
23
PASS queryCommand('format') returns "right" when selecting first position of "<p align="center" style="text-align: right;">hello</p>"
24
PASS queryCommand('format') returns "center" when selecting first position of "<p align="left" style="text-align: center;">hello</p>"
24
PASS queryCommand('format') returns "center" when selecting first position of "<p align="left" style="text-align: center;">hello</p>"
25
PASS queryCommand('format') returns "" when selecting first position of "<h1>hello</h1>"
25
PASS queryCommand('format') returns "left" when selecting first position of "<h1>hello</h1>"
26
PASS queryCommand('format') returns "center" when selecting first position of "<h1 align="center">hello</h1>"
26
PASS queryCommand('format') returns "center" when selecting first position of "<h1 align="center">hello</h1>"
27
PASS queryCommand('format') returns "full" when selecting first position of "<h1 align="justify">hello</h1>"
27
PASS queryCommand('format') returns "full" when selecting first position of "<h1 align="justify">hello</h1>"
28
PASS queryCommand('format') returns "left" when selecting first position of "<h2 align="left">hello</h2>"
28
PASS queryCommand('format') returns "left" when selecting first position of "<h2 align="left">hello</h2>"
Lines 36-44 PASS queryCommand('format') returns "lef LayoutTests/editing/execCommand/query-text-alignment-expected.txt_sec3
36
PASS queryCommand('format') returns "right" when selecting first position of "<div align="right">hello</div>"
36
PASS queryCommand('format') returns "right" when selecting first position of "<div align="right">hello</div>"
37
37
38
Tests for win
38
Tests for win
39
PASS queryCommand('format') returns "" when selecting middle of "<p>hello</p><p>world</p>"
39
PASS queryCommand('format') returns "left" when selecting middle of "<p>hello</p><p>world</p>"
40
PASS queryCommand('format') returns "" when selecting middle of "<p align="left">hello</p><p>world</p>"
40
PASS queryCommand('format') returns "" when selecting middle of "<p align="right">hello</p><p>world</p>"
41
PASS queryCommand('format') returns "" when selecting middle of "<p>hello</p><p align="left">world</p>"
41
PASS queryCommand('format') returns "left" when selecting middle of "<p>hello</p><p align="left">world</p>"
42
PASS queryCommand('format') returns "" when selecting middle of "<p align="left">hello</p><p align="right">world</p>"
42
PASS queryCommand('format') returns "" when selecting middle of "<p align="left">hello</p><p align="right">world</p>"
43
PASS queryCommand('format') returns "center" when selecting middle of "<p align="center">hello</p><p align="center">world</p>"
43
PASS queryCommand('format') returns "center" when selecting middle of "<p align="center">hello</p><p align="center">world</p>"
44
PASS queryCommand('format') returns "full" when selecting middle of "<p align="justify">hello</p><p align="justify">world</p>"
44
PASS queryCommand('format') returns "full" when selecting middle of "<p align="justify">hello</p><p align="justify">world</p>"
Lines 46-58 PASS queryCommand('format') returns "lef LayoutTests/editing/execCommand/query-text-alignment-expected.txt_sec4
46
PASS queryCommand('format') returns "right" when selecting middle of "<p align="right">hello</p><p align="right">world</p>"
46
PASS queryCommand('format') returns "right" when selecting middle of "<p align="right">hello</p><p align="right">world</p>"
47
PASS queryCommand('format') returns "" when selecting middle of "<div align="right">hello<p align="left">world</p></div>"
47
PASS queryCommand('format') returns "" when selecting middle of "<div align="right">hello<p align="left">world</p></div>"
48
PASS queryCommand('format') returns "" when selecting middle of "<div align="left"><p align="center">world</p>hello</div>"
48
PASS queryCommand('format') returns "" when selecting middle of "<div align="left"><p align="center">world</p>hello</div>"
49
PASS queryCommand('format') returns "" when selecting middle of "<p align="left">hello</p><p>w</p><p align="left">orld</p>"
49
PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p>w</p><p align="left">orld</p>"
50
PASS queryCommand('format') returns "" when selecting middle of "<p align="justify">hello</p><p>w</p><p align="center">orld</p>"
50
PASS queryCommand('format') returns "" when selecting middle of "<p align="justify">hello</p><p>w</p><p align="center">orld</p>"
51
51
52
Tests for mac
52
Tests for mac
53
PASS queryCommand('format') returns "" when selecting middle of "<p>hello</p><p>world</p>"
53
PASS queryCommand('format') returns "left" when selecting middle of "<p>hello</p><p>world</p>"
54
PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p>world</p>"
54
PASS queryCommand('format') returns "right" when selecting middle of "<p align="right">hello</p><p>world</p>"
55
PASS queryCommand('format') returns "" when selecting middle of "<p>hello</p><p align="left">world</p>"
55
PASS queryCommand('format') returns "left" when selecting middle of "<p>hello</p><p align="left">world</p>"
56
PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p align="right">world</p>"
56
PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p align="right">world</p>"
57
PASS queryCommand('format') returns "center" when selecting middle of "<p align="center">hello</p><p align="center">world</p>"
57
PASS queryCommand('format') returns "center" when selecting middle of "<p align="center">hello</p><p align="center">world</p>"
58
PASS queryCommand('format') returns "full" when selecting middle of "<p align="justify">hello</p><p align="justify">world</p>"
58
PASS queryCommand('format') returns "full" when selecting middle of "<p align="justify">hello</p><p align="justify">world</p>"
- LayoutTests/editing/execCommand/script-tests/query-text-alignment.js -9 / +9 lines
Lines 33-44 function queryTextAlignment(selector, co LayoutTests/editing/execCommand/script-tests/query-text-alignment.js_sec1
33
function selectFirstPosition(container) {
33
function selectFirstPosition(container) {
34
    while (container.firstChild)
34
    while (container.firstChild)
35
        container = container.firstChild;
35
        container = container.firstChild;
36
    window.getSelection().setPosition(container, 0);
36
    window.getSelection().collapse(container, 0);
37
    return 'first position';
37
    return 'first position';
38
}
38
}
39
39
40
function selectMiddleOfHelloWorld(container) {
40
function selectMiddleOfHelloWorld(container) {
41
    window.getSelection().setPosition(container, 0);
41
    window.getSelection().collapse(container, 0);
42
    window.getSelection().modify('move', 'forward', 'character');
42
    window.getSelection().modify('move', 'forward', 'character');
43
    window.getSelection().modify('move', 'forward', 'character');
43
    window.getSelection().modify('move', 'forward', 'character');
44
    window.getSelection().modify('extend', 'forward', 'word');
44
    window.getSelection().modify('extend', 'forward', 'word');
Lines 50-57 function selectMiddleOfHelloWorld(contai LayoutTests/editing/execCommand/script-tests/query-text-alignment.js_sec2
50
50
51
debug('Caret');
51
debug('Caret');
52
queryTextAlignment(function () {return 'no selection on'}, 'hello', '');
52
queryTextAlignment(function () {return 'no selection on'}, 'hello', '');
53
queryTextAlignment(selectFirstPosition, 'hello', '');
53
queryTextAlignment(selectFirstPosition, 'hello', 'left');
54
queryTextAlignment(selectFirstPosition, '<p>hello</p>', '');
54
queryTextAlignment(selectFirstPosition, '<p>hello</p>', 'left');
55
queryTextAlignment(selectFirstPosition, '<p align="center">hello</p>', 'center');
55
queryTextAlignment(selectFirstPosition, '<p align="center">hello</p>', 'center');
56
queryTextAlignment(selectFirstPosition, '<p align="justify">hello</p>', 'full');
56
queryTextAlignment(selectFirstPosition, '<p align="justify">hello</p>', 'full');
57
queryTextAlignment(selectFirstPosition, '<p align="left">hello</p>', 'left');
57
queryTextAlignment(selectFirstPosition, '<p align="left">hello</p>', 'left');
Lines 67-73 queryTextAlignment(selectFirstPosition, LayoutTests/editing/execCommand/script-tests/query-text-alignment.js_sec3
67
queryTextAlignment(selectFirstPosition, '<p align="right" style="text-align: left;">hello</p>', 'left');
67
queryTextAlignment(selectFirstPosition, '<p align="right" style="text-align: left;">hello</p>', 'left');
68
queryTextAlignment(selectFirstPosition, '<p align="center" style="text-align: right;">hello</p>', 'right');
68
queryTextAlignment(selectFirstPosition, '<p align="center" style="text-align: right;">hello</p>', 'right');
69
queryTextAlignment(selectFirstPosition, '<p align="left" style="text-align: center;">hello</p>', 'center');
69
queryTextAlignment(selectFirstPosition, '<p align="left" style="text-align: center;">hello</p>', 'center');
70
queryTextAlignment(selectFirstPosition, '<h1>hello</h1>', '');
70
queryTextAlignment(selectFirstPosition, '<h1>hello</h1>', 'left');
71
queryTextAlignment(selectFirstPosition, '<h1 align="center">hello</h1>', 'center');
71
queryTextAlignment(selectFirstPosition, '<h1 align="center">hello</h1>', 'center');
72
queryTextAlignment(selectFirstPosition, '<h1 align="justify">hello</h1>', 'full');
72
queryTextAlignment(selectFirstPosition, '<h1 align="justify">hello</h1>', 'full');
73
queryTextAlignment(selectFirstPosition, '<h2 align="left">hello</h2>', 'left');
73
queryTextAlignment(selectFirstPosition, '<h2 align="left">hello</h2>', 'left');
Lines 86-94 function runRangeTests(editingBehavior) LayoutTests/editing/execCommand/script-tests/query-text-alignment.js_sec4
86
        internals.settings.setEditingBehavior(editingBehavior);
86
        internals.settings.setEditingBehavior(editingBehavior);
87
    debug('Tests for ' + editingBehavior);
87
    debug('Tests for ' + editingBehavior);
88
88
89
    queryTextAlignment(selectMiddleOfHelloWorld, '<p>hello</p><p>world</p>', '');
89
    queryTextAlignment(selectMiddleOfHelloWorld, '<p>hello</p><p>world</p>', 'left');
90
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="left">hello</p><p>world</p>', {'mac': 'left', 'win': ''}[editingBehavior]);
90
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="right">hello</p><p>world</p>', {'mac': 'right', 'win': ''}[editingBehavior]);
91
    queryTextAlignment(selectMiddleOfHelloWorld, '<p>hello</p><p align="left">world</p>', '');
91
    queryTextAlignment(selectMiddleOfHelloWorld, '<p>hello</p><p align="left">world</p>', 'left');
92
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="left">hello</p><p align="right">world</p>', {'mac': 'left', 'win': ''}[editingBehavior]);
92
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="left">hello</p><p align="right">world</p>', {'mac': 'left', 'win': ''}[editingBehavior]);
93
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="center">hello</p><p align="center">world</p>', 'center');
93
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="center">hello</p><p align="center">world</p>', 'center');
94
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="justify">hello</p><p align="justify">world</p>', 'full');
94
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="justify">hello</p><p align="justify">world</p>', 'full');
Lines 96-102 function runRangeTests(editingBehavior) LayoutTests/editing/execCommand/script-tests/query-text-alignment.js_sec5
96
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="right">hello</p><p align="right">world</p>', 'right');
96
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="right">hello</p><p align="right">world</p>', 'right');
97
    queryTextAlignment(selectMiddleOfHelloWorld, '<div align="right">hello<p align="left">world</p></div>', {'mac': 'right', 'win': ''}[editingBehavior]);
97
    queryTextAlignment(selectMiddleOfHelloWorld, '<div align="right">hello<p align="left">world</p></div>', {'mac': 'right', 'win': ''}[editingBehavior]);
98
    queryTextAlignment(selectMiddleOfHelloWorld, '<div align="left"><p align="center">world</p>hello</div>', {'mac': 'center', 'win': ''}[editingBehavior]);
98
    queryTextAlignment(selectMiddleOfHelloWorld, '<div align="left"><p align="center">world</p>hello</div>', {'mac': 'center', 'win': ''}[editingBehavior]);
99
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="left">hello</p><p>w</p><p align="left">orld</p>', {'mac': 'left', 'win': ''}[editingBehavior]);
99
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="left">hello</p><p>w</p><p align="left">orld</p>', {'mac': 'left', 'win': 'left'}[editingBehavior]);
100
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="justify">hello</p><p>w</p><p align="center">orld</p>', {'mac': 'full', 'win': ''}[editingBehavior]);
100
    queryTextAlignment(selectMiddleOfHelloWorld, '<p align="justify">hello</p><p>w</p><p align="center">orld</p>', {'mac': 'full', 'win': ''}[editingBehavior]);
101
}
101
}
102
102
- LayoutTests/editing/pasteboard/paste-4039777-fix-expected.txt -1 / +1 lines
Lines 52-58 Actual result: LayoutTests/editing/pasteboard/paste-4039777-fix-expected.txt_sec1
52
|   <li>
52
|   <li>
53
|     "A"
53
|     "A"
54
|   <div>
54
|   <div>
55
|     style="text-align: -webkit-auto; "
55
|     style="text-align: start; "
56
|     <ul>
56
|     <ul>
57
|       <li>
57
|       <li>
58
|         <a>
58
|         <a>
- LayoutTests/fast/css/list-item-text-align.html -1 / +1 lines
Lines 55-61 function assertAlignment(enclosingListEl LayoutTests/fast/css/list-item-text-align.html_sec1
55
    var leftAlign = expectedAlignment == 'left';
55
    var leftAlign = expectedAlignment == 'left';
56
56
57
    if (window.layoutTestController) {
57
    if (window.layoutTestController) {
58
        if (computedStyle.textAlign == '-webkit-auto') {
58
        if (computedStyle.textAlign == 'start') {
59
            // For the case of -webkit-auto check the offset of the text on screen
59
            // For the case of -webkit-auto check the offset of the text on screen
60
            // rather than examining the computed style.
60
            // rather than examining the computed style.
61
            var elementLeftEdge = enclosingListElement.children[0].offsetLeft;
61
            var elementLeftEdge = enclosingListElement.children[0].offsetLeft;
- LayoutTests/fast/css/text-align-webkit-auto.html -2 / +2 lines
Lines 5-14 function runTest() { LayoutTests/fast/css/text-align-webkit-auto.html_sec1
5
        window.layoutTestController.dumpAsText();
5
        window.layoutTestController.dumpAsText();
6
        
6
        
7
    var textAlign = window.getComputedStyle(document.getElementById("div")).textAlign;
7
    var textAlign = window.getComputedStyle(document.getElementById("div")).textAlign;
8
    if (textAlign == "-webkit-auto")
8
    if (textAlign == "start")
9
        document.body.innerText = "SUCCESS";
9
        document.body.innerText = "SUCCESS";
10
    else
10
    else
11
        document.body.innerText = "FAILURE.  text-align was " + textAlign + ", it should have been -webkit-auto";   
11
        document.body.innerText = "FAILURE.  text-align was " + textAlign + ", it should have been start";
12
}
12
}
13
</script>
13
</script>
14
</head>
14
</head>
- LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt -1 / +1 lines
Lines 84-90 right: auto; LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt_sec1
84
speak: normal;
84
speak: normal;
85
table-layout: auto;
85
table-layout: auto;
86
tab-size: 8;
86
tab-size: 8;
87
text-align: -webkit-auto;
87
text-align: start;
88
text-decoration: none;
88
text-decoration: none;
89
text-indent: 0px;
89
text-indent: 0px;
90
text-rendering: auto;
90
text-rendering: auto;
- LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt -1 / +1 lines
Lines 83-89 Computed style of an element whose paren LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt_sec1
83
    speak: normal
83
    speak: normal
84
    table-layout: auto
84
    table-layout: auto
85
    tab-size: 8
85
    tab-size: 8
86
    text-align: -webkit-auto
86
    text-align: start
87
    text-decoration: none
87
    text-decoration: none
88
    text-indent: 0px
88
    text-indent: 0px
89
    text-rendering: auto
89
    text-rendering: auto
- LayoutTests/fast/events/ondrop-text-html-expected.txt -1 / +1 lines
Lines 1-4 LayoutTests/fast/events/ondrop-text-html-expected.txt_sec1
1
CONSOLE MESSAGE: line 21: text/plain: This test verifies that we can get text/html from the drag object during an ondrop event. 
1
CONSOLE MESSAGE: line 21: text/plain: This test verifies that we can get text/html from the drag object during an ondrop event. 
2
CONSOLE MESSAGE: line 23: text/html: <span style="color: rgb(0, 0, 0);  font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">This test verifies that we can get text/html from the drag object during an ondrop event.<span class="Apple-converted-space"> </span></span>
2
CONSOLE MESSAGE: line 23: text/html: <span style="color: rgb(0, 0, 0);  font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">This test verifies that we can get text/html from the drag object during an ondrop event.<span class="Apple-converted-space"> </span></span>
3
This test verifies that we can get text/html from the drag object during an ondrop event. This test requires DRT.
3
This test verifies that we can get text/html from the drag object during an ondrop event. This test requires DRT.
4
PASS
4
PASS
- LayoutTests/platform/chromium-linux-x86/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/chromium-linux-x86/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/chromium-linux-x86/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/chromium-linux/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/chromium-linux/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/chromium-linux/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/chromium-mac-leopard/fast/css/getComputedStyle/computed-style-expected.txt -1 / +1 lines
Lines 84-90 right: auto; LayoutTests/platform/chromium-mac-leopard/fast/css/getComputedStyle/computed-style-expected.txt_sec1
84
speak: normal;
84
speak: normal;
85
table-layout: auto;
85
table-layout: auto;
86
tab-size: 8;
86
tab-size: 8;
87
text-align: -webkit-auto;
87
text-align: start;
88
text-decoration: none;
88
text-decoration: none;
89
text-indent: 0px;
89
text-indent: 0px;
90
text-rendering: auto;
90
text-rendering: auto;
- LayoutTests/platform/chromium-mac-leopard/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/chromium-mac-leopard/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/chromium-mac-leopard/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt -1 / +1 lines
Lines 84-90 right: auto; LayoutTests/platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt_sec1
84
speak: normal;
84
speak: normal;
85
table-layout: auto;
85
table-layout: auto;
86
tab-size: 8;
86
tab-size: 8;
87
text-align: -webkit-auto;
87
text-align: start;
88
text-decoration: none;
88
text-decoration: none;
89
text-indent: 0px;
89
text-indent: 0px;
90
text-rendering: auto;
90
text-rendering: auto;
- LayoutTests/platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt -1 / +1 lines
Lines 83-89 Computed style of an element whose paren LayoutTests/platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt_sec1
83
    speak: normal
83
    speak: normal
84
    table-layout: auto
84
    table-layout: auto
85
    tab-size: 8
85
    tab-size: 8
86
    text-align: -webkit-auto
86
    text-align: start
87
    text-decoration: none
87
    text-decoration: none
88
    text-indent: 0px
88
    text-indent: 0px
89
    text-rendering: auto
89
    text-rendering: auto
- LayoutTests/platform/chromium-mac/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/chromium-mac/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/chromium-mac/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/chromium-win-vista/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/chromium-win-vista/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/chromium-win-vista/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/chromium-win-xp/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/chromium-win-xp/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/chromium-win-xp/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt -1 / +1 lines
Lines 84-90 right: auto; LayoutTests/platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt_sec1
84
speak: normal;
84
speak: normal;
85
table-layout: auto;
85
table-layout: auto;
86
tab-size: 8;
86
tab-size: 8;
87
text-align: -webkit-auto;
87
text-align: start;
88
text-decoration: none;
88
text-decoration: none;
89
text-indent: 0px;
89
text-indent: 0px;
90
text-rendering: auto;
90
text-rendering: auto;
- LayoutTests/platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt -1 / +1 lines
Lines 83-89 Computed style of an element whose paren LayoutTests/platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt_sec1
83
    speak: normal
83
    speak: normal
84
    table-layout: auto
84
    table-layout: auto
85
    tab-size: 8
85
    tab-size: 8
86
    text-align: -webkit-auto
86
    text-align: start
87
    text-decoration: none
87
    text-decoration: none
88
    text-indent: 0px
88
    text-indent: 0px
89
    text-rendering: auto
89
    text-rendering: auto
- LayoutTests/platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/gtk/fast/css/getComputedStyle/computed-style-expected.txt -1 / +1 lines
Lines 84-90 right: auto; LayoutTests/platform/gtk/fast/css/getComputedStyle/computed-style-expected.txt_sec1
84
speak: normal;
84
speak: normal;
85
table-layout: auto;
85
table-layout: auto;
86
tab-size: 8;
86
tab-size: 8;
87
text-align: -webkit-auto;
87
text-align: start;
88
text-decoration: none;
88
text-decoration: none;
89
text-indent: 0px;
89
text-indent: 0px;
90
text-rendering: auto;
90
text-rendering: auto;
- LayoutTests/platform/gtk/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/gtk/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 698-704 g: style.getPropertyValue(table-layout) LayoutTests/platform/gtk/svg/css/getComputedStyle-basic-expected.txt_sec2
698
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
698
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
699
g: style.getPropertyValue(tab-size) : 8
699
g: style.getPropertyValue(tab-size) : 8
700
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(text-align) : -webkit-auto
701
g: style.getPropertyValue(text-align) : start
702
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-decoration) : none
703
g: style.getPropertyValue(text-decoration) : none
704
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt -1 / +1 lines
Lines 84-90 right: auto; LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-expected.txt_sec1
84
speak: normal;
84
speak: normal;
85
table-layout: auto;
85
table-layout: auto;
86
tab-size: 8;
86
tab-size: 8;
87
text-align: -webkit-auto;
87
text-align: start;
88
text-decoration: none;
88
text-decoration: none;
89
text-indent: 0px;
89
text-indent: 0px;
90
text-rendering: auto;
90
text-rendering: auto;
- LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt -1 / +1 lines
Lines 83-89 Computed style of an element whose paren LayoutTests/platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt_sec1
83
    speak: normal
83
    speak: normal
84
    table-layout: auto
84
    table-layout: auto
85
    tab-size: 8
85
    tab-size: 8
86
    text-align: -webkit-auto
86
    text-align: start
87
    text-decoration: none
87
    text-decoration: none
88
    text-indent: 0px
88
    text-indent: 0px
89
    text-rendering: auto
89
    text-rendering: auto
- LayoutTests/platform/mac/fast/lists/001-expected.txt -2 / +2 lines
Lines 16-20 layer at (0,0) size 800x585 LayoutTests/platform/mac/fast/lists/001-expected.txt_sec1
16
      RenderBlock {UL} at (0,122) size 784x122
16
      RenderBlock {UL} at (0,122) size 784x122
17
        RenderListItem {LI} at (40,0) size 744x122 [border: (2px solid #FF0000)]
17
        RenderListItem {LI} at (40,0) size 744x122 [border: (2px solid #FF0000)]
18
          RenderListMarker at (754,52) size 7x18: bullet
18
          RenderListMarker at (754,52) size 7x18: bullet
19
          RenderText {#text} at (201,52) size 491x18
19
          RenderText {#text} at (52,52) size 491x18
20
            text run at (201,52) width 491: "Foo fofodfosjlkdf dslkdjlk asdlksjald djklsd klasjdkas sdajd lsadjkl asjdlksajdk"
20
            text run at (52,52) width 491: "Foo fofodfosjlkdf dslkdjlk asdlksjald djklsd klasjdkas sdajd lsadjkl asjdlksajdk"
- LayoutTests/platform/mac/fast/lists/001-vertical-expected.txt -3 / +3 lines
Lines 16-21 layer at (0,0) size 785x600 LayoutTests/platform/mac/fast/lists/001-vertical-expected.txt_sec1
16
      RenderBlock {UL} at (122,0) size 140x584
16
      RenderBlock {UL} at (122,0) size 140x584
17
        RenderListItem {LI} at (0,40) size 140x544 [border: (2px solid #FF0000)]
17
        RenderListItem {LI} at (0,40) size 140x544 [border: (2px solid #FF0000)]
18
          RenderListMarker at (52,554) size 18x7: bullet
18
          RenderListMarker at (52,554) size 18x7: bullet
19
          RenderText {#text} at (52,75) size 36x417
19
          RenderText {#text} at (52,52) size 36x417
20
            text run at (52,75) width 417: "Foo fofodfosjlkdf dslkdjlk asdlksjald djklsd klasjdkas sdajd lsadjkl"
20
            text run at (52,52) width 417: "Foo fofodfosjlkdf dslkdjlk asdlksjald djklsd klasjdkas sdajd lsadjkl"
21
            text run at (70,422) width 70: "asjdlksajdk"
21
            text run at (70,52) width 70: "asjdlksajdk"
- LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/mac/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt -1 / +1 lines
Lines 83-89 Computed style of an element whose paren LayoutTests/platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt_sec1
83
    speak: normal
83
    speak: normal
84
    table-layout: auto
84
    table-layout: auto
85
    tab-size: 8
85
    tab-size: 8
86
    text-align: -webkit-auto
86
    text-align: start
87
    text-decoration: none
87
    text-decoration: none
88
    text-indent: 0px
88
    text-indent: 0px
89
    text-rendering: auto
89
    text-rendering: auto
- LayoutTests/platform/qt/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 166-172 rect: style.getPropertyValue(table-layou LayoutTests/platform/qt/svg/css/getComputedStyle-basic-expected.txt_sec1
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(tab-size) : 8
167
rect: style.getPropertyValue(tab-size) : 8
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-align) : -webkit-auto
169
rect: style.getPropertyValue(text-align) : start
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
171
rect: style.getPropertyValue(text-decoration) : none
171
rect: style.getPropertyValue(text-decoration) : none
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
172
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 700-706 g: style.getPropertyValue(table-layout) LayoutTests/platform/qt/svg/css/getComputedStyle-basic-expected.txt_sec2
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
701
g: style.getPropertyValue(tab-size) : 8
701
g: style.getPropertyValue(tab-size) : 8
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
702
g: style.getPropertyCSSValue(tab-size) : [object CSSPrimitiveValue]
703
g: style.getPropertyValue(text-align) : -webkit-auto
703
g: style.getPropertyValue(text-align) : start
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
704
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
705
g: style.getPropertyValue(text-decoration) : none
705
g: style.getPropertyValue(text-decoration) : none
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
706
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/win/fast/css/getComputedStyle/computed-style-expected.txt -1 / +1 lines
Lines 84-90 right: auto; LayoutTests/platform/win/fast/css/getComputedStyle/computed-style-expected.txt_sec1
84
speak: normal;
84
speak: normal;
85
table-layout: auto;
85
table-layout: auto;
86
tab-size: 8;
86
tab-size: 8;
87
text-align: -webkit-auto;
87
text-align: start;
88
text-decoration: none;
88
text-decoration: none;
89
text-indent: 0px;
89
text-indent: 0px;
90
text-rendering: auto;
90
text-rendering: auto;
- LayoutTests/platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt -1 / +1 lines
Lines 83-89 Computed style of an element whose paren LayoutTests/platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt_sec1
83
    speak: normal
83
    speak: normal
84
    table-layout: auto
84
    table-layout: auto
85
    tab-size: 8
85
    tab-size: 8
86
    text-align: -webkit-auto
86
    text-align: start
87
    text-decoration: none
87
    text-decoration: none
88
    text-indent: 0px
88
    text-indent: 0px
89
    text-rendering: auto
89
    text-rendering: auto
- LayoutTests/svg/css/getComputedStyle-basic-expected.txt -2 / +2 lines
Lines 164-170 rect: style.getPropertyValue(speak) : no LayoutTests/svg/css/getComputedStyle-basic-expected.txt_sec1
164
rect: style.getPropertyCSSValue(speak) : [object CSSPrimitiveValue]
164
rect: style.getPropertyCSSValue(speak) : [object CSSPrimitiveValue]
165
rect: style.getPropertyValue(table-layout) : auto
165
rect: style.getPropertyValue(table-layout) : auto
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
166
rect: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
167
rect: style.getPropertyValue(text-align) : -webkit-auto
167
rect: style.getPropertyValue(text-align) : start
168
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
168
rect: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
169
rect: style.getPropertyValue(text-decoration) : none
169
rect: style.getPropertyValue(text-decoration) : none
170
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
170
rect: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
Lines 694-700 g: style.getPropertyValue(speak) : norma LayoutTests/svg/css/getComputedStyle-basic-expected.txt_sec2
694
g: style.getPropertyCSSValue(speak) : [object CSSPrimitiveValue]
694
g: style.getPropertyCSSValue(speak) : [object CSSPrimitiveValue]
695
g: style.getPropertyValue(table-layout) : auto
695
g: style.getPropertyValue(table-layout) : auto
696
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
696
g: style.getPropertyCSSValue(table-layout) : [object CSSPrimitiveValue]
697
g: style.getPropertyValue(text-align) : -webkit-auto
697
g: style.getPropertyValue(text-align) : start
698
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
698
g: style.getPropertyCSSValue(text-align) : [object CSSPrimitiveValue]
699
g: style.getPropertyValue(text-decoration) : none
699
g: style.getPropertyValue(text-decoration) : none
700
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
700
g: style.getPropertyCSSValue(text-decoration) : [object CSSPrimitiveValue]
- LayoutTests/platform/chromium-mac-snowleopard/fast/lists/001-expected.png
Line 4 LayoutTests/platform/chromium-mac-snowleopard/fast/lists/001-expected.png_sec1
- LayoutTests/platform/chromium-mac-snowleopard/fast/lists/001-vertical-expected.png +11 lines
Line 2 LayoutTests/platform/chromium-mac-snowleopard/fast/lists/001-vertical-expected.png_sec1
9
6ZgERERkQOEA6ohgTH4AAFDxFEkSzVA4aHaMkvSSgFEer2RI0cyc+ZMQgiccsop1NXV8eKLL/LU
10
MIXvrDDPQ0NDRx++OH7/B1EREREehwDmSkPHnQWrElUHOS2DCA54BJUOuy9qwAifUJjYyONjY1Y
11
eWklHZ5X57nfOc736G+vp5p06axbNkyXn755S6sVEREROTAlUzCOosN5TIrZ8CSsCaRGUOelz0i
12
fGPf8wPf/hDpk2bNnzzEcCvf/1rJk+ezNatW+nq6tIcQIvq6Ohgzpw5vPHGG3+0GzbkpJNO4ne/
13
90YVSYiIiLS/LwHsGAGj2MZi48JHyGQ16oKBvzInpYOIFOmTOHGG2/kwQcf/IPfrV+/npkzZ3Lu
14
GPuuusubrrpJlJKXHbZZRhj2L17N7t27aK3t5dzzz230WWKiIiINJ+Yb8CqKogxUPlIvQr4uiek
15
QasqkrEGKh8pF4FfN0TEsOzIAOjhtAVQKTlTZkyha6uriP+7q233mLq1KlA7pS8+eabY1maiIiI
16
M8PPPAAV155JT/96U958MEHAejp6WHnzp3MmDGjUWWKiIiINDUH1EMCAz5AwBBxVMlSD1B5qA92
17
MesXLmSgwcPjkF1IiIiIq3BFBZjDbYA6lDWSlzpcEVeszZ3QcKoIXQFEGlpHR0dzJkzB4AdO3bw
18
f3BwkHlRraoAyItz1rLtddey+bNm/USuoiIiMj/oWQS1lmsycesnAFLwppEYaAs84xIOSp1qAMi
19
3+SJEm6OLkQ6GgzlJLIbUfbZtoW2qY/AX1JoU8iZxhAtCg89thj7N+/n6eeeoojR46wdu1atmzZ

Return to Bug 79914