Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The CSS Fonts spec has deleted CSSRule.FONT_PALETTE_VALUES_RULE
https://bugs.webkit.org/show_bug.cgi?id=230786
<rdar://problem/83528219>

Reviewed by Antti Koivisto.

LayoutTests/imported/w3c:

The test is being upstreamed at web-platform-tests/wpt#30959.

* web-platform-tests/css/css-fonts/idlharness-expected.txt:
* web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid-expected.txt:
* web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html:
* web-platform-tests/css/css-fonts/parsing/font-palette-values-valid.html:
* web-platform-tests/interfaces/css-fonts.idl:

Source/WebCore:

Update WebKit according to
w3c/csswg-drafts@45bda92.

Test: web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html

* css/CSSRule.h:
* css/CSSRule.idl:
* css/StyleRuleType.h:

Canonical link: https://commits.webkit.org/242188@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
litherum committed Sep 27, 2021
1 parent 85dc747 commit 0c4ec0d
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 13 deletions.
16 changes: 16 additions & 0 deletions LayoutTests/imported/w3c/ChangeLog
@@ -1,3 +1,19 @@
2021-09-27 Myles C. Maxfield <mmaxfield@apple.com>

The CSS Fonts spec has deleted CSSRule.FONT_PALETTE_VALUES_RULE
https://bugs.webkit.org/show_bug.cgi?id=230786
<rdar://problem/83528219>

Reviewed by Antti Koivisto.

The test is being upstreamed at https://github.com/web-platform-tests/wpt/pull/30959.

* web-platform-tests/css/css-fonts/idlharness-expected.txt:
* web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid-expected.txt:
* web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html:
* web-platform-tests/css/css-fonts/parsing/font-palette-values-valid.html:
* web-platform-tests/interfaces/css-fonts.idl:

2021-09-27 Antti Koivisto <antti@apple.com>

[CSS Cascade Layers] Support @layer statement before @import statements
Expand Down
Expand Up @@ -3,8 +3,6 @@ PASS idl_test setup
PASS idl_test validation
PASS Partial interface CSSRule: original interface defined
PASS Partial interface CSSRule: member names are unique
PASS Partial interface CSSRule[2]: original interface defined
PASS Partial interface CSSRule[2]: member names are unique
PASS CSSFontFaceRule interface: existence and properties of interface object
PASS CSSFontFaceRule interface object length
PASS CSSFontFaceRule interface object name
Expand All @@ -16,7 +14,6 @@ PASS CSSFontFaceRule must be primary interface of cssFontFaceRule
PASS Stringification of cssFontFaceRule
PASS CSSFontFaceRule interface: cssFontFaceRule must inherit property "style" with the proper type
FAIL CSSRule interface: cssFontFaceRule must inherit property "FONT_FEATURE_VALUES_RULE" with the proper type assert_inherits: property "FONT_FEATURE_VALUES_RULE" not found in prototype chain
FAIL CSSRule interface: cssFontFaceRule must inherit property "FONT_PALETTE_VALUES_RULE" with the proper type assert_equals: expected 15 but got 19
FAIL CSSFontFeatureValuesRule interface: existence and properties of interface object assert_own_property: self does not have own property "CSSFontFeatureValuesRule" expected property "CSSFontFeatureValuesRule" missing
FAIL CSSFontFeatureValuesRule interface object length assert_own_property: self does not have own property "CSSFontFeatureValuesRule" expected property "CSSFontFeatureValuesRule" missing
FAIL CSSFontFeatureValuesRule interface object name assert_own_property: self does not have own property "CSSFontFeatureValuesRule" expected property "CSSFontFeatureValuesRule" missing
Expand Down Expand Up @@ -47,8 +44,5 @@ FAIL CSSFontPaletteValuesRule interface: attribute fontFamily assert_equals: set
FAIL CSSFontPaletteValuesRule interface: attribute basePalette assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected "function" but got "undefined"
FAIL CSSRule interface: constant FONT_FEATURE_VALUES_RULE on interface object assert_own_property: expected property "FONT_FEATURE_VALUES_RULE" missing
FAIL CSSRule interface: constant FONT_FEATURE_VALUES_RULE on interface prototype object assert_own_property: expected property "FONT_FEATURE_VALUES_RULE" missing
FAIL CSSRule interface: constant FONT_PALETTE_VALUES_RULE on interface object assert_equals: property has wrong value expected 15 but got 19
FAIL CSSRule interface: constant FONT_PALETTE_VALUES_RULE on interface prototype object assert_equals: property has wrong value expected 15 but got 19
FAIL CSSRule interface: cssRule must inherit property "FONT_FEATURE_VALUES_RULE" with the proper type assert_inherits: property "FONT_FEATURE_VALUES_RULE" not found in prototype chain
FAIL CSSRule interface: cssRule must inherit property "FONT_PALETTE_VALUES_RULE" with the proper type assert_equals: expected 15 but got 19

Expand Up @@ -17,4 +17,5 @@ PASS CSS Fonts Module Level 4: parsing @font-palette-values 14
PASS CSS Fonts Module Level 4: parsing @font-palette-values 15
PASS CSS Fonts Module Level 4: parsing @font-palette-values 16
PASS CSS Fonts Module Level 4: parsing @font-palette-values 17
PASS CSS Fonts Module Level 4: parsing @font-palette-values 18

Expand Up @@ -234,6 +234,10 @@
assert_equals(rule.size, 0);
assert_equals(rule.basePalette, "");
});

test(function() {
assert_equals(CSSRule.FONT_PALETTE_VALUES_RULE, undefined);
});
</script>
</body>
</html>
Expand Up @@ -117,7 +117,6 @@

test(function() {
let rule = rules[0];
assert_equals(rule.type, CSSRule.FONT_PALETTE_VALUES_RULE);
assert_equals(rule.constructor.name, "CSSFontPaletteValuesRule");
assert_equals(rule.fontFamily, "");
assert_equals(rule.basePalette, "");
Expand Down
Expand Up @@ -28,9 +28,6 @@ interface CSSFontFeatureValuesMap {
(unsigned long or sequence<unsigned long>) values);
};

partial interface CSSRule { const unsigned short FONT_PALETTE_VALUES_RULE = 15;
};

[Exposed=Window]
interface CSSFontPaletteValuesRule : CSSRule {
maplike<unsigned long, CSSOMString>;
Expand Down
17 changes: 17 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,20 @@
2021-09-27 Myles C. Maxfield <mmaxfield@apple.com>

The CSS Fonts spec has deleted CSSRule.FONT_PALETTE_VALUES_RULE
https://bugs.webkit.org/show_bug.cgi?id=230786
<rdar://problem/83528219>

Reviewed by Antti Koivisto.

Update WebKit according to
https://github.com/w3c/csswg-drafts/commit/45bda92646e0438c1fcd44497144aa86f0df1b61.

Test: web-platform-tests/css/css-fonts/parsing/font-palette-values-invalid.html

* css/CSSRule.h:
* css/CSSRule.idl:
* css/StyleRuleType.h:

2021-09-27 Andres Gonzalez <andresg_22@apple.com>

Boundary check of AccessibilityMathMLElement::mathOverObject is incorrect
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/css/CSSRule.h
Expand Up @@ -51,7 +51,7 @@ class CSSRule : public RefCounted<CSSRule> {
NAMESPACE_RULE = 10,
COUNTER_STYLE_RULE = 11,
SUPPORTS_RULE = 12,
FONT_PALETTE_VALUES_RULE = 19 // https://github.com/w3c/csswg-drafts/issues/6623
FONT_PALETTE_VALUES_RULE = 19
};

enum DeprecatedType {
Expand Down
1 change: 0 additions & 1 deletion Source/WebCore/css/CSSRule.idl
Expand Up @@ -44,7 +44,6 @@
const unsigned short NAMESPACE_RULE = 10;
[EnabledBySetting=CSSCounterStyleAtRules] const unsigned short COUNTER_STYLE_RULE = 11;
const unsigned short SUPPORTS_RULE = 12;
const unsigned short FONT_PALETTE_VALUES_RULE = 19; /* https://github.com/w3c/csswg-drafts/issues/6623 */

// Legacy synonyms for the above, kept to avoid breaking existing content.
const unsigned short WEBKIT_KEYFRAMES_RULE = 7;
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/css/StyleRuleType.h
Expand Up @@ -41,7 +41,7 @@ enum class StyleRuleType : uint8_t {
Namespace = 10,
CounterStyle = 11,
Supports = 12,
FontPaletteValues = 19, // https://github.com/w3c/csswg-drafts/issues/6623
FontPaletteValues = 19,
Layer = 20
};

Expand Down

0 comments on commit 0c4ec0d

Please sign in to comment.