mirror of
https://github.com/servo/servo.git
synced 2025-09-07 13:38:20 +01:00
Update web-platform-tests to revision 8fde342d6e62e9820f2c19db634b99b78df796fa
This commit is contained in:
parent
db29cb01b0
commit
e9a369631b
48 changed files with 1012 additions and 283 deletions
|
@ -13,10 +13,10 @@
|
|||
<h:script src="/css/support/parsing-testcommon.js"/>
|
||||
<script><![CDATA[
|
||||
|
||||
test_valid_value("stroke-dashoffset", "0");
|
||||
test_valid_value("stroke-dashoffset", "0", "0px");
|
||||
test_valid_value("stroke-dashoffset", "10px");
|
||||
test_valid_value("stroke-dashoffset", "-20%");
|
||||
test_valid_value("stroke-dashoffset", "30");
|
||||
test_valid_value("stroke-dashoffset", "30", "30px");
|
||||
test_valid_value("stroke-dashoffset", "40Q", "40q");
|
||||
test_valid_value("stroke-dashoffset", "calc(2em + 3ex)");
|
||||
|
||||
|
|
Before Width: | Height: | Size: 975 B After Width: | Height: | Size: 990 B |
|
@ -50,9 +50,9 @@ for (let lengthUnit of lengthUnits) {
|
|||
target.style.strokeWidth = length;
|
||||
|
||||
const ref = document.getElementById('ref');
|
||||
ref.style.wordSpacing = length;
|
||||
ref.style.textIndent = length;
|
||||
|
||||
assert_equals(getComputedStyle(target).strokeWidth, getComputedStyle(ref).wordSpacing);
|
||||
assert_equals(getComputedStyle(target).strokeWidth, getComputedStyle(ref).textIndent);
|
||||
}, 'stroke-width computes ' + lengthUnit + ' lengths');
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -13,8 +13,8 @@
|
|||
<h:script src="/css/support/parsing-testcommon.js"/>
|
||||
<script><![CDATA[
|
||||
|
||||
test_valid_value("stroke-width", "0");
|
||||
test_valid_value("stroke-width", "10");
|
||||
test_valid_value("stroke-width", "0", "0px");
|
||||
test_valid_value("stroke-width", "10", "10px");
|
||||
test_valid_value("stroke-width", "1px");
|
||||
test_valid_value("stroke-width", "calc(2em + 3ex)");
|
||||
test_valid_value("stroke-width", "4%");
|
||||
|
|
Before Width: | Height: | Size: 990 B After Width: | Height: | Size: 1,005 B |
Loading…
Add table
Add a link
Reference in a new issue