Skip to content

[css-fonts-3][css-fonts-4] Is CSSFontFaceRule.style missing [SameObject,PutForwards=cssText]? #10842

@cdoublev

Description

@cdoublev

All CSS*Rule.style attributes except CSSFontFace.style are defined with [SameObject,PutForwards=cssText]:

Is it intentional?

The practical implication, in current Chrome/FF version:

const sheet = new CSSStyleSheet()

sheet.replaceSync('style {} @font-face {}')

const style = sheet.cssRules[0]
const font = sheet.cssRules[1]

style.style = 'color: green'
style.cssText; // style { color: green }
font.style = 'font-style: italic'
font.cssText; // @font-face {}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions