Commit 3d7a78f5 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Enable MetaColorScheme and CSSColorScheme flags.

Intent to ship thread:

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/-_0REgUR-yY

Bug: 939811, 925935
Change-Id: I00e1b7ffc162b2b226db1a722391a61a5386cb51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2027328Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736650}
parent 9bce6a24
...@@ -416,6 +416,7 @@ ...@@ -416,6 +416,7 @@
// Support for the CSS color-scheme property from the css-color-adjust spec. // Support for the CSS color-scheme property from the css-color-adjust spec.
// https://drafts.csswg.org/css-color-adjust/#color-scheme-prop // https://drafts.csswg.org/css-color-adjust/#color-scheme-prop
name: "CSSColorScheme", name: "CSSColorScheme",
status: "stable",
}, },
{ {
// When the color-scheme is supported via the CSS color-scheme property // When the color-scheme is supported via the CSS color-scheme property
...@@ -1054,6 +1055,7 @@ ...@@ -1054,6 +1055,7 @@
// https://drafts.csswg.org/css-color-adjust/#color-scheme-meta // https://drafts.csswg.org/css-color-adjust/#color-scheme-meta
{ {
name: "MetaColorScheme", name: "MetaColorScheme",
status: "stable",
}, },
// This is enabled by default on Windows only. The only part that's // This is enabled by default on Windows only. The only part that's
// "experimental" is the support on other platforms. // "experimental" is the support on other platforms.
......
This is a testharness.js-based test.
FAIL Property color-scheme has initial value normal assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false
FAIL Property color-scheme inherits assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Meta color-scheme initially 'dark'. assert_equals: expected (string) "dark" but got (undefined) undefined
FAIL Removed name attribute from meta color-scheme. assert_equals: expected (string) "normal" but got (undefined) undefined
FAIL Set meta name to color-scheme. assert_equals: expected (string) "dark" but got (undefined) undefined
FAIL Set content attribute of meta color-scheme to empty string. assert_equals: expected (string) "normal" but got (undefined) undefined
FAIL Set content attribute of meta color-scheme to an invalid value. assert_equals: expected (string) "normal" but got (undefined) undefined
FAIL Set content attribute of meta color-scheme to 'light'. assert_equals: expected (string) "light" but got (undefined) undefined
FAIL Removed the content attribute of meta color-scheme. assert_equals: expected (string) "normal" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Meta color-scheme with empty content attribute has no effect. assert_equals: expected (string) "normal" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Tree order decides which meta color-scheme applies. assert_equals: expected (string) "dark" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Initial color-scheme assert_equals: expected (string) "normal" but got (undefined) undefined
FAIL Inserted meta color-scheme applies assert_equals: expected (string) "light" but got (undefined) undefined
FAIL Inserted meta color-scheme before existing in head applies assert_equals: expected (string) "dark" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Meta color-scheme without content attribute has no effect. assert_equals: expected (string) "normal" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Author origin style rule overrides meta color-scheme. assert_equals: expected (string) "light" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL First meta applies. assert_equals: expected (string) "dark" but got (undefined) undefined
FAIL Second meta applies after first one is removed. assert_equals: expected (string) "light" but got (undefined) undefined
FAIL Initial color-scheme with both meta elements removed. assert_equals: expected (string) "normal" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Meta color-scheme applies. assert_equals: expected (string) "dark" but got (undefined) undefined
FAIL Initial value after removing head including meta color-scheme. assert_equals: expected (string) "normal" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Meta color-scheme in body does not apply. assert_equals: expected (string) "normal" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Meta color-scheme in head applies. assert_equals: expected (string) "dark" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL Meta color-scheme in shadow tree does not apply. assert_equals: expected (string) "normal" but got (undefined) undefined
Harness: the test ran to completion.
This is a testharness.js-based test. This is a testharness.js-based test.
FAIL Property color-scheme value 'normal' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'normal'
FAIL Property color-scheme value 'light dark' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'light dark'
FAIL Property color-scheme value 'dark light' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'dark light'
FAIL Property color-scheme value 'light unknown' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'light unknown'
FAIL Property color-scheme value 'only light' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'only light'
FAIL Property color-scheme value 'light light' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'light light'
FAIL Property color-scheme value 'light only' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'light only'
FAIL Property color-scheme value 'none' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'none'
FAIL Property color-scheme value 'initial' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'initial'
FAIL Property color-scheme value 'inherit' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'inherit'
FAIL Property color-scheme value 'unset' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false PASS Property color-scheme value 'unset'
FAIL Property color-scheme value 'revert' assert_true: color-scheme doesn't seem to be supported in the computed style expected true got false FAIL Property color-scheme value 'revert' assert_true: 'revert' is a supported value for color-scheme. expected true got false
Harness: the test ran to completion. Harness: the test ran to completion.
This is a testharness.js-based test. This is a testharness.js-based test.
FAIL e.style['color-scheme'] = "normal" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "normal" should set the property value
FAIL e.style['color-scheme'] = "light" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "light" should set the property value
FAIL e.style['color-scheme'] = "dark" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "dark" should set the property value
FAIL e.style['color-scheme'] = "light dark" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "light dark" should set the property value
FAIL e.style['color-scheme'] = "dark light" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "dark light" should set the property value
FAIL e.style['color-scheme'] = "only light" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "only light" should set the property value
FAIL e.style['color-scheme'] = "light only" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "light only" should set the property value
FAIL e.style['color-scheme'] = "light light" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "light light" should set the property value
FAIL e.style['color-scheme'] = "dark dark" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "dark dark" should set the property value
FAIL e.style['color-scheme'] = "light purple" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "light purple" should set the property value
FAIL e.style['color-scheme'] = "purple dark interesting" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "purple dark interesting" should set the property value
FAIL e.style['color-scheme'] = "none" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "none" should set the property value
FAIL e.style['color-scheme'] = "light none" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "light none" should set the property value
FAIL e.style['color-scheme'] = "inherit" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "inherit" should set the property value
FAIL e.style['color-scheme'] = "initial" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "initial" should set the property value
FAIL e.style['color-scheme'] = "unset" should set the property value assert_not_equals: property should be set got disallowed value "" PASS e.style['color-scheme'] = "unset" should set the property value
FAIL e.style['color-scheme'] = "revert" should set the property value assert_not_equals: property should be set got disallowed value "" FAIL e.style['color-scheme'] = "revert" should set the property value assert_not_equals: property should be set got disallowed value ""
Harness: the test ran to completion. Harness: the test ran to completion.
...@@ -99,6 +99,7 @@ color ...@@ -99,6 +99,7 @@ color
colorInterpolation colorInterpolation
colorInterpolationFilters colorInterpolationFilters
colorRendering colorRendering
colorScheme
columnCount columnCount
columnFill columnFill
columnGap columnGap
......
...@@ -137,6 +137,7 @@ All changes to this list should go through Blink's feature review process: http: ...@@ -137,6 +137,7 @@ All changes to this list should go through Blink's feature review process: http:
color-interpolation color-interpolation
color-interpolation-filters color-interpolation-filters
color-rendering color-rendering
color-scheme
column-count column-count
column-fill column-fill
column-gap column-gap
......
Check that interfaces inherit from EventTarget
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS EventSource.prototype.__proto__ is EventTarget.prototype
PASS FileReader.prototype.__proto__ is EventTarget.prototype
PASS MediaSource.prototype.__proto__ is EventTarget.prototype
PASS MessagePort.prototype.__proto__ is EventTarget.prototype
PASS Node.prototype.__proto__ is EventTarget.prototype
PASS Performance.prototype.__proto__ is EventTarget.prototype
PASS SharedWorker.prototype.__proto__ is EventTarget.prototype
PASS WebSocket.prototype.__proto__ is EventTarget.prototype
PASS Worker.prototype.__proto__ is EventTarget.prototype
PASS Window.prototype.__proto__.__proto__ is EventTarget.prototype
PASS successfullyParsed is true
TEST COMPLETE
...@@ -107,6 +107,7 @@ color ...@@ -107,6 +107,7 @@ color
colorInterpolation colorInterpolation
colorInterpolationFilters colorInterpolationFilters
colorRendering colorRendering
colorScheme
columnCount columnCount
columnFill columnFill
columnGap columnGap
......
...@@ -137,6 +137,7 @@ All changes to this list should go through Blink's feature review process: http: ...@@ -137,6 +137,7 @@ All changes to this list should go through Blink's feature review process: http:
color-interpolation color-interpolation
color-interpolation-filters color-interpolation-filters
color-rendering color-rendering
color-scheme
column-count column-count
column-fill column-fill
column-gap column-gap
......
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