| Differences between
and this patch
- a/Source/WebCore/ChangeLog +50 lines
Lines 1-3 a/Source/WebCore/ChangeLog_sec1
1
2019-04-30  Javier Fernandez  <jfernandez@igalia.com>
2
3
        Implement "line-break: anywhere"
4
        https://bugs.webkit.org/show_bug.cgi?id=181169
5
        <rdar://problem/48507088>
6
7
        Reviewed by NOBODY (OOPS!).
8
9
        The CSS WG resolved [1] to add a new value 'anywhere' to the 'line-break'
10
        CSS property in order to allow additional breaking opportunities not
11
        considered in the definition of the 'word-break: break-all'.
12
13
        [1] https://github.com/w3c/csswg-drafts/issues/1171
14
15
        Tests: imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-003.html
16
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-004.html
17
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-005.html
18
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-006.html
19
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-007.html
20
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-008.html
21
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-009.html
22
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-010.html
23
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-011.html
24
               imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-012.html
25
               imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-016.html
26
               imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-017.html
27
               imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-018.html
28
               imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-019.html
29
               imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-021.html
30
               imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-022.html
31
               imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-023.html
32
               imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-024.html
33
34
        * css/CSSPrimitiveValueMappings.h:
35
        (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
36
        (WebCore::CSSPrimitiveValue::operator LineBreak const):
37
        * css/CSSProperties.json:
38
        * css/CSSValueKeywords.in:
39
        * css/parser/CSSParserFastPaths.cpp:
40
        (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
41
        * rendering/BreakLines.h:
42
        (WebCore::nextBreakablePositionBreakCharacter):
43
        (WebCore::isBreakable):
44
        * rendering/RenderText.cpp:
45
        (WebCore::mapLineBreakToIteratorMode):
46
        (WebCore::RenderText::computePreferredLogicalWidths):
47
        * rendering/line/BreakingContext.h:
48
        (WebCore::BreakingContext::handleText):
49
        * rendering/style/RenderStyleConstants.h:
50
1
2019-04-28  Andy Estes  <aestes@apple.com>
51
2019-04-28  Andy Estes  <aestes@apple.com>
2
52
3
        [Apple Pay] Increment the API version from 6 to 7
53
        [Apple Pay] Increment the API version from 6 to 7
- a/Source/WebCore/css/CSSPrimitiveValueMappings.h +5 lines
Lines 1644-1649 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LineBreak e) a/Source/WebCore/css/CSSPrimitiveValueMappings.h_sec1
1644
    case LineBreak::AfterWhiteSpace:
1644
    case LineBreak::AfterWhiteSpace:
1645
        m_value.valueID = CSSValueAfterWhiteSpace;
1645
        m_value.valueID = CSSValueAfterWhiteSpace;
1646
        break;
1646
        break;
1647
    case LineBreak::Anywhere:
1648
        m_value.valueID = CSSValueAnywhere;
1649
        break;
1647
    }
1650
    }
1648
}
1651
}
1649
1652
Lines 1685-1690 template<> inline CSSPrimitiveValue::operator LineBreak() const a/Source/WebCore/css/CSSPrimitiveValueMappings.h_sec2
1685
        return LineBreak::Strict;
1688
        return LineBreak::Strict;
1686
    case CSSValueAfterWhiteSpace:
1689
    case CSSValueAfterWhiteSpace:
1687
        return LineBreak::AfterWhiteSpace;
1690
        return LineBreak::AfterWhiteSpace;
1691
    case CSSValueAnywhere:
1692
        return LineBreak::Anywhere;
1688
    default:
1693
    default:
1689
        break;
1694
        break;
1690
    }
1695
    }
- a/Source/WebCore/css/CSSProperties.json -1 / +2 lines
Lines 5547-5553 a/Source/WebCore/css/CSSProperties.json_sec1
5547
                    "value": "after-white-space",
5547
                    "value": "after-white-space",
5548
                    "status": "non-standard",
5548
                    "status": "non-standard",
5549
                    "comment": "Added in https://trac.webkit.org/changeset/7763"
5549
                    "comment": "Added in https://trac.webkit.org/changeset/7763"
5550
                }
5550
                },
5551
                "anywhere"
5551
            ],
5552
            ],
