mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Support the <meter>
element (#35524)
* Allow attaching UA shadow roots to any element Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement a UA shadow tree for the <meter> element Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Add UA styles for the meter element Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Include spec text when computing meter state Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
6ccdf7d19f
commit
085cd981aa
6 changed files with 207 additions and 27 deletions
|
@ -526,10 +526,9 @@ impl Element {
|
|||
// If element’s local name is not a valid shadow host name,
|
||||
// then throw a "NotSupportedError" DOMException.
|
||||
if !is_valid_shadow_host_name(self.local_name()) {
|
||||
match self.local_name() {
|
||||
&local_name!("video") | &local_name!("audio")
|
||||
if is_ua_widget == IsUserAgentWidget::Yes => {},
|
||||
_ => return Err(Error::NotSupported),
|
||||
// UA shadow roots may be attached to anything
|
||||
if is_ua_widget != IsUserAgentWidget::Yes {
|
||||
return Err(Error::NotSupported);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3975,6 +3974,9 @@ impl SelectorsElement for DomRoot<Element> {
|
|||
NonTSPseudoClass::Indeterminate |
|
||||
NonTSPseudoClass::Invalid |
|
||||
NonTSPseudoClass::Modal |
|
||||
NonTSPseudoClass::MozMeterOptimum |
|
||||
NonTSPseudoClass::MozMeterSubOptimum |
|
||||
NonTSPseudoClass::MozMeterSubSubOptimum |
|
||||
NonTSPseudoClass::Optional |
|
||||
NonTSPseudoClass::OutOfRange |
|
||||
NonTSPseudoClass::PlaceholderShown |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue