message: chore(bcd): split as shouldStyleBeRemoved()
diff: @@ -247,38 +247,50 @@ function isSuitable(
  }
  export function getRemovalData(webidl: Browser.WebIdl): Browser.WebIdl {
  - return mapToBcdCompat(webidl, ({ key, parentKey, compat, mixin }) => {
  - // Allow:
  - // * all mixins, for now
  - // * mixin members that has no compat data
  - if (mixin && (!compat || !parentKey)) {
  - return;
  - }
  - if (isSuitable(key, compat, parentKey)) {
  - return;
  - }
  + const CSSStyleDeclarationKey = "CSSStyleDeclaration";
  - if (parentKey === "CSSStyleDeclaration") {
  + function shouldStyleBeRemoved(key: string) {
  const hyphenCase = camelToHyphenCase(key);
  const bcdCssItem = bcd.css.properties[hyphenCase];
  if (
  bcdCssItem &&
  - isSuitable(hyphenCase, bcdCssItem.__compat, parentKey)
  + isSuitable(hyphenCase, bcdCssItem.__compat, CSSStyleDeclarationKey)
  ) {
  - return;
  + return false;
  }
  if (hyphenCase.startsWith("-webkit-")) {
  const noPrefix = hyphenCase.slice(8);
  const bcdWebKitItem = bcd.css.properties[noPrefix];
  if (
  bcdWebKitItem &&
  - isSuitable(noPrefix, bcdWebKitItem.__compat, parentKey, "-webkit-")
  + isSuitable(
  + noPrefix,
  + bcdWebKitItem.__compat,
  + CSSStyleDeclarationKey,
  + "-webkit-"
  + )
  ) {
  + return false;
  + }
  + } else if (forceKeepAlive[CSSStyleDeclarationKey]?.includes(key)) {
  + return false;
  + }
  + return true;
  + }
  +
  + return mapToBcdCompat(webidl, ({ key, parentKey, compat, mixin }) => {
  + // Allow:
  + // * all mixins, for now
  + // * mixin members that has no compat data
  + if (mixin && (!compat || !parentKey)) {
  return;
  }
  - } else if (forceKeepAlive[parentKey]?.includes(key)) {
  + if (isSuitable(key, compat, parentKey)) {
  return;
  }
  +
  + if (parentKey === CSSStyleDeclarationKey && !shouldStyleBeRemoved(key)) {
  + return;
  }
  return { exposed: "" };
  @@ -330,6 +342,7 @@ function mapToBcdCompat(
  return { name: i.name, ...result };
  }
  }
  +
  const interfaces = filterMapRecord(
  webidl.interfaces?.interface,
  mapInterfaceLike
  