-
Notifications
You must be signed in to change notification settings - Fork 717
[cssom] [css-fonts] [css-page] Sort out properties and descriptors. #9686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8224,9 +8224,39 @@ The <code id="cssfontfacerule2">CSSFontFaceRule</code> interface</h3> | |
The <dfn id="cssfontfacerule-interface">CSSFontFaceRule</dfn> interface represents a <<@font-face>> rule. | ||
|
||
<pre class="idl"> | ||
[Exposed=Window] | ||
interface CSSFontFaceDescriptors : CSSStyleDeclaration { | ||
attribute [LegacyNullToEmptyString] CSSOMString src; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontFamily; | ||
attribute [LegacyNullToEmptyString] CSSOMString font-family; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontStyle; | ||
attribute [LegacyNullToEmptyString] CSSOMString font-style; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontWeight; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontStretch; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
attribute [LegacyNullToEmptyString] CSSOMString font-stretch; | ||
attribute [LegacyNullToEmptyString] CSSOMString unicodeRange; | ||
attribute [LegacyNullToEmptyString] CSSOMString unicode-range; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontFeatureSettings; | ||
attribute [LegacyNullToEmptyString] CSSOMString font-feature-settings; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontVariationSettings; | ||
attribute [LegacyNullToEmptyString] CSSOMString font-variation-settings; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontNamedInstance; | ||
attribute [LegacyNullToEmptyString] CSSOMString font-named-instance; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontDisplay; | ||
attribute [LegacyNullToEmptyString] CSSOMString font-display; | ||
attribute [LegacyNullToEmptyString] CSSOMString fontLanguageOverride; | ||
attribute [LegacyNullToEmptyString] CSSOMString font-language-override; | ||
attribute [LegacyNullToEmptyString] CSSOMString ascentOverride; | ||
attribute [LegacyNullToEmptyString] CSSOMString ascent-override; | ||
attribute [LegacyNullToEmptyString] CSSOMString descentOverride; | ||
attribute [LegacyNullToEmptyString] CSSOMString descent-override; | ||
attribute [LegacyNullToEmptyString] CSSOMString lineGapOverride; | ||
attribute [LegacyNullToEmptyString] CSSOMString line-gap-override; | ||
}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should fonts 5 have the same interface too except adding the size-adjust descriptor and the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes |
||
|
||
[Exposed=Window] | ||
interface CSSFontFaceRule : CSSRule { | ||
readonly attribute CSSStyleDeclaration style; | ||
readonly attribute CSSFontFaceDescriptors style; | ||
}; | ||
</pre> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the
style
of keyframe rules should have its own interface to prevent declaring a property defined in CSS Animations?https://drafts.csswg.org/css-animations-1/#at-ruledef-keyframes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly...