<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>226903</bug_id>
          
          <creation_ts>2021-06-10 16:15:58 -0700</creation_ts>
          <short_desc>Web Inspector: Style panel display incomplete CSS declarations for JS-created styles</short_desc>
          <delta_ts>2021-06-11 10:48:36 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikita Vasilyev">nvasilyev</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1768796</commentid>
    <comment_count>0</comment_count>
      <attachid>431158</attachid>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2021-06-10 16:15:58 -0700</bug_when>
    <thetext>Created attachment 431158
[HTML] Reduction

Steps:
1. Open the attached HTML page
2. Inspect &lt;div id=foo&gt;
3. Open Style panel

Expected:
```
    font: 24px sans-serif;
    background: url(https://webkit.org/wp-content/themes/webkit/images/webkit.svg) center center / cover no-repeat fixed;}
```
Which is the same text as it&apos;s specified in JS.


Actual:
```
    font-size: 24px;
    font-family: sans-serif;
```
`background` is missing, which is misleading.
`font` shortcut expanded, into two longhand properties, which isn&apos;t ideal.


Notes:
The bug was initially discovered on https://www.disneyplus.com/home.
CSS-in-JS is very common on the modern web. It&apos;s used by React Native and other UI frameworks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1768797</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-10 16:18:47 -0700</bug_when>
    <thetext>&lt;rdar://problem/79166098&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>431158</attachid>
            <date>2021-06-10 16:15:58 -0700</date>
            <delta_ts>2021-06-10 16:15:58 -0700</delta_ts>
            <desc>[HTML] Reduction</desc>
            <filename>cssom-styles-bug.html</filename>
            <type>text/html</type>
            <size>467</size>
            <attacher name="Nikita Vasilyev">nvasilyev</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9IlVURi04Ij4K
ICAgIDx0aXRsZT5KUyBjcmVhdGVkIHN0eWxlczwvdGl0bGU+CjwvaGVhZD4KPGJvZHk+CjxkaXYg
aWQ9Zm9vPkpTIGNyZWF0ZWQgc3R5bGVzPC9kaXY+CjxzY3JpcHQ+CmxldCBzdHlsZSA9IGRvY3Vt
ZW50LmNyZWF0ZUVsZW1lbnQoInN0eWxlIik7CmRvY3VtZW50LmJvZHkuYXBwZW5kKHN0eWxlKTsK
bGV0IHJ1bGVUZXh0ID0gYCNmb28gewogICAgZm9udDogMjRweCBzYW5zLXNlcmlmOwogICAgYmFj
a2dyb3VuZDogdXJsKGh0dHBzOi8vd2Via2l0Lm9yZy93cC1jb250ZW50L3RoZW1lcy93ZWJraXQv
aW1hZ2VzL3dlYmtpdC5zdmcpIGNlbnRlciBjZW50ZXIgLyBjb3ZlciBuby1yZXBlYXQgZml4ZWQ7
fQpgOwpzdHlsZS5zaGVldC5pbnNlcnRSdWxlKHJ1bGVUZXh0LCAwKTsKPC9zY3JpcHQ+CjwvYm9k
eT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>