mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibWeb/CSS: Return 0 from CSSRule.type for non-spec types
We use the CSSRule::Type enum for identifying the type of a CSSRule, but the spec requires that only some of these types are exposed via the `type` attribute. For the rest, we're required to return 0, so let's do so. :^)
This commit is contained in:
parent
4998385c7a
commit
51fc87bc1b
Notes:
github-actions[bot]
2024-10-30 17:46:59 +00:00
Author: https://github.com/AtkinsSJ
Commit: 51fc87bc1b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2058
5 changed files with 50 additions and 3 deletions
|
@ -9,7 +9,7 @@ interface CSSRule {
|
|||
readonly attribute CSSStyleSheet? parentStyleSheet;
|
||||
|
||||
// the following attribute and constants are historical
|
||||
readonly attribute unsigned short type;
|
||||
[ImplementedAs=type_for_bindings] readonly attribute unsigned short type;
|
||||
const unsigned short STYLE_RULE = 1;
|
||||
const unsigned short CHARSET_RULE = 2;
|
||||
const unsigned short IMPORT_RULE = 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue