testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/flood-color.html
author Darren Shen <shend@chromium.org>
Thu, 19 Apr 2018 15:36:39 +0000
changeset 468419 0e1cb59139182065af8b619660c29115f590ee2c
permissions -rw-r--r--
Bug 1453228 [wpt PR 10373] - [css-typed-om] Support remaining svg properties., a=testonly Automatic update from web-platform-tests[css-typed-om] Support remaining svg properties. Known failures: - flood & stop opacity: we should be clamping between 0 and 1 like 'opacity'. - paint-order: we seem to always compute to a list, but we should be computing to as specified (Firefox has correct behaviour). Bug: 820299 Change-Id: I0bcf29e07cb63516072bc3d0c307d0eadf2de6a3 Reviewed-on: https://chromium-review.googlesource.com/1002433 Reviewed-by: nainar <nainar@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#549791} -- wpt-commits: d44cd21c00741101f22d62772efc070ba59e8f04 wpt-pr: 10373 wpt-commits: d44cd21c00741101f22d62772efc070ba59e8f04 wpt-pr: 10373

<!doctype html>
<meta charset="utf-8">
<title>'flood-color' 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('flood-color', [
  {
    syntax: 'currentcolor',
    // computes to a <color>, which is not supported in level 1
    computed: (_, result) => assert_class_string(result, 'CSSStyleValue')
  }
]);

// <color>s are not supported in level 1
runUnsupportedPropertyTests('flood-color', [
  'red', '#bbff00', 'rgb(255, 255, 128)', 'hsl(50, 33%, 25%)',
  'transparent'
]);

</script>