5552
            "specification": {
5553
            "specification": {
5553
                "category": "css-text",
5554
                "category": "css-text",
- a/Source/WebCore/css/CSSValueKeywords.in +1 lines
Lines 786-791 loose a/Source/WebCore/css/CSSValueKeywords.in_sec1
786
// normal
786
// normal
787
strict
787
strict
788
after-white-space
788
after-white-space
789
anywhere
789
790
790
// -webkit-appearance
791
// -webkit-appearance
791
// The order here must match the order in the ControlPart enum in ThemeTypes.h.
792
// The order here must match the order in the ControlPart enum in ThemeTypes.h.
- a/Source/WebCore/css/parser/CSSParserFastPaths.cpp -2 / +2 lines
Lines 731-738 bool CSSParserFastPaths::isValidKeywordPropertyAndValue(CSSPropertyID propertyId a/Source/WebCore/css/parser/CSSParserFastPaths.cpp_sec1
731
        return valueID == CSSValueAuto || valueID == CSSValueNone || valueID == CSSValueAntialiased || valueID == CSSValueSubpixelAntialiased;
731
        return valueID == CSSValueAuto || valueID == CSSValueNone || valueID == CSSValueAntialiased || valueID == CSSValueSubpixelAntialiased;
732
    case CSSPropertyWebkitLineAlign:
732
    case CSSPropertyWebkitLineAlign:
733
        return valueID == CSSValueNone || valueID == CSSValueEdges;
733
        return valueID == CSSValueNone || valueID == CSSValueEdges;
734
    case CSSPropertyLineBreak: // auto | loose | normal | strict | after-white-space
734
    case CSSPropertyLineBreak: // auto | loose | normal | strict | after-white-space | anywhere
735
        return valueID == CSSValueAuto || valueID == CSSValueLoose || valueID == CSSValueNormal || valueID == CSSValueStrict || valueID == CSSValueAfterWhiteSpace;
735
        return valueID == CSSValueAuto || valueID == CSSValueLoose || valueID == CSSValueNormal || valueID == CSSValueStrict || valueID == CSSValueAfterWhiteSpace || valueID == CSSValueAnywhere;
736
    case CSSPropertyWebkitLineSnap:
736
    case CSSPropertyWebkitLineSnap:
737
        return valueID == CSSValueNone || valueID == CSSValueBaseline || valueID == CSSValueContain;
737
        return valueID == CSSValueNone || valueID == CSSValueBaseline || valueID == CSSValueContain;
738
    case CSSPropertyWebkitMarginAfterCollapse:
738
    case CSSPropertyWebkitMarginAfterCollapse:
- a/Source/WebCore/rendering/BreakLines.h -2 / +13 lines
Lines 187-198 inline unsigned nextBreakablePositionIgnoringNBSPWithoutShortcut(LazyLineBreakIt a/Source/WebCore/rendering/BreakLines.h_sec1
187
    return nextBreakablePosition<UChar, NonBreakingSpaceBehavior::IgnoreNonBreakingSpace, CanUseShortcut::No>(lazyBreakIterator, stringView.characters16(), stringView.length(), startPosition);
187
    return nextBreakablePosition<UChar, NonBreakingSpaceBehavior::IgnoreNonBreakingSpace, CanUseShortcut::No>(lazyBreakIterator, stringView.characters16(), stringView.length(), startPosition);
188
}
188
}
189
189
190
inline bool isBreakable(LazyLineBreakIterator& lazyBreakIterator, unsigned startPosition, Optional<unsigned>& nextBreakable, bool breakNBSP, bool canUseShortcut, bool keepAllWords)
190
inline unsigned nextBreakablePositionBreakCharacter(LazyLineBreakIterator& lazyBreakIterator, unsigned startPosition)
191
{
192
    auto stringView = lazyBreakIterator.stringView();
193
    ASSERT(startPosition <= stringView.length());
194
    NonSharedCharacterBreakIterator iterator(stringView);
195
    Optional<unsigned> next = ubrk_following(iterator, startPosition);
196
    return next.valueOr(stringView.length());
197
}
198
199
inline bool isBreakable(LazyLineBreakIterator& lazyBreakIterator, unsigned startPosition, Optional<unsigned>& nextBreakable, bool breakNBSP, bool canUseShortcut, bool keepAllWords, bool breakAnywhere)
191
{
200
{
192
    if (nextBreakable && nextBreakable.value() >= startPosition)
201
    if (nextBreakable && nextBreakable.value() >= startPosition)
193
        return startPosition == nextBreakable;
202
        return startPosition == nextBreakable;
194
203
195
    if (keepAllWords) {
204
    if (breakAnywhere) {
205
        nextBreakable = nextBreakablePositionBreakCharacter(lazyBreakIterator, startPosition);
206
    } else if (keepAllWords) {
196
        if (breakNBSP)
207
        if (breakNBSP)
197
            nextBreakable = nextBreakablePositionKeepingAllWords(lazyBreakIterator, startPosition);
208
            nextBreakable = nextBreakablePositionKeepingAllWords(lazyBreakIterator, startPosition);
198
        else
209
        else
- a/Source/WebCore/rendering/RenderText.cpp -2 / +4 lines
Lines 704-709 LineBreakIteratorMode mapLineBreakToIteratorMode(LineBreak lineBreak) a/Source/WebCore/rendering/RenderText.cpp_sec1
704
    switch (lineBreak) {
704
    switch (lineBreak) {
705
    case LineBreak::Auto:
705
    case LineBreak::Auto:
706
    case LineBreak::AfterWhiteSpace:
706
    case LineBreak::AfterWhiteSpace:
707
    case LineBreak::Anywhere:
707
        return LineBreakIteratorMode::Default;
708
        return LineBreakIteratorMode::Default;
708
    case LineBreak::Loose:
709
    case LineBreak::Loose:
709
        return LineBreakIteratorMode::Loose;
710
        return LineBreakIteratorMode::Loose;
Lines 828-833 void RenderText::computePreferredLogicalWidths(float leadWidth, HashSet<const Fo a/Source/WebCore/rendering/RenderText.cpp_sec2
828
    // Note the deliberate omission of word-wrap and overflow-wrap from this breakAll check. Those
829
    // Note the deliberate omission of word-wrap and overflow-wrap from this breakAll check. Those
829
    // do not affect minimum preferred sizes. Note that break-word is a non-standard value for
830
    // do not affect minimum preferred sizes. Note that break-word is a non-standard value for
830
    // word-break, but we support it as though it means break-all.
831
    // word-break, but we support it as though it means break-all.
832
    bool breakAnywhere = style.lineBreak() == LineBreak::Anywhere && style.autoWrap();
831
    bool breakAll = (style.wordBreak() == WordBreak::BreakAll || style.wordBreak() == WordBreak::BreakWord) && style.autoWrap();
833
    bool breakAll = (style.wordBreak() == WordBreak::BreakAll || style.wordBreak() == WordBreak::BreakWord) && style.autoWrap();
832
    bool keepAllWords = style.wordBreak() == WordBreak::KeepAll;
834
    bool keepAllWords = style.wordBreak() == WordBreak::KeepAll;
833
    bool canUseLineBreakShortcut = iteratorMode == LineBreakIteratorMode::Default;
835
    bool canUseLineBreakShortcut = iteratorMode == LineBreakIteratorMode::Default;
Lines 876-882 void RenderText::computePreferredLogicalWidths(float leadWidth, HashSet<const Fo a/Source/WebCore/rendering/RenderText.cpp_sec3
876
            continue;
878
            continue;
877
        }
879
        }
878
880
879
        bool hasBreak = breakAll || isBreakable(breakIterator, i, nextBreakable, breakNBSP, canUseLineBreakShortcut, keepAllWords);
881
        bool hasBreak = breakAll || isBreakable(breakIterator, i, nextBreakable, breakNBSP, canUseLineBreakShortcut, keepAllWords, breakAnywhere);
880
        bool betweenWords = true;
882
        bool betweenWords = true;
881
        unsigned j = i;
883
        unsigned j = i;
882
        while (c != '\n' && !isSpaceAccordingToStyle(c, style) && c != '\t' && (c != softHyphen || style.hyphens() == Hyphens::None)) {
884
        while (c != '\n' && !isSpaceAccordingToStyle(c, style) && c != '\t' && (c != softHyphen || style.hyphens() == Hyphens::None)) {
Lines 884-890 void RenderText::computePreferredLogicalWidths(float leadWidth, HashSet<const Fo a/Source/WebCore/rendering/RenderText.cpp_sec4
884
            if (j == length)
886
            if (j == length)
885
                break;
887
                break;
886
            c = string[j];
888
            c = string[j];
887
            if (isBreakable(breakIterator, j, nextBreakable, breakNBSP, canUseLineBreakShortcut, keepAllWords) && characterAt(j - 1) != softHyphen)
889
            if (isBreakable(breakIterator, j, nextBreakable, breakNBSP, canUseLineBreakShortcut, keepAllWords, breakAnywhere) && characterAt(j - 1) != softHyphen)
888
                break;
890
                break;
889
            if (breakAll) {
891
            if (breakAll) {
890
                betweenWords = false;
892
                betweenWords = false;
- a/Source/WebCore/rendering/line/BreakingContext.h -4 / +5 lines
Lines 713-719 inline bool BreakingContext::handleText(WordMeasurements& wordMeasurements, bool a/Source/WebCore/rendering/line/BreakingContext.h_sec1
713
    // which is only possible if the word is the first thing on the line.
713
    // which is only possible if the word is the first thing on the line.
714
    bool breakWords = m_currentStyle->breakWords() && ((m_autoWrap && (!m_width.committedWidth() && !m_width.hasCommittedReplaced())) || m_currWS == WhiteSpace::Pre);
714
    bool breakWords = m_currentStyle->breakWords() && ((m_autoWrap && (!m_width.committedWidth() && !m_width.hasCommittedReplaced())) || m_currWS == WhiteSpace::Pre);
715
    bool midWordBreak = false;
715
    bool midWordBreak = false;
716
    bool breakAll = m_currentStyle->wordBreak() == WordBreak::BreakAll && m_autoWrap;
716
    bool breakAnywhere = m_currentStyle->lineBreak() == LineBreak::Anywhere && m_autoWrap;
717
    bool breakAll = (m_currentStyle->wordBreak() == WordBreak::BreakAll || breakAnywhere) && m_autoWrap;
717
    bool keepAllWords = m_currentStyle->wordBreak() == WordBreak::KeepAll;
718
    bool keepAllWords = m_currentStyle->wordBreak() == WordBreak::KeepAll;
718
    float hyphenWidth = 0;
719
    float hyphenWidth = 0;
719
    auto iteratorMode = mapLineBreakToIteratorMode(m_blockStyle.lineBreak());
720
    auto iteratorMode = mapLineBreakToIteratorMode(m_blockStyle.lineBreak());
Lines 755-761 inline bool BreakingContext::handleText(WordMeasurements& wordMeasurements, bool a/Source/WebCore/rendering/line/BreakingContext.h_sec2
755
        // A single preserved leading white-space doesn't fulfill the 'betweenWords' condition, however it's indeed a
756
        // A single preserved leading white-space doesn't fulfill the 'betweenWords' condition, however it's indeed a
756
        // soft-breaking opportunty so we may want to avoid breaking in the middle of the word.
757
        // soft-breaking opportunty so we may want to avoid breaking in the middle of the word.
757
        if (m_atStart && m_currentCharacterIsSpace && !previousCharacterIsSpace) {
758
        if (m_atStart && m_currentCharacterIsSpace && !previousCharacterIsSpace) {
758
            m_hasFormerOpportunity = canBreakMidWord;
759
            m_hasFormerOpportunity = canBreakMidWord && !breakAnywhere;
759
            breakWords = false;
760
            breakWords = false;
760
            canBreakMidWord = breakAll;
761
            canBreakMidWord = breakAll;
761
        }
762
        }
Lines 790-796 inline bool BreakingContext::handleText(WordMeasurements& wordMeasurements, bool a/Source/WebCore/rendering/line/BreakingContext.h_sec3
790
        }
791
        }
791
792
792
        Optional<unsigned> nextBreakablePosition = m_current.nextBreakablePosition();
793
        Optional<unsigned> nextBreakablePosition = m_current.nextBreakablePosition();
793
        bool betweenWords = c == '\n' || (m_currWS != WhiteSpace::Pre && !m_atStart && isBreakable(m_renderTextInfo.lineBreakIterator, m_current.offset(), nextBreakablePosition, breakNBSP, canUseLineBreakShortcut, keepAllWords)
794
        bool betweenWords = c == '\n' || (m_currWS != WhiteSpace::Pre && !m_atStart && isBreakable(m_renderTextInfo.lineBreakIterator, m_current.offset(), nextBreakablePosition, breakNBSP, canUseLineBreakShortcut, keepAllWords, breakAnywhere)
794
            && (style.hyphens() != Hyphens::None || (m_current.previousInSameNode() != softHyphen)));
795
            && (style.hyphens() != Hyphens::None || (m_current.previousInSameNode() != softHyphen)));
795
        m_current.setNextBreakablePosition(nextBreakablePosition);
796
        m_current.setNextBreakablePosition(nextBreakablePosition);
796
        
797
        
Lines 953-959 inline bool BreakingContext::handleText(WordMeasurements& wordMeasurements, bool a/Source/WebCore/rendering/line/BreakingContext.h_sec4
953
                wrapW = wrapWidthOffset;
954
                wrapW = wrapWidthOffset;
954
                // Auto-wrapping text should not wrap in the middle of a word once it has had an
955
                // Auto-wrapping text should not wrap in the middle of a word once it has had an
955
                // opportunity to break after a word.
956
                // opportunity to break after a word.
956
                m_hasFormerOpportunity = canBreakMidWord;
957
                m_hasFormerOpportunity = canBreakMidWord && !breakAnywhere;
957
                breakWords = false;
958
                breakWords = false;
958
                canBreakMidWord = breakAll;
959
                canBreakMidWord = breakAll;
959
            }
960
            }
- a/Source/WebCore/rendering/style/RenderStyleConstants.h -1 / +2 lines
Lines 533-539 enum class LineBreak : uint8_t { a/Source/WebCore/rendering/style/RenderStyleConstants.h_sec1
533
    Loose,
533
    Loose,
534
    Normal,
534
    Normal,
535
    Strict,
535
    Strict,
536
    AfterWhiteSpace
536
    AfterWhiteSpace,
537
    Anywhere
537
};
538
};
538
539
539
enum class Resize : uint8_t {
540
enum class Resize : uint8_t {
- a/LayoutTests/ChangeLog +19 lines
Lines 1-3 a/LayoutTests/ChangeLog_sec1
1
2019-04-30  Javier Fernandez  <jfernandez@igalia.com>
2
3
        Implement "line-break: anywhere"
4
        https://bugs.webkit.org/show_bug.cgi?id=181169
5
        <rdar://problem/48507088>
6
7
        Reviewed by NOBODY (OOPS!).
8
9
        Some of the new tests added to verify the new 'line-break:
10
        anywhere' feature and its different behavior to what 'word-break:
11
        break-all' may provide, fail due to several bugs present in
12
        current WebKit's trunk.
13
14
        * TestExpectations:
15
          - webkit.org/b/197409
16
          - webkit.org/b/197411
17
          - webkit.org/b/197411
18
          - webkit.org/b/197430
19
 
1
2019-04-29  Javier Fernandez  <jfernandez@igalia.com>
20
2019-04-29  Javier Fernandez  <jfernandez@igalia.com>
2
21
3
        Update the CSS Text WPT test suite
22
        Update the CSS Text WPT test suite
- a/LayoutTests/imported/w3c/ChangeLog +51 lines
Lines 1-3 a/LayoutTests/imported/w3c/ChangeLog_sec1
1
2019-04-30  Javier Fernandez  <jfernandez@igalia.com>
2
3
        Implement "line-break: anywhere"
4
        https://bugs.webkit.org/show_bug.cgi?id=181169
5
        <rdar://problem/48507088>
6
7
        Reviewed by NOBODY (OOPS!).
8
9
        New tests to verify the new line-break: anywhere feature and how
10
        it behaves different to 'word-break: break-all'.
11
12
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html:
13
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-002.html:
14
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-003-expected.html: Added.
15
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-003.html: Added.
16
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-004-expected.html: Added.
17
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-004.html: Added.
18
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-005-expected.html: Added.
19
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-005.html: Added.
20
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-006-expected.html: Added.
21
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-006.html: Added.
22
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-007-expected.html: Added.
23
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-007.html: Added.
24
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-008-expected.html: Added.
25
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-008.html: Added.
26
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-009-expected.html: Added.
27
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-009.html: Added.
28
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-010-expected.html: Added.
29
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-010.html: Added.
30
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-011-expected.html: Added.
31
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-011.html: Added.
32
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-012-expected.html: Added.
33
        * web-platform-tests/css/css-text/line-break/line-break-anywhere-012.html: Added.
34
        * web-platform-tests/css/css-text/parsing/line-break-valid-expected.txt:
35
        * web-platform-tests/css/css-text/word-break/word-break-break-all-016-expected.html: Added.
36
        * web-platform-tests/css/css-text/word-break/word-break-break-all-016.html: Added.
37
        * web-platform-tests/css/css-text/word-break/word-break-break-all-017-expected.html: Added.
38
        * web-platform-tests/css/css-text/word-break/word-break-break-all-017.html: Added.
39
        * web-platform-tests/css/css-text/word-break/word-break-break-all-018-expected.html: Added.
40
        * web-platform-tests/css/css-text/word-break/word-break-break-all-018.html: Added.
41
        * web-platform-tests/css/css-text/word-break/word-break-break-all-019-expected.html: Added.
42
        * web-platform-tests/css/css-text/word-break/word-break-break-all-019.html: Added.
43
        * web-platform-tests/css/css-text/word-break/word-break-break-all-021-expected.html: Added.
44
        * web-platform-tests/css/css-text/word-break/word-break-break-all-021.html: Added.
45
        * web-platform-tests/css/css-text/word-break/word-break-break-all-022-expected.html: Added.
46
        * web-platform-tests/css/css-text/word-break/word-break-break-all-022.html: Added.
47
        * web-platform-tests/css/css-text/word-break/word-break-break-all-023-expected.html: Added.
48
        * web-platform-tests/css/css-text/word-break/word-break-break-all-023.html: Added.
49
        * web-platform-tests/css/css-text/word-break/word-break-break-all-024-expected.html: Added.
50
        * web-platform-tests/css/css-text/word-break/word-break-break-all-024.html: Added.
51
1
2019-04-29  Javier Fernandez  <jfernandez@igalia.com>
52
2019-04-29  Javier Fernandez  <jfernandez@igalia.com>
2
53
3
        Update the CSS Text WPT test suite
54
        Update the CSS Text WPT test suite
- a/LayoutTests/TestExpectations -2 / +7 lines
Lines 1801-1808 http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-i a/LayoutTests/TestExpectations_sec1
1801
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/hanging-punctuation/hanging-punctuation-first-001.xht [ ImageOnlyFailure ]
1801
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/hanging-punctuation/hanging-punctuation-first-001.xht [ ImageOnlyFailure ]
1802
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/hanging-punctuation/hanging-punctuation-force-end-001.xht [ ImageOnlyFailure ]
1802
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/hanging-punctuation/hanging-punctuation-force-end-001.xht [ ImageOnlyFailure ]
1803
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/hanging-punctuation/hanging-punctuation-last-001.xht [ ImageOnlyFailure ]
1803
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/hanging-punctuation/hanging-punctuation-last-001.xht [ ImageOnlyFailure ]
1804
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html [ ImageOnlyFailure ]
1805
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-002.html [ ImageOnlyFailure ]
1806
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-strict-011.xht [ ImageOnlyFailure ]
1804
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-strict-011.xht [ ImageOnlyFailure ]
1807
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-strict-012.xht [ ImageOnlyFailure ]
1805
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-strict-012.xht [ ImageOnlyFailure ]
1808
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/line-breaking/line-breaking-002.html [ ImageOnlyFailure ]
1806
webkit.org/b/183258 imported/w3c/web-platform-tests/css/css-text/line-breaking/line-breaking-002.html [ ImageOnlyFailure ]
Lines 1973-1978 webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/word-break/word a/LayoutTests/TestExpectations_sec2
1973
1971
1974
webkit.org/b/197277 imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-008.html [ ImageOnlyFailure ]
1972
webkit.org/b/197277 imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-008.html [ ImageOnlyFailure ]
1975
1973
1974
webkit.org/b/197409 imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-016.html [ ImageOnlyFailure ]
1975
webkit.org/b/197409 imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-019.html [ ImageOnlyFailure ]
1976
webkit.org/b/197411 imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-018.html [ ImageOnlyFailure ]
1977
webkit.org/b/197411 imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-021.html [ ImageOnlyFailure ]
1978
webkit.org/b/197411 imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-022.html [ ImageOnlyFailure ]
1979
webkit.org/b/197430 imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-023.html [ ImageOnlyFailure ]
1980
webkit.org/b/197430 imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-024.html [ ImageOnlyFailure ]
1976
1981
1977
########################################
1982
########################################
1978
### START OF display: contents failures
1983
### START OF display: contents failures
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html -2 / +3 lines
Lines 1-8 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html_sec1
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html lang=en>
2
<html lang=en>
3
<meta charset="utf-8">
3
<meta charset="utf-8">
4
<title>CSS Text Test: line-break: anywhere</title>
4
<title>CSS Text Test: line-break: anywhere</title>
5
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
5
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
6
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
7
<link rel="match" href="reference/line-break-anywhere-001-ref.html">
8
<link rel="match" href="reference/line-break-anywhere-001-ref.html">
8
<meta name="flags" content="">
9
<meta name="flags" content="">
Lines 28-32 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html_sec2
28
29
29
<p>Test passes if there is a green rectangle below and no red.</p>
30
<p>Test passes if there is a green rectangle below and no red.</p>
30
<div id=green></div>
31
<div id=green></div>
31
<!--  with line breaks everywhere, none of the following characters should stick out from under the green div  -->
32
<!-- with line breaks everywhere, none of the following characters should stick out from under the green div -->
32
<div id=test>aa-a.a)a,a)a&nbsp;a&#xfeff;a&#x2060;a&#x200d;a・a</div>
33
<div id=test>aa-a.a)a,a)a&nbsp;a&#xfeff;a&#x2060;a&#x200d;a・a</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-002.html -4 / +5 lines
Lines 1-8 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-002.html_sec1
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html lang=en>
2
<html lang=en>
3
<meta charset="utf-8">
3
<meta charset="utf-8">
4
<title>CSS Text Test: line-break: anywhere</title>
4
<title>CSS Text Test: line-break: anywhere</title>
5
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
5
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
6
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
7
<link rel="match" href="reference/line-break-anywhere-001-ref.html">
8
<link rel="match" href="reference/line-break-anywhere-001-ref.html">
8
<meta name="flags" content="">
9
<meta name="flags" content="">
Lines 21-32 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-002.html_sec2
21
  color: red;
22
  color: red;
22
  font-family: monospace;
23
  font-family: monospace;
23
  line-break: anywhere;
24
  line-break: anywhere;
24
  -webkit-hyphens: auto;
25
  hyphens: auto;
25
}
26
}
26
</style>
27
</style>
27
28
28
<p>Test passes if there is a green rectangle below and no red.</p>
29
<p>Test passes if there is a green rectangle below and no red.</p>
29
<div id=green></div>
30
<div id=green></div>
30
<!--  Hyphenation, if it occurs, will produce a hyphen that sticks out from under the green rectangle.
31
<!-- Hyphenation, if it occurs, will produce a hyphen that sticks out from under the green rectangle.
31
     Also, if the words fails to be wrapped between all letters, letters will also stick out from under the green rectangle  -->
32
     Also, if the words fails to be wrapped between all letters, letters will also stick out from under the green rectangle -->
32
<div id=test>no hyphenation</div>
33
<div id=test>no hyphenation</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-003-expected.html +18 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-003-expected.html_sec1
1
<!DOCTYPE html>
2
<html  lang="en" >
3
<head>
4
<meta charset="utf-8">
5
<title>word-break: break-all, latin</title>
6
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
7
<style type='text/css'>
8
.test { word-break: break-all; }
9
/* the CSS below is not part of the test */
10
.test, .ref { border: 1px solid orange;  margin: 20px;  padding: 10px; width: 390px; font: 36px/1 sans-serif; }
11
</style>
12
</head>
13
<body>
14
<div id='instructions'>Test passes if the two orange boxes are the same.</div>
15
<div class="ref"><span>Latin latin latin lati<br/>n</span></div>
16
<div class="ref"><span>Latin latin latin lati<br/>n</span></div>
17
</body>
18
</html>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-003.html +26 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-003.html_sec1
1
<!DOCTYPE html>
2
<html lang=en>
3
<meta charset="utf-8">
4
<title>CSS Text Test: line-break: anywhere</title>
5
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
6
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
8
<link rel="match" href="reference/line-break-anywhere-003-ref.html">
9
<meta name="flags" content="">
10
<meta name="assert" content="line-break: anywhere means lines may break between any two typographic letter units.">
11
<style type='text/css'>
12
.test { line-break: anywhere; }
13
/* the CSS below is not part of the test */
14
.test, .ref { border: 1px solid orange;  margin: 20px;  padding: 10px; width: 390px; font: 36px/1 sans-serif; }
15
</style>
16
</head>
17
<body>
18
<div id='instructions'>Test passes if the two orange boxes are the same.</div>
19
<div class="test"><div id="testdiv"><span id="testspan">Latin latin latin latin</span></div></div>
20
<div class="ref"><span>Latin latin latin lati<br/>n</span></div>
21
<script>
22
var sentenceWidth = document.getElementById('testspan').offsetWidth
23
document.getElementById('testdiv').style.width = String(sentenceWidth - 5)+'px'
24
</script>
25
</body>
26
</html>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-004-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-004-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-004.html +39 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-004.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: line-break: anywhere</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
6
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-keep-all">
9
<meta name="flags" content="">
10
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
11
<meta name="assert" content="The second word is broken, despite the word-break: keep-all, because line-break: anywhere disregarde any prohibition against line breaks mandate by word-break.">
12
<style>
13
div {
14
  position: relative;
15
  font-size: 25px;
16
  font-family: Ahem;
17
  line-height: 1em;
18
}
19
.red {
20
  position: absolute;
21
  width: 100px;
22
  height: 100px;
23
  background: green;
24
  color: red;
25
  z-index: -1;
26
}
27
.test {
28
  color: green;
29
  width: 4ch;
30
  line-height: 1;
31
  word-break: keep-all;
32
  line-break: anywhere;
33
}
34
</style>
35
<body>
36
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
37
  <div class="red">XX X<br>XX</div>
38
  <div class="test">XX XXX</div>
39
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-005-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-005-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-005.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-005.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: overflow-wrap:break-word + white-space:break-spaces</title>
4
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
5
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://www.w3.org/TR/css-text-3/#white-space-property">
6
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
9
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
10
<meta name="assert" content="line-break: anywhere + break-spaces do allow a break
11
between the last character of a word and the first space of a sequence of preserved
12
spaces even if there is a previous breaking opportunity">
13
<style>
14
div {
15
  font: 25px/1 Ahem;
16
  width: 4ch;
17
  line-height: 1;
18
}
19
.red {
20
  position: absolute;
21
  white-space: pre;
22
  color: red;
23
  background: green;
24
  z-index: -1;
25
}
26
.test {
27
  white-space: break-spaces;
28
  line-break: anywhere;
29
  color: green;
30
}
31
</style>
32
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
<div class="red">X XX<br> XX <br>X XX<br> X</div>
34
<div class="test">X XX XX X XX X</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-006-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-006-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-006.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-006.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: line-break: anywhere</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
7
<meta name="flags" content="">
8
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
9
<meta name="assert" content="line-break: anywhere' disgregard the prohibition against line breaks introduced by characters with the GL character class">
10
<style>
11
div {
12
  position: relative;
13
  font-size: 25px;
14
  font-family: Ahem;
15
  line-height: 1em;
16
}
17
.red {
18
  position: absolute;
19
  width: 100px;
20
  height: 100px;
21
  background: green;
22
  color: red;
23
  z-index: -1;
24
}
25
.test {
26
  color: green;
27
  width: 4ch;
28
  line-break: anywhere;
29
}
30
</style>
31
<body>
32
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
  <div class="red">XXXX<br>&nbsp;XXX<br>X X <br>X</div>
34
  <div class="test">XXXX&nbsp;XXXX X X</div>
35
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-007-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-007-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-007.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-007.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
7
<meta name="flags" content="">
8
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
9
<meta name="assert" content="line-break:anywhere allows breaking opportunities around punctuaction characters.">
10
<style>
11
div {
12
  position: relative;
13
  font-size: 20px;
14
  font-family: Ahem;
15
  line-height: 1em;
16
}
17
.red {
18
  position: absolute;
19
  width: 100px;
20
  height: 100px;
21
  background: green;
22
  color: red;
23
  z-index: -1;
24
}
25
.test {
26
  color: green;
27
  width: 5ch;
28
  line-break: anywhere;
29
}
30
</style>
31
<body>
32
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
  <div class="red">X XXX<br>XX</div>
34
  <div class="test">X XX...</div>
35
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-008-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-008-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-008.html +38 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-008.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://www.w3.org/TR/css-text-3/#white-space-property">
6
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
9
<meta name="flags" content="">
10
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
11
<meta name="assert" content="break-all breaks between the last two letters, because breaking opportunities between the punctuaction characters are forbidden.">
12
<style>
13
div {
14
  position: relative;
15
  font-size: 20px;
16
  font-family: Ahem;
17
  line-height: 1em;
18
}
19
.red {
20
  position: absolute;
21
  width: 100px;
22
  height: 100px;
23
  background: green;
24
  color: red;
25
  z-index: -1;
26
}
27
.test {
28
  color: green;
29
  width: 5ch;
30
  white-space: pre-wrap;
31
  line-break: anywhere;
32
}
33
</style>
34
<body>
35
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
36
  <div class="red">X XXX<br>XX</div>
37
  <div class="test">X XX...</div>
38
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-009-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-009-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-009.html +38 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-009.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: line-break: anywhere</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://www.w3.org/TR/css-text-3/#white-space-property">
6
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
9
<meta name="flags" content="">
10
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
11
<meta name="assert" content="line-break: anywhere' disgregard the prohibition against line breaks introduced by characters with the GL character class">
12
<style>
13
div {
14
  position: relative;
15
  font-size: 25px;
16
  font-family: Ahem;
17
  line-height: 1em;
18
}
19
.red {
20
  position: absolute;
21
  width: 100px;
22
  height: 100px;
23
  background: green;
24
  color: red;
25
  z-index: -1;
26
}
27
.test {
28
  color: green;
29
  width: 4ch;
30
  white-space: break-spaces;
31
  line-break: anywhere;
32
}
33
</style>
34
<body>
35
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
36
  <div class="red">XXXX<br>&nbsp;XXX<br>X X <br>X</div>
37
  <div class="test">XXXX&nbsp;XXXX X X</div>
38
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-010-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-010-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-010.html +38 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-010.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: line-break: anywhere</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://www.w3.org/TR/css-text-3/#white-space-property">
6
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
9
<meta name="flags" content="">
10
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
11
<meta name="assert" content="line-break: anywhere' disgregard the prohibition against line breaks introduced by characters with the GL character class">
12
<style>
13
div {
14
  position: relative;
15
  font-size: 25px;
16
  font-family: Ahem;
17
  line-height: 1em;
18
}
19
.red {
20
  position: absolute;
21
  width: 100px;
22
  height: 100px;
23
  background: green;
24
  color: red;
25
  z-index: -1;
26
}
27
.test {
28
  color: green;
29
  width: 4ch;
30
  white-space: break-spaces;
31
  line-break: anywhere;
32
}
33
</style>
34
<body>
35
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
36
  <div class="red">XXXX<br>&nbsp;XXX<br>X X <br>X</div>
37
  <div class="test">XXXX&nbsp;XXXX X X</div>
38
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-011-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-011-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-011.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-011.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
7
<meta name="flags" content="">
8
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
9
<meta name="assert" content="line-break:anywhere allows breaking opportunities around slash characters.">
10
<style>
11
div {
12
  position: relative;
13
  font-size: 20px;
14
  font-family: Ahem;
15
  line-height: 1em;
16
}
17
.red {
18
  position: absolute;
19
  width: 100px;
20
  height: 100px;
21
  background: green;
22
  color: red;
23
  z-index: -1;
24
}
25
.test {
26
  color: green;
27
  width: 5ch;
28
  line-break: anywhere;
29
}
30
</style>
31
<body>
32
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
  <div class="red">X XXX<br>XX</div>
34
  <div class="test">X XX///</div>
35
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-012-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-012-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-012.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-012.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
7
<meta name="flags" content="">
8
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
9
<meta name="assert" content="line-break:anywhere allows breaking opportunities around slash characters.">
10
<style>
11
div {
12
  position: relative;
13
  font-size: 20px;
14
  font-family: Ahem;
15
  line-height: 1em;
16
}
17
.red {
18
  position: absolute;
19
  width: 100px;
20
  height: 100px;
21
  background: green;
22
  color: red;
23
  z-index: -1;
24
}
25
.test {
26
  color: green;
27
  width: 5ch;
28
  line-break: anywhere;
29
}
30
</style>
31
<body>
32
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
  <div class="red">X XXX<br>XX</div>
34
  <div class="test">X XX\\\</div>
35
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/line-break-valid-expected.txt -1 / +1 lines
Lines 3-7 PASS e.style['line-break'] = "auto" should set the property value a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/line-break-valid-expected.txt_sec1
3
PASS e.style['line-break'] = "loose" should set the property value 
3
PASS e.style['line-break'] = "loose" should set the property value 
4
PASS e.style['line-break'] = "normal" should set the property value 
4
PASS e.style['line-break'] = "normal" should set the property value 
5
PASS e.style['line-break'] = "strict" should set the property value 
5
PASS e.style['line-break'] = "strict" should set the property value 
6
FAIL e.style['line-break'] = "anywhere" should set the property value assert_not_equals: property should be set got disallowed value ""
6
PASS e.style['line-break'] = "anywhere" should set the property value 
7
7
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-016-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-016-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-016.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-016.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
7
<meta name="flags" content="">
8
<link rel="match" href="reference/word-break-break-all-010-ref.html">
9
<meta name="assert" content="break-all breaks between the last two letters, because breaking opportunities between the punctuaction characters are forbidden.">
10
<style>
11
div {
12
  position: relative;
13
  font-size: 20px;
14
  font-family: Ahem;
15
  line-height: 1em;
16
}
17
.red {
18
  position: absolute;
19
  width: 100px;
20
  height: 100px;
21
  background: green;
22
  color: red;
23
  z-index: -1;
24
}
25
.test {
26
  color: green;
27
  width: 8ch;
28
  word-break: break-all;
29
}
30
</style>
31
<body>
32
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
  <div class="red">XX XX<br>XXXX</div>
34
  <div class="test">XX XXX...</div>
35
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-017-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-017-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-017.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-017.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://drafts.csswg.org/css-text-3/#white-space-property">
6
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
9
<meta name="flags" content="ahem">
10
<link rel="match" href="reference/word-break-break-all-010-ref.html">
11
<meta name="assert" content="break-all + break-spaces do not allow a break
12
between the last character of a word and the first space of a sequence of preserved spaces
13
if there are other wrapping opportunities earlier in the line.">
14
<style>
15
div {
16
  font: 25px/1 Ahem;
17
  width: 4ch;
18
}
19
.red {
20
  position: absolute;
21
  white-space: pre;
22
  color: red;
23
  background: green;
24
  z-index: -1;
25
}
26
.test {
27
  white-space: break-spaces;
28
  word-break: break-all;
29
  color: green;
30
}
31
</style>
32
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
<div class="red">X<br>XX X<br>X X <br>XX X</div>
34
<div class="test">X XX XX X XX X</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-018-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-018-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-018.html +34 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-018.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
7
<link rel="match" href="reference/word-break-break-all-010-ref.html">
8
<meta name="assert" content="word-break: break-all' must honors line breaking behavior introduced by characters with the GL character class">
9
<style>
10
div {
11
  position: relative;
12
  font-size: 25px;
13
  font-family: Ahem;
14
  line-height: 1em;
15
}
16
.red {
17
  position: absolute;
18
  width: 100px;
19
  height: 100px;
20
  background: green;
21
  color: red;
22
  z-index: -1;
23
}
24
.test {
25
  color: green;
26
  width: 4ch;
27
  word-break: break-all;
28
}
29
</style>
30
<body>
31
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
32
  <div class="red">XXX <br>X XX<br>XX X<br>X</div>
33
  <div class="test">XXXX&nbsp;XXXX X X</div>
34
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-019-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-019-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-019.html +37 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-019.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://www.w3.org/TR/css-text-3/#white-space-property">
6
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
9
<link rel="match" href="reference/word-break-break-all-010-ref.html">
10
<meta name="assert" content="break-all breaks between the last two letters, because breaking opportunities between the punctuaction characters are forbidden.">
11
<style>
12
div {
13
  position: relative;
14
  font-size: 20px;
15
  font-family: Ahem;
16
  line-height: 1em;
17
}
18
.red {
19
  position: absolute;
20
  width: 100px;
21
  height: 100px;
22
  background: green;
23
  color: red;
24
  z-index: -1;
25
}
26
.test {
27
  color: green;
28
  width: 8ch;
29
  white-space: pre-wrap;
30
  word-break: break-all;
31
}
32
</style>
33
<body>
34
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
35
  <div class="red">XX XX<br>XXXX</div>
36
  <div class="test">XX XXX...</div>
37
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-021-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-021-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-021.html +37 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-021.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://www.w3.org/TR/css-text-3/#white-space-property">
6
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
9
<link rel="match" href="reference/word-break-break-all-010-ref.html">
10
<meta name="assert" content="word-break: break-all' must honor line breaking behavior introduced by characters with the GL character class">
11
<style>
12
div {
13
  position: relative;
14
  font-size: 25px;
15
  font-family: Ahem;
16
  line-height: 1em;
17
}
18
.red {
19
  position: absolute;
20
  width: 100px;
21
  height: 100px;
22
  background: green;
23
  color: red;
24
  z-index: -1;
25
}
26
.test {
27
  color: green;
28
  width: 4ch;
29
  white-space: pre-wrap;
30
  word-break: break-all;
31
}
32
</style>
33
<body>
34
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
35
  <div class="red">XXX <br>X XX<br>XX X<br>X</div>
36
  <div class="test">XXXX&nbsp;XXXX X X</div>
37
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-022-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-022-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-022.html +37 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-022.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://www.w3.org/TR/css-text-3/#white-space-property">
6
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
7
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
8
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
9
<link rel="match" href="reference/word-break-break-all-010-ref.html">
10
<meta name="assert" content="word-break: break-all' must honor line breaking behavior introduced by characters with the GL character class">
11
<style>
12
div {
13
  position: relative;
14
  font-size: 25px;
15
  font-family: Ahem;
16
  line-height: 1em;
17
}
18
.red {
19
  position: absolute;
20
  width: 100px;
21
  height: 100px;
22
  background: green;
23
  color: red;
24
  z-index: -1;
25
}
26
.test {
27
  color: green;
28
  width: 4ch;
29
  white-space: break-spaces;
30
  word-break: break-all;
31
}
32
</style>
33
<body>
34
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
35
  <div class="red">XXX <br>X XX<br>XX  <br>X X</div>
36
  <div class="test">XXXX&nbsp;XXXX X X</div>
37
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-023-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-023-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-023.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-023.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
7
<meta name="flags" content="">
8
<link rel="match" href="reference/word-break-break-all-010-ref.html">
9
<meta name="assert" content="break-all breaks between the last two letters, because breaking opportunities between the backslashes characters are forbidden.">
10
<style>
11
div {
12
  position: relative;
13
  font-size: 20px;
14
  font-family: Ahem;
15
  line-height: 1em;
16
}
17
.red {
18
  position: absolute;
19
  width: 100px;
20
  height: 100px;
21
  background: green;
22
  color: red;
23
  z-index: -1;
24
}
25
.test {
26
  color: green;
27
  width: 8ch;
28
  word-break: break-all;
29
}
30
</style>
31
<body>
32
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
  <div class="red">XX XXX<br>XXXX</div>
34
  <div class="test">XX XXX\\\</div>
35
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-024-expected.html +16 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-024-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Reference File</title>
4
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5
<style>
6
div {
7
  position: relative;
8
  width: 100px;
9
  height: 100px;
10
  background: green;
11
}
12
</style>
13
<body>
14
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
15
  <div></div>
16
</body>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-024.html +35 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-024.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Text Test: word-break: break-all</title>
4
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
5
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
6
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
7
<meta name="flags" content="">
8
<link rel="match" href="reference/word-break-break-all-010-ref.html">
9
<meta name="assert" content="break-all breaks between the last two letters, because breaking opportunities between the slashes characters are forbidden.">
10
<style>
11
div {
12
  position: relative;
13
  font-size: 20px;
14
  font-family: Ahem;
15
  line-height: 1em;
16
}
17
.red {
18
  position: absolute;
19
  width: 100px;
20
  height: 100px;
21
  background: green;
22
  color: red;
23
  z-index: -1;
24
}
25
.test {
26
  color: green;
27
  width: 8ch;
28
  word-break: break-all;
29
}
30
</style>
31
<body>
32
  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
33
  <div class="red">XX XX<br>XXXX</div>
34
  <div class="test">XX XXX///</div>
35
</body>

Return to Bug 181169