mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Automatic update from web-platform-tests Introduce unprefixed 'appearance' CSS property Intent: https://t.co/osaFPo0Obe * Rename '-webkit-appearance' to 'appearance' in some data files. * Add '-webkit-appearance' as an alias of 'appearance'. - Add ParseSingleValue() for 'appearance' so that we can warn about non-standard keywords. CountKeywordOnlyPropertyUsage() is called for both of CSSPropertyID::kAppearance and |CSSPropertyID:: kAliasWebKitAppearance|. Usually aliases are not passed to this function. * Remove appearance-button-bevel-001.html and webkit-appearance-button-bevel-001.html. 'button-bevel' keyword was removed from the specification. * Fix the initial value of 'appearance' in WPT css/css-ui/inheritance.html * Add 'const' to Document::AddConsoleMessage() because we'd like to call AddConsoleMessage() with a const Document. Bug: 963551, 968164 Change-Id: Iad251b73a30e2dec4056af4dd5832a1edfb9060b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2084776 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#756149} -- wpt-commits: e809eff6c417dd25c4f9749fbb1b2dd9bf6e62b7 wpt-pr: 22642
55 lines
1.9 KiB
HTML
55 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Inheritance of CSS Basic User Interface properties</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-ui/#property-index">
|
|
<meta name="assert" content="Properties inherit or not according to the spec.">
|
|
<meta name="assert" content="Properties have initial values according to the spec.">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/css/support/inheritance-testcommon.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="reference"></div>
|
|
<div id="container">
|
|
<div id="target"></div>
|
|
</div>
|
|
<style>
|
|
#reference {
|
|
border-style: dotted; /* Avoid border-top-width computed style 0 */
|
|
border-top-width: medium;
|
|
color: lime;
|
|
background: blue;
|
|
}
|
|
|
|
#container, #target {
|
|
outline-style: dotted; /* Avoid outline-width computed style 0 */
|
|
color: lime;
|
|
background: blue;
|
|
}
|
|
</style>
|
|
<script>
|
|
const mediumWidth = getComputedStyle(reference).borderTopWidth; // e.g. 3px
|
|
const currentColor = getComputedStyle(reference).color;
|
|
|
|
assert_not_inherited('appearance', 'none', 'auto');
|
|
assert_inherited('caret-color', currentColor, 'rgba(42, 53, 64, 0.75)');
|
|
assert_inherited('caret-shape', 'auto', 'bar');
|
|
assert_inherited('cursor', 'auto', 'pointer');
|
|
assert_not_inherited('nav-down', 'auto', '#foo');
|
|
assert_not_inherited('nav-left', 'auto', '#foo');
|
|
assert_not_inherited('nav-right', 'auto', '#foo');
|
|
assert_not_inherited('nav-up', 'auto', '#foo');
|
|
if (CSS.supports('outline-color', 'invert'))
|
|
assert_not_inherited('outline-color', 'invert', 'rgba(42, 53, 64, 0.75)');
|
|
else
|
|
assert_not_inherited('outline-color', currentColor, 'rgba(42, 53, 64, 0.75)');
|
|
assert_not_inherited('outline-offset', '0px', '10px');
|
|
assert_not_inherited('outline-style', 'none', 'auto');
|
|
assert_not_inherited('outline-width', mediumWidth, '10px');
|
|
assert_not_inherited('resize', 'none', 'vertical');
|
|
assert_not_inherited('user-select', 'auto', 'none');
|
|
</script>
|
|
</body>
|
|
</html>
|