CKTIS / CSS
Inspecting and editing CSS in DevTools
The CSS DevTools inspector lets you examine a selected element’s CSS rules and test changes in the browser. Learn to distinguish declarations in Styles from values in Computed, then transfer checked fixes to your source files.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
Inspect → Elements → Styles / ComputedCSS DevTools inspector describes browser tools for inspecting CSS; it is not CSS syntax or an API. In Chrome, right-click an element and select Inspect. Select the correct DOM node in the Elements panel to investigate its styles.
The Styles tab shows matching rules, including declarations that lose in the cascade, and inheritance sections. You can edit values and disable individual declarations with a checkbox. A strikethrough can indicate an override, but not every ineffective declaration loses the cascade: also check warnings about invalid or inactive CSS.
The Computed tab shows resolved property values rather than just source text. A displayed value may have no effect on the current layout. For example, the tab can show top: 10px for an element with position: static even though that value does not move the element. Expand a property to investigate its source; shorthands are represented as longhand properties. Compare this tab with Styles when the appearance differs from your expectations.
In the example, inspect the paragraph: the later .sample rule wins for color. Disable only its color declaration to reveal the earlier color; padding-top stays unchanged. Expected values appear in example.output; the example requires local verification in the target Chromium 152 environment.
Ordinary editing in Styles is a temporary experiment, not a save to your project. The Changes panel helps review and copy edits. Transfer them to your sources; persisting changes across reloads requires separate configuration, such as Local overrides or Workspaces.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>CSS inspection</title>
<style>
.sample { color: rgb(180, 0, 0); padding: 12px; }
.sample { color: rgb(0, 80, 160); }
</style>
<p class="sample">Inspect this text</p>
</html>Result
Initial: color = rgb(0, 80, 160); padding-top = 12px. After disabling the second color declaration: color = rgb(180, 0, 0); padding-top = 12px.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.