mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Support ::part
selector (#37307)
This is pretty much just wiring up the necessary stylo methods. Note that the `exportparts` attribute is not yet supported, I'll do that in a followup change Testing: Covered by existing web platform tests. This is the first half of https://github.com/servo/servo/issues/35349 Fixes https://github.com/servo/servo/issues/37325 --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
73ee36be00
commit
0fa3de3937
36 changed files with 119 additions and 348 deletions
|
@ -11,6 +11,7 @@ use crate::dom::bindings::root::{Dom, MutNullableDom};
|
|||
use crate::dom::customelementregistry::{
|
||||
CustomElementDefinition, CustomElementReaction, CustomElementState,
|
||||
};
|
||||
use crate::dom::domtokenlist::DOMTokenList;
|
||||
use crate::dom::elementinternals::ElementInternals;
|
||||
use crate::dom::htmlslotelement::SlottableData;
|
||||
use crate::dom::intersectionobserver::IntersectionObserverRegistration;
|
||||
|
@ -76,4 +77,10 @@ pub(crate) struct ElementRareData {
|
|||
/// > which is initialized to an empty list. This list holds IntersectionObserverRegistration records, which have:
|
||||
pub(crate) registered_intersection_observers: Vec<IntersectionObserverRegistration>,
|
||||
pub(crate) cryptographic_nonce: String,
|
||||
|
||||
/// <https://drafts.csswg.org/css-shadow-parts/#element-forwarded-part-name-list>
|
||||
pub(crate) forwarded_part_names: Vec<(String, String)>,
|
||||
|
||||
/// <https://drafts.csswg.org/css-shadow-parts/#dom-element-part>
|
||||
pub(crate) part: MutNullableDom<DOMTokenList>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue