-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import wpt@26c82a64e8db717dbe256b61bded37c50a1eea5e
Using wpt-import in Chromium d002482. With Chromium commits locally applied on WPT: 329c91e "Attempt to make test more stable" Note to sheriffs: This CL imports external tests and adds expectations for those tests; if this CL is large and causes a few new failures, please fix the failures by adding new lines to TestExpectations rather than reverting. See: https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md Directory owners for changes in this CL: jfernandez@igalia.com: external/wpt/css/css-align NOAUTOREVERT=true TBR=robertma No-Export: true Change-Id: Ibf905be59d6e7a8877f33bb07fe7290a2f84fb44 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1747269 Reviewed-by: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com> Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com> Cr-Commit-Position: refs/heads/master@{#685877}
- Loading branch information
Chromium WPT Sync
authored and
Commit Bot
committed
Aug 10, 2019
1 parent
4f575e6
commit 69d373b
Showing
4 changed files
with
103 additions
and
0 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
30 changes: 30 additions & 0 deletions
30
third_party/blink/web_tests/external/wpt/css/css-align/parsing/row-gap-computed.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,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>CSS Box Alignment Level 3: getComputedStyle().rowGap</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap"> | ||
<meta name="assert" content="row-gap computed value is a specified keyword or a computed <length-percentage>."> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/computed-testcommon.js"></script> | ||
<style> | ||
#target { | ||
font-size: 40px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="target"></div> | ||
<script> | ||
test_computed_value("row-gap", "normal"); | ||
|
||
test_computed_value("row-gap", "10px"); | ||
test_computed_value("row-gap", "20%"); | ||
test_computed_value("row-gap", "calc(20% + 10px)"); | ||
|
||
test_computed_value("row-gap", "calc(-0.5em + 10px)", "0px"); | ||
test_computed_value("row-gap", "calc(0.5em + 10px)", "30px"); | ||
</script> | ||
</body> | ||
</html> |
21 changes: 21 additions & 0 deletions
21
third_party/blink/web_tests/external/wpt/css/css-align/parsing/row-gap-invalid.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,21 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>CSS Box Alignment Level 3: parsing row-gap with invalid values</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap"> | ||
<meta name="assert" content="row-gap supports only the grammar 'normal | <length-percentage>'."> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
test_invalid_value("row-gap", "auto"); | ||
test_invalid_value("row-gap", "-10px"); | ||
|
||
test_invalid_value("row-gap", "10px 20%"); | ||
test_invalid_value("row-gap", "normal 10px"); | ||
</script> | ||
</body> | ||
</html> |
22 changes: 22 additions & 0 deletions
22
third_party/blink/web_tests/external/wpt/css/css-align/parsing/row-gap-valid.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> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>CSS Box Alignment Level 3: parsing row-gap with valid values</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-row-gap"> | ||
<meta name="assert" content="row-gap supports the full grammar 'normal | <length-percentage>'."> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
test_valid_value("row-gap", "normal"); | ||
|
||
test_valid_value("row-gap", "10px"); | ||
test_valid_value("row-gap", "20%"); | ||
test_valid_value("row-gap", "calc(20% + 10px)"); | ||
test_valid_value("row-gap", "0", "0px"); | ||
</script> | ||
</body> | ||
</html> |