-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-typed-om] Implement support for text-* properties.
There's a failing test due to Blink computing keyword values for text-size-adjust to percentages, even though the spec says the computed value is as specified. Bug: 820299 Change-Id: I53c4177f1ce2205a4f2b6af00b1c61da4f5e774f Reviewed-on: https://chromium-review.googlesource.com/994594 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#549095}
- Loading branch information
1 parent
318f287
commit 8a4cdaf
Showing
6 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
css/css-typed-om/the-stylepropertymap/properties/text-align-last.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> | ||
<meta charset="utf-8"> | ||
<title>'text-align-last' property</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../resources/testhelper.js"></script> | ||
<script src="resources/testsuite.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
runPropertyTests('text-align-last', [ | ||
{ syntax: 'auto' }, | ||
{ syntax: 'start' }, | ||
{ syntax: 'end' }, | ||
{ syntax: 'left' }, | ||
{ syntax: 'right' }, | ||
{ syntax: 'center' }, | ||
{ syntax: 'justify' }, | ||
]); | ||
|
||
</script> |
25 changes: 25 additions & 0 deletions
25
css/css-typed-om/the-stylepropertymap/properties/text-indent.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>'text-indent' property</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../resources/testhelper.js"></script> | ||
<script src="resources/testsuite.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
runPropertyTests('text-indent', [ | ||
{ syntax: '<length>' }, | ||
{ syntax: '<percentage>' }, | ||
]); | ||
|
||
runUnsupportedPropertyTests('text-indent', [ | ||
'5em each-line', '5em hanging', '5em hanging each-line' | ||
]); | ||
|
||
</script> |
23 changes: 23 additions & 0 deletions
23
css/css-typed-om/the-stylepropertymap/properties/text-justify.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>'text-justify' property</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../resources/testhelper.js"></script> | ||
<script src="resources/testsuite.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
runPropertyTests('text-justify', [ | ||
{ syntax: 'auto' }, | ||
{ syntax: 'none' }, | ||
{ syntax: 'inter-word' }, | ||
{ syntax: 'inter-character' }, | ||
]); | ||
|
||
</script> |
24 changes: 24 additions & 0 deletions
24
css/css-typed-om/the-stylepropertymap/properties/text-shadow.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>'text-shadow' property</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../resources/testhelper.js"></script> | ||
<script src="resources/testsuite.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
runPropertyTests('text-shadow', [ | ||
{ syntax: 'none' }, | ||
]); | ||
|
||
runUnsupportedPropertyTests('text-shadow', [ | ||
'1px 1px 2px pink', '1px 1px 2px red, 0 0 1em blue, 0 0 0.2em blue' | ||
]); | ||
|
||
</script> |
22 changes: 22 additions & 0 deletions
22
css/css-typed-om/the-stylepropertymap/properties/text-size-adjust.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,22 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>'text-size-adjust' property</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../resources/testhelper.js"></script> | ||
<script src="resources/testsuite.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
runPropertyTests('text-size-adjust', [ | ||
{ syntax: 'none' }, | ||
{ syntax: 'auto' }, | ||
{ syntax: '<percentage>' }, | ||
]); | ||
|
||
</script> |
27 changes: 27 additions & 0 deletions
27
css/css-typed-om/the-stylepropertymap/properties/text-underline-position.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,27 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>'text-underline-position' property</title> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set"> | ||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../../resources/testhelper.js"></script> | ||
<script src="resources/testsuite.js"></script> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
runPropertyTests('text-underline-position', [ | ||
{ syntax: 'auto' }, | ||
{ syntax: 'under' }, | ||
{ syntax: 'left' }, | ||
{ syntax: 'right' }, | ||
]); | ||
|
||
runUnsupportedPropertyTests('text-underline-position', [ | ||
'under left', 'right under' | ||
]); | ||
|
||
</script> |