Commit f7201f02 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

[css-typedom] Add support for the *-gap properties.

Bug: 820299
Change-Id: I596113eeea7d4c13cf689364744bff7c261f93d3
Reviewed-on: https://chromium-review.googlesource.com/978247
Commit-Queue: Darren Shen <shend@chromium.org>
Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545896}
parent cdacf5b0
<!doctype html>
<meta charset="utf-8">
<title>'*-gap' properties</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymapreadonly-get">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#dom-stylepropertymap-set">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om/#reify-stylevalue">
<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';
for (const prefix of ['column', 'row']) {
runPropertyTests(`${prefix}-gap`, [
{ syntax: 'normal' },
{
syntax: '<length>',
specified: assert_is_equal_with_range_handling
},
{
syntax: '<percentage>',
specified: assert_is_equal_with_range_handling
},
]);
}
</script>
...@@ -3128,6 +3128,8 @@ ...@@ -3128,6 +3128,8 @@
default_value: "GapLength()", default_value: "GapLength()",
type_name: "GapLength", type_name: "GapLength",
converter: "ConvertGapLength", converter: "ConvertGapLength",
keywords: ["normal"],
typedom_types: ["Keyword", "Length", "Percentage"],
}, },
{ {
name: "row-gap", name: "row-gap",
...@@ -3139,6 +3141,8 @@ ...@@ -3139,6 +3141,8 @@
default_value: "GapLength()", default_value: "GapLength()",
type_name: "GapLength", type_name: "GapLength",
converter: "ConvertGapLength", converter: "ConvertGapLength",
keywords: ["normal"],
typedom_types: ["Keyword", "Length", "Percentage"],
}, },
{ {
name: "column-rule-color", name: "column-rule-color",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment