Add CssValue::Unset variant with proper cascade semantics: acts as inherit for inherited properties, initial for non-inherited. Fix unset/inherit/initial handling in font, list-style, and text-decoration shorthand expansion. Add unset handling to both pseudo-element code paths. Promote WPT test wpt-css-css2-normal-flow-inlines-002 (now passes with font shorthand fix). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
289 B
HTML
15 lines
289 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.parent { color: red; font-size: 24px; text-align: center; }
|
|
.child { color: initial; font-size: initial; text-align: initial; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="parent">
|
|
<div class="child">Reset to initial</div>
|
|
</div>
|
|
</body>
|
|
</html>
|