aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMats Palmgren <mats@mozilla.com>2018-11-09 04:25:56 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-11-10 21:10:42 +0100
commitc194f42596c55e92066bc76c02093808c262ceca (patch)
treeed4289ed32d014167ddabe5bc3cb5f4b13a48b00
parent667457a16c64580e0e5545cc7797a4bb1ba25aa6 (diff)
downloadservo-c194f42596c55e92066bc76c02093808c262ceca.tar.gz
servo-c194f42596c55e92066bc76c02093808c262ceca.zip
style: Add -webkit-appearance:meter and make that the default for <meter> for compatibility with other UAs.
Keep our old value 'meterbar' as an alias for now, but unship 'meterchunk' by restricting it to UA/chrome sheets only. Bug: 1501483 Reviewed-by: jwatt
-rw-r--r--components/style/values/specified/box.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs
index ffa59a4d50e..3c634df1ab6 100644
--- a/components/style/values/specified/box.rs
+++ b/components/style/values/specified/box.rs
@@ -1036,8 +1036,10 @@ pub enum Appearance {
#[parse(condition = "in_ua_or_chrome_sheet")]
Menuimage,
/// A horizontal meter bar.
- Meterbar,
+ #[parse(aliases = "meterbar")]
+ Meter,
/// The meter bar's meter indicator.
+ #[parse(condition = "in_ua_or_chrome_sheet")]
Meterchunk,
/// The "arrowed" part of the dropdown button that open up a dropdown list.
#[parse(condition = "in_ua_or_chrome_sheet")]