Skip to content

支持 getComputedStyle #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yuanyan opened this issue Feb 23, 2021 · 2 comments
Open

支持 getComputedStyle #6

yuanyan opened this issue Feb 23, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request P3

Comments

@yuanyan
Copy link
Contributor

yuanyan commented Feb 23, 2021

在需要判断其他节点当前的样式的场景下,业务中会使用 getComputedStyle。

MDN:https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle

@openkraken-bot
Copy link

openkraken-bot bot commented Jun 16, 2021

  • Total time cost(without paint and layout): 666.84ms (0%)
  • widget_creation_cost: 39.11ms (0%)
    • controller_properties_init_cost 0.00ms(0%)
    • view_controller_properties_init_cost 0.00ms(0%)
    • element_manager_init_cost 0.00ms(0%)
    • element_manager_property_init 0.00ms(0%)
    • root_element_property_init_cost 0.00ms(0%)
    • root_element_init_cost 0.00ms(0%)
    • create_viewport 0.00ms(0%)
    • bridge_init_cost 0.00ms(0%)
    • bridge_register_dart_method_cost 0.00ms(0%)
    • js_context_init_cost 0.00ms(0%)
    • native_method_init_cost 0.00ms(0%)
    • polyfill_init_cost 0.00ms(0%)
  • First Bundle Load: 626.735ms (0%)
    • js_bundle_load_cost 0.00ms(0%)
    • js_bundle_eval_cost 0.00ms(0%)
    • js_parse_time_cost 0.00ms(0%)
    • flush_ui_command_cost 20.00ms(0%) avg: 0.76ms(0%)
    • create_element_cost 195.00ms(0%) avg: 0.01ms(0%)
    • js_host_class_get_property_cost 5734.00ms(0%) avg: 0.01ms(0%)
    • js_host_class_set_property_cost 2735.00ms(0%) avg: 0.02ms(0%)
    • js_host_class_init_cost 0.00ms(0%)
    • js_native_function_call_cost 1843.00ms(0%) avg: 0.03ms(0%)
    • create_text_node_cost 47.00ms(0%) avg: 0.01ms(0%)
    • create_comment_cost 116.00ms(0%)
    • dispose_event_target_cost 0.00ms(0%)
    • add_event_cost 341.00ms(0%) avg: 0.04ms(0%)
    • insert_adjacent_node_cost 356.00ms(0%) avg: 0.08ms(0%)
    • remove_node_cost 5.00ms(0%)
    • set_style_cost 2054.00ms(0%) avg: 0.01ms(0%)
    • dom_force_layout_cost 5.00ms(0%) avg: 13.50ms(0%)
    • dom_flush_ui_command_cost 143.00ms(0%) avg: 0.54ms(0%)
    • set_properties_cost 860.00ms(0%) avg: 0.01ms(0%)
    • remove_properties_cost 0.00ms(0%)
  • Rendering: 66.62ms (0%)
    • flex_layout_cost 253.50ms(0%) avg: 0.11ms(0%)
    • flow_layout_cost 93.00ms(0%) avg: 0.07ms(0%)
    • intrinsic_layout_cost 124.00ms(0%) avg: 0.01ms(0%)
    • silver_layout_cost 0.00ms(0%)
    • paint_cost 1579.00ms(0%) avg: 0.02ms(0%)

@xmsz
Copy link

xmsz commented Jul 19, 2021

有临时的替代方案吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3
Projects
None yet
Development

No branches or pull requests

3 participants