Bug 216040 - Web Inspector: Elements: styles don't update for certain cases related to UserAgent styles
Summary: Web Inspector: Elements: styles don't update for certain cases related to Use...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 110055
Blocks:
  Show dependency treegraph
 
Reported: 2020-09-01 10:01 PDT by Nikita Vasilyev
Modified: 2020-09-01 10:01 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2020-09-01 10:01:04 PDT
Steps:
1. Open data:text/html,<input%20type=checkbox>
2. Select <input type=checkbox> in Elements tab
3. Changes "checkbox" attribute value to "value"

Expected:
The style editor shows matching styles for the checkbox, e.g. `input[type="checkbox"]`, `input:matches([type="radio"], [type="checkbox"])` and etc.

Actual:
The style editor still shows styles for input[type="text"].

Notes:
DOMNodeStyles.prototype.refresh has incorrect logic for `significantChange` flag. Essentially, it skips UserAgent styles.
The proper way to fix this bug would be to resolve "Bug 110055 - Web Inspector: User Agent style stylesheet identifier keeps incrementing" first.
Comment 1 Radar WebKit Bug Importer 2020-09-01 10:01:21 PDT
<rdar://problem/68150659>