Repository: flutter
Issue: Custom icons are misalignment when they are under a PopupMenuItem
Labels: framework,platform-web,e: web_html,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-web,triaged-web

Custom icons get misalignment when they are below a PopupMenuItem. Example:

```Dart
    return Material(
      child: PopupMenuItem(
        child: Center(
          child: Icon(
            UiIcons.checkmark_circle,
            size: 200,
            color: Colors.red,
          ),
        ),
      ),
    );
```

This is happening in Web, using HTML renderer.
We are having other issues related to custom icons misalignment already covered by this issue: #98909 

## Steps to Reproduce

1. Execute `flutter run -d chrome --web-renderer html` on the code sample
2. The first rendered frame will be shown as expected. See below **Expected results**.
3. With a hover over the screen (the PopupMenuItem fills the whole screen) we force a new render and we can show how the icon gets misalignment. See below **Actual results**.

**Expected results:** <!-- what did you want to see? -->
![expected](https://user-images.githubusercontent.com/331765/183916848-1cfdefbd-36d8-4ad3-a086-b3a14a46e1f6.png)
**Actual results:** <!-- what did you see? -->
![actual](https://user-images.githubusercontent.com/331765/183916857-7d843435-2047-4a51-8ef7-8822e63ad718.png)

<details>
<summary>Code sample</summary>

ZIP with the mini project: [code_sample.zip](https://github.com/flutter/flutter/files/9300640/code_sample.zip)

```dart
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:playon/icons.dart';

void main() {
  //debugPaintBaselinesEnabled = true;
  debugPaintSizeEnabled = true;
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData.light(),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({
    Key? key,
  }) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Material(
      child: PopupMenuItem(
        child: Center(
          child: Icon(
            UiIcons.checkmark_circle,
            size: 200,
            color: Colors.red,
          ),
        ),
      ),
    );
  }
}
```

</details>

<details>
  <summary>Logs</summary>

```
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.2.1 21D62 darwin-x64, locale es-ES)
    • Flutter version 3.0.5 at /Users/david/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (4 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/david/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 69.0.5
    • Dart plugin version 222.3345.108

[✓] VS Code (version 1.69.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 104.0.5112.79

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>