Files
headroom/frontend/node_modules/happy-dom/lib/css/CSSRule.js
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

49 lines
1.7 KiB
JavaScript

import CSSRuleTypeEnum from './CSSRuleTypeEnum.js';
import * as PropertySymbol from '../PropertySymbol.js';
/**
* CSSRule interface.
*/
export default class CSSRule {
// Static properties
static CONTAINER_RULE = CSSRuleTypeEnum.containerRule;
static STYLE_RULE = CSSRuleTypeEnum.styleRule;
static IMPORT_RULE = CSSRuleTypeEnum.importRule;
static MEDIA_RULE = CSSRuleTypeEnum.mediaRule;
static FONT_FACE_RULE = CSSRuleTypeEnum.fontFaceRule;
static PAGE_RULE = CSSRuleTypeEnum.pageRule;
static KEYFRAMES_RULE = CSSRuleTypeEnum.keyframesRule;
static KEYFRAME_RULE = CSSRuleTypeEnum.keyframeRule;
static NAMESPACE_RULE = CSSRuleTypeEnum.namespaceRule;
static COUNTER_STYLE_RULE = CSSRuleTypeEnum.counterStyleRule;
static SUPPORTS_RULE = CSSRuleTypeEnum.supportsRule;
static DOCUMENT_RULE = CSSRuleTypeEnum.documentRule;
static FONT_FEATURE_VALUES_RULE = CSSRuleTypeEnum.fontFeatureValuesRule;
static REGION_STYLE_RULE = CSSRuleTypeEnum.regionStyleRule;
// Internal properties
[PropertySymbol.window];
// Public properties
parentRule = null;
parentStyleSheet = null;
type = null;
/**
* Constructor.
*
* @param illegalConstructorSymbol Illegal constructor symbol.
* @param window Window.
*/
constructor(illegalConstructorSymbol, window) {
if (illegalConstructorSymbol !== PropertySymbol.illegalConstructor) {
throw new TypeError('Illegal constructor');
}
this[PropertySymbol.window] = window;
}
/**
* Returns selector text.
*
* @returns Selector text.
*/
get cssText() {
return '';
}
}
//# sourceMappingURL=CSSRule.js.map