Bug 1446870 [wpt PR 10087] - [css-typed-om] Add support for min/max-width/height., a=testonly

Automatic update from web-platform-tests[css-typed-om] Add support for min/max-width/height.

Add support & tests for (min/max)-(width/height).

Note that the typed om spec specifies the old specs for these properties:
https://drafts.csswg.org/css21/visudet.html

Bug: 820299
Change-Id: I9c65f7f24d84b83ea2e2f167f8fb86be967eff06
Reviewed-on: https://chromium-review.googlesource.com/968003
Commit-Queue: Darren Shen <shend@chromium.org>
Reviewed-by: nainar <nainar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543980}

wpt-commits: 918f9684ec3846ac5bf588678dbdde6d58e22fc8
wpt-pr: 10087
wpt-commits: 918f9684ec3846ac5bf588678dbdde6d58e22fc8
wpt-pr: 10087
This commit is contained in:
Darren Shen 2018-04-09 17:17:50 +00:00 committed by James Graham
parent 845de5c376
commit ee4f33214f
3 changed files with 48 additions and 2 deletions

View File

@ -522767,7 +522767,7 @@
"testharness"
],
"css/css-typed-om/the-stylepropertymap/properties/height.html": [
"36b8677eb45f8555da4381e1644624df2f2060e0",
"617ec941ab1cbd02b31b8a9bb7ce6da311109476",
"testharness"
],
"css/css-typed-om/the-stylepropertymap/properties/isolation.html": [
@ -522947,7 +522947,7 @@
"testharness"
],
"css/css-typed-om/the-stylepropertymap/properties/width.html": [
"d429f7a88012179ef3d604b79b3db4aaba0ca426",
"205915eb7162e23fd5600488304dd8dfa8e51ee2",
"testharness"
],
"css/css-typed-om/the-stylepropertymap/properties/writing-mode.html": [

View File

@ -19,4 +19,27 @@ runPropertyTests('height', [
{ syntax: '<length>', specified: assert_is_equal_with_range_handling },
]);
runPropertyTests('min-height', [
{
syntax: '<percentage>',
specified: assert_is_equal_with_range_handling
},
{
syntax: '<length>',
specified: assert_is_equal_with_range_handling
},
]);
runPropertyTests('max-height', [
{ syntax: 'none' },
{
syntax: '<percentage>',
specified: assert_is_equal_with_range_handling
},
{
syntax: '<length>',
specified: assert_is_equal_with_range_handling
},
]);
</script>

View File

@ -25,4 +25,27 @@ runPropertyTests('width', [
},
]);
runPropertyTests('min-width', [
{
syntax: '<percentage>',
specified: assert_is_equal_with_range_handling
},
{
syntax: '<length>',
specified: assert_is_equal_with_range_handling
},
]);
runPropertyTests('max-width', [
{ syntax: 'none' },
{
syntax: '<percentage>',
specified: assert_is_equal_with_range_handling
},
{
syntax: '<length>',
specified: assert_is_equal_with_range_handling
},
]);
</script>