Commit f0380c68 authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

[css-typed-om] Support remaining inline properties.

Failures because we don't support some keywords (difference between
CSS vs SVG?)

Bug: 820299
Change-Id: I1da06c5dfbd847a08b43d0bae42f969b4c40f1d7
Reviewed-on: https://chromium-review.googlesource.com/1002492Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549844}
parent b7136165
This is a testharness.js-based test.
PASS Can set 'alignment-baseline' to CSS-wide keywords
PASS Can set 'alignment-baseline' to var() references
PASS Can set 'alignment-baseline' to the 'baseline' keyword
FAIL Can set 'alignment-baseline' to the 'text-bottom' keyword Failed to execute 'set' on 'StylePropertyMap': Invalid type for property
PASS Can set 'alignment-baseline' to the 'alphabetic' keyword
PASS Can set 'alignment-baseline' to the 'ideographic' keyword
PASS Can set 'alignment-baseline' to the 'middle' keyword
PASS Can set 'alignment-baseline' to the 'central' keyword
PASS Can set 'alignment-baseline' to the 'mathematical' keyword
FAIL Can set 'alignment-baseline' to the 'text-top' keyword Failed to execute 'set' on 'StylePropertyMap': Invalid type for property
FAIL Can set 'alignment-baseline' to the 'bottom' keyword Failed to execute 'set' on 'StylePropertyMap': Invalid type for property
FAIL Can set 'alignment-baseline' to the 'center' keyword Failed to execute 'set' on 'StylePropertyMap': Invalid type for property
FAIL Can set 'alignment-baseline' to the 'top' keyword Failed to execute 'set' on 'StylePropertyMap': Invalid type for property
PASS Setting 'alignment-baseline' to a length throws TypeError
PASS Setting 'alignment-baseline' to a percent throws TypeError
PASS Setting 'alignment-baseline' to a time throws TypeError
PASS Setting 'alignment-baseline' to a flexible length throws TypeError
PASS Setting 'alignment-baseline' to a number throws TypeError
PASS Setting 'alignment-baseline' to a position throws TypeError
PASS Setting 'alignment-baseline' to a URL throws TypeError
PASS Setting 'alignment-baseline' to a transform throws TypeError
Harness: the test ran to completion.
<!doctype html>
<meta charset="utf-8">
<title>'alignment-baseline' 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('alignment-baseline', [
{ syntax: 'baseline' },
{ syntax: 'text-bottom' },
{ syntax: 'alphabetic' },
{ syntax: 'ideographic' },
{ syntax: 'middle' },
{ syntax: 'central' },
{ syntax: 'mathematical' },
{ syntax: 'text-top' },
{ syntax: 'bottom' },
{ syntax: 'center' },
{ syntax: 'top' },
]);
</script>
<!doctype html>
<meta charset="utf-8">
<title>'baseline-shift' 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('baseline-shift', [
{ syntax: 'sub' },
{ syntax: 'super' },
{ syntax: '<percentage>' },
{ syntax: '<length>' }
]);
</script>
This is a testharness.js-based test.
PASS Can set 'dominant-baseline' to CSS-wide keywords
PASS Can set 'dominant-baseline' to var() references
PASS Can set 'dominant-baseline' to the 'auto' keyword
FAIL Can set 'dominant-baseline' to the 'text-bottom' keyword Failed to execute 'set' on 'StylePropertyMap': Invalid type for property
PASS Can set 'dominant-baseline' to the 'alphabetic' keyword
PASS Can set 'dominant-baseline' to the 'ideographic' keyword
PASS Can set 'dominant-baseline' to the 'middle' keyword
PASS Can set 'dominant-baseline' to the 'central' keyword
PASS Can set 'dominant-baseline' to the 'mathematical' keyword
PASS Can set 'dominant-baseline' to the 'hanging' keyword
FAIL Can set 'dominant-baseline' to the 'text-top' keyword Failed to execute 'set' on 'StylePropertyMap': Invalid type for property
PASS Setting 'dominant-baseline' to a length throws TypeError
PASS Setting 'dominant-baseline' to a percent throws TypeError
PASS Setting 'dominant-baseline' to a time throws TypeError
PASS Setting 'dominant-baseline' to a flexible length throws TypeError
PASS Setting 'dominant-baseline' to a number throws TypeError
PASS Setting 'dominant-baseline' to a position throws TypeError
PASS Setting 'dominant-baseline' to a URL throws TypeError
PASS Setting 'dominant-baseline' to a transform throws TypeError
Harness: the test ran to completion.
<!doctype html>
<meta charset="utf-8">
<title>'dominant-baseline' 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('dominant-baseline', [
{ syntax: 'auto' },
{ syntax: 'text-bottom' },
{ syntax: 'alphabetic' },
{ syntax: 'ideographic' },
{ syntax: 'middle' },
{ syntax: 'central' },
{ syntax: 'mathematical' },
{ syntax: 'hanging' },
{ syntax: 'text-top' },
]);
</script>
......@@ -762,6 +762,8 @@
name: "alignment-baseline",
property_methods: ["CSSValueFromComputedStyleInternal"],
svg: true,
keywords: ["baseline", "alphabetic", "ideographic", "middle", "central", "mathematical"],
typedom_types: ["Keyword"]
},
{
name: "align-self",
......@@ -892,6 +894,8 @@
svg: true,
custom_apply_functions_inherit: true,
custom_apply_functions_value: true,
keywords: ["sub", "super"],
typedom_types: ["Keyword", "Percentage", "Length"]
},
{
name: "border-bottom-color",
......@@ -1425,6 +1429,8 @@
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
keywords: ["auto", "alphabetic", "ideographic", "middle", "central", "mathematical", "hanging"],
typedom_types: ["Keyword"]
},
{
name: "empty-cells",
......
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