forked from qtwebkit/qtwebkit
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unprefix -webkit-hyphens/-webkit-hyphenate-character CSS properties
https://bugs.webkit.org/show_bug.cgi?id=243670 Reviewed by Tim Nguyen. This change supports unprefixed hyphenate-character, not only -webkit-hyphenate-character. According to the csswg discussion, w3c/csswg-drafts#6887, hyphenate-character css property is stable enough to ship. * LayoutTests/TestExpectations: * LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt: * LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * LayoutTests/fast/css/getComputedStyle/resources/property-names.js: * LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-001-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-001.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-002-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-002.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-003-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-003.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-004-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-004.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-005-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-005.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-limit-chars-001-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-limit-chars-001.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-auto-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-auto-002-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-auto-002.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-auto-003-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-auto-003.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-auto-and-contenteditable-crash.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-auto-control-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-auto-control.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-character-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-character.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-manual-010.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-manual-011.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-manual-012.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-manual-013.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-manual-inline-010.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-manual-inline-011.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-manual-inline-012.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-011.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-012-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-012.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-013-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-013.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-014-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-014.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-015-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-none-015.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-out-of-flow-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-out-of-flow-002.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-punctuation-001-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-punctuation-001.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-shaping-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-shaping-002.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-span-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-span-002.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-vertical-001-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-vertical-001.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-vertical-002-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-vertical-002.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-vertical-003-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-vertical-003.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-vertical-004-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphens-vertical-004.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text/hyphens/shy-styling-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/inheritance-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/hyphenate-character-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/hyphenate-character-valid-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/hyphenate-limit-chars-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/hyphens-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/hyphens-valid-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/hyphens-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt: * LayoutTests/platform/gtk/TestExpectations: * LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt: * LayoutTests/platform/wpe/TestExpectations: * LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * LayoutTests/svg/css/getComputedStyle-basic-expected.txt: * Source/WebCore/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): * Source/WebCore/editing/cocoa/HTMLConverter.mm: (HTMLConverter::computedAttributesForElement): * Source/WebCore/style/PropertyAllowlist.cpp: (WebCore::Style::isValidMarkerStyleProperty): Canonical link: https://commits.webkit.org/264628@main
- Loading branch information
1 parent
b9b7986
commit 40e9063
Showing
87 changed files
with
986 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...mported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-001-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text reference: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<style> | ||
div { | ||
font: 16px monospace; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>. | ||
|
||
<div lang="en"> | ||
im<br>ple<br>men<br>ta<br>tion<br><br> | ||
ini<br>tial<br>iza<br>tion<br><br> | ||
real<br>iza<br>tion<br><br> | ||
hy<br>phen<br>ation | ||
</div> |
24 changes: 24 additions & 0 deletions
24
...utTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-001.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text test: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character"> | ||
<link rel="match" href="reference/hyphenate-character-001-ref.html"> | ||
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break"> | ||
<style> | ||
div { | ||
font: 16px monospace; | ||
width: 4.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */ | ||
hyphens: manual; | ||
hyphenate-character: ""; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>. | ||
|
||
<div lang="en"> | ||
im­ple­men­ta­tion<br><br> | ||
ini­tial­iza­tion<br><br> | ||
re­al­iza­tion<br><br> | ||
hy­phen­ation | ||
</div> |
18 changes: 18 additions & 0 deletions
18
...mported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-002-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text reference: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<style> | ||
div { | ||
font: 16px monospace; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>. | ||
|
||
<div lang="en"> | ||
im<br>ple<br>men<br>ta<br>tion<br><br> | ||
ini<br>tial<br>iza<br>tion<br><br> | ||
real<br>iza<br>tion<br><br> | ||
hy<br>phen<br>ation | ||
</div> |
25 changes: 25 additions & 0 deletions
25
...utTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-002.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text test: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character"> | ||
<link rel="match" href="reference/hyphenate-character-001-ref.html"> | ||
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break"> | ||
<style> | ||
div { | ||
font: 16px monospace; | ||
width: 4.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */ | ||
hyphens: auto; /* assuming the usual en_US patterns, should generate the same breaks as the manual | ||
soft hyphens in test 001. */ | ||
hyphenate-character: ""; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>. | ||
|
||
<div lang="en"> | ||
implementation<br><br> | ||
initialization<br><br> | ||
realization<br><br> | ||
hyphenation | ||
</div> |
18 changes: 18 additions & 0 deletions
18
...mported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-003-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text reference: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<style> | ||
div { | ||
font: 16px monospace; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the words below are hyphenated <b>using a bullet (•) character</b>. | ||
|
||
<div lang="en"> | ||
im•<br>ple•<br>men•<br>ta•<br>tion<br><br> | ||
ini•<br>tial•<br>iza•<br>tion<br><br> | ||
real•<br>iza•<br>tion<br><br> | ||
hy•<br>phen•<br>ation | ||
</div> |
24 changes: 24 additions & 0 deletions
24
...utTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-003.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text test: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character"> | ||
<link rel="match" href="reference/hyphenate-character-003-ref.html"> | ||
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break"> | ||
<style> | ||
div { | ||
font: 16px monospace; | ||
width: 5.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */ | ||
hyphens: manual; | ||
hyphenate-character: "\2022"; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the words below are hyphenated <b>using a bullet (•) character</b>. | ||
|
||
<div lang="en"> | ||
im­ple­men­ta­tion<br><br> | ||
ini­tial­iza­tion<br><br> | ||
re­al­iza­tion<br><br> | ||
hy­phen­ation | ||
</div> |
18 changes: 18 additions & 0 deletions
18
...mported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-004-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text reference: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<style> | ||
div { | ||
font: 16px monospace; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the words below are hyphenated <b>using the string "/-/"</b>. | ||
|
||
<div lang="en"> | ||
im/-/<br>ple/-/<br>men/-/<br>tation<br><br> | ||
ini/-/<br>tial/-/<br>iza/-/<br>tion<br><br> | ||
re/-/<br>al/-/<br>iza/-/<br>tion<br><br> | ||
hy/-/<br>phen/-/<br>ation | ||
</div> |
24 changes: 24 additions & 0 deletions
24
...utTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-004.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text test: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character"> | ||
<link rel="match" href="reference/hyphenate-character-004-ref.html"> | ||
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break"> | ||
<style> | ||
div { | ||
font: 16px monospace; | ||
width: 6.5ch; /* wide enough that the last potential break in "im-ple-men-ta-tion" should NOT be used */ | ||
hyphens: manual; | ||
hyphenate-character: "/-/"; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the words below are hyphenated <b>using the string "/-/"</b>. | ||
|
||
<div lang="en"> | ||
im­ple­men­ta­tion<br><br> | ||
ini­tial­iza­tion<br><br> | ||
re­al­iza­tion<br><br> | ||
hy­phen­ation | ||
</div> |
19 changes: 19 additions & 0 deletions
19
...mported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-005-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text reference: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<style> | ||
div { | ||
font: 32px sans-serif; | ||
margin-left: 10ch; | ||
width: 3ch; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the word below is hyphenated | ||
using a right-to-left <i>space+kashida</i> sequence "<span dir=rtl> ـ</span>", | ||
and shaping is <i>not</i> interrupted. | ||
|
||
<div dir=rtl lang=ug> | ||
قىل‍ ـ<br>‍مىغانلىقى | ||
</div> |
23 changes: 23 additions & 0 deletions
23
...utTests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-character-005.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text test: hyphenate-character</title> | ||
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character"> | ||
<link rel="match" href="reference/hyphenate-character-005-ref.html"> | ||
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break"> | ||
<style> | ||
div { | ||
font: 32px sans-serif; | ||
margin-left: 10ch; | ||
width: 3ch; | ||
hyphenate-character: "\00a0\0640"; | ||
} | ||
</style> | ||
|
||
<p>Test passes if the word below is hyphenated | ||
using a right-to-left <i>space+kashida</i> sequence "<span dir=rtl> ـ</span>", | ||
and shaping is <i>not</i> interrupted. | ||
|
||
<div dir=rtl lang=ug> | ||
قىلمىغانلىقى | ||
</div> |
26 changes: 26 additions & 0 deletions
26
...orted/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-limit-chars-001-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<title>CSS Text: 'hyphens: auto' with a valid 'lang' attribute specification</title> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-3/#hyphenation"> | ||
<link rel="author" href="mailto:[email protected]"> | ||
<style> | ||
#container > div { | ||
border: black solid 2px; | ||
font-family: monospace; | ||
font-size: 20px; | ||
line-height: 1; | ||
width: 1ch; | ||
} | ||
</style> | ||
<body> | ||
<div lang="en-us" id="container"> | ||
<div>ex-<br>am-<br>ple</div> | ||
<div>example</div> | ||
<div>ex-<br>am-<br>ple</div> | ||
<div>exam-<br>ple</div> | ||
<div>exam-<br>ple</div> | ||
<div>example</div> | ||
<div>ex-<br>am-<br>ple</div> | ||
<div>ex-<br>ample</div> | ||
<div>example</div> | ||
</div> | ||
</body> |
29 changes: 29 additions & 0 deletions
29
...Tests/imported/w3c/web-platform-tests/css/css-text/hyphens/hyphenate-limit-chars-001.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<title>CSS Text: 'hyphens: auto' with a valid 'lang' attribute specification</title> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-3/#hyphenation"> | ||
<link rel="match" href="reference/hyphenate-limit-chars-001-ref.html"> | ||
<link rel="author" href="mailto:[email protected]"> | ||
<style> | ||
#container > div { | ||
border: black solid 2px; | ||
font-family: monospace; | ||
font-size: 20px; | ||
line-height: 1; | ||
width: 1ch; | ||
hyphens: auto; | ||
hyphenate-character: '-'; | ||
} | ||
</style> | ||
<body> | ||
<div lang="en-us" id="container"> | ||
<div>example</div> | ||
<div style="hyphenate-limit-chars: 8">example</div> | ||
<div style="hyphenate-limit-chars: auto 2 2">example</div> | ||
<div style="hyphenate-limit-chars: auto 3 2">example</div> | ||
<div style="hyphenate-limit-chars: auto 4 2">example</div> | ||
<div style="hyphenate-limit-chars: auto 5 2">example</div> | ||
<div style="hyphenate-limit-chars: auto 2 3">example</div> | ||
<div style="hyphenate-limit-chars: auto 2 4">example</div> | ||
<div style="hyphenate-limit-chars: auto 3 4">example</div> | ||
</div> | ||
</body> |
Oops, something went wrong.