dom/webidl/HTMLMeterElement.webidl
author Brent Schroeter <brent@brentschroeter.com>
Sat, 25 Jan 2020 16:21:02 +0000
changeset 511776 3bc0d683a41cb63c83cb115d1b6a85d50013d59e
parent 497998 b8905d33a7c0e55f84e2378b51cc6488f7b81aee
permissions -rw-r--r--
Bug 1597322 - Correctly set a:visited color in dark-mode. r=ewright The light theme sets both visited and non-visited links to the same color (`--blue-60`) by default, while the dark theme sets non-visited links to `--blue-40` but did not specify a color for visited links, displaying them as `--blue-60`. This resulted in inconsistent styling of pages written in XHTML versus HTML, e.g. `about:protections` versus `about:newtab`. epang confirmed that the desired behavior is to display links as `--blue-40`, visited or not. Differential Revision: https://phabricator.services.mozilla.com/D60748

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * The origin of this IDL file is
 * http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element	
 *
 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
 * Opera Software ASA. You are granted a license to use, reproduce
 * and create derivative works of this document.
 */

// http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element
[Exposed=Window]
interface HTMLMeterElement : HTMLElement {
  [HTMLConstructor] constructor();

           [CEReactions, SetterThrows]
           attribute double value;
           [CEReactions, SetterThrows]
           attribute double min;
           [CEReactions, SetterThrows]
           attribute double max;
           [CEReactions, SetterThrows]
           attribute double low;
           [CEReactions, SetterThrows]
           attribute double high;
           [CEReactions, SetterThrows]
           attribute double optimum;
           readonly attribute NodeList labels;
};