49 lines
2.5 KiB
HTML
49 lines
2.5 KiB
HTML
<!-- DO NOT EDIT. This file has been generated. Source:
|
|
../tools/build-compute-kind-widget-fallback-props.py
|
|
-->
|
|
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Basic User Interface Test: Compute kind of widget: background-attachment,background-position,background-clip,background-origin,background-size maybe disables native appearance for all-elements</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-disabling-properties">
|
|
<link rel="help" href="https://html.spec.whatwg.org/#widgets">
|
|
<meta name="assert" content="appropriate widget is used when props includes background-attachment,background-position,background-clip,background-origin,background-size.">
|
|
<link rel="match" href="../compute-kind-widget-fallback-all-elements-ref.html">
|
|
<style>
|
|
#container { width: 500px; }
|
|
/* NOTE: This rule is only used in the search-text-input tests: */
|
|
#container > #search-text-input { appearance: textfield; }
|
|
/* NOTE: This rule is only used in the select-menulist-button tests: */
|
|
#container > #select-menulist-button { appearance: none; appearance: menulist-button; }
|
|
</style>
|
|
|
|
<div id="container">
|
|
<a id="link">a</a>
|
|
<button id="button">button</button>
|
|
<input id="button-input" type="button" value="input-button">
|
|
<input id="submit-input" type="submit" value="input-submit">
|
|
<input id="reset-input" type="reset" value="input-reset">
|
|
<input id="text-input" type="text" value="input-text">
|
|
<input id="search-text-input" type="search" value="input-search-text">
|
|
<input id="search-input" type="search" value="input-search">
|
|
<input id="range-input" type="range">
|
|
<input id="checkbox-input" type="checkbox">
|
|
<input id="radio-input" type="radio">
|
|
<input id="color-input" type="color">
|
|
<textarea id="textarea">textarea</textarea>
|
|
<select multiple id="select-listbox"><option>select-listbox</option></select>
|
|
<select id="select-dropdown-box"><option>select-dropdown-box</option></select>
|
|
<select id="select-menulist-button"><option>select-menulist-button</option></select>
|
|
<meter id="meter" value=0.5></meter>
|
|
<progress id="progress" value=0.5></progress>
|
|
</div>
|
|
|
|
<script>
|
|
// Set author-level CSS that matches UA style, but don't use the 'revert' value.
|
|
const elements = document.querySelectorAll('#container > *');
|
|
const props = "background-attachment,background-position,background-clip,background-origin,background-size".split(",");
|
|
for (const el of elements) {
|
|
for (const prop of props) {
|
|
el.style.setProperty(prop, getComputedStyle(el).getPropertyValue(prop));
|
|
}
|
|
}
|
|
</script>
|