Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@siteimprove/alfa-style

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@siteimprove/alfa-style

An implementation of the CSS style system capable of resolving and computing style information for DOM nodes

  • 0.93.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
885
increased by49.49%
Maintainers
0
Weekly downloads
 
Created
Source

Package @siteimprove/alfa-style

Description

This package implements support for CSS properties.

Scaffolding

To avoid circular dependencies, the package is organised as follows (from bottom to top) (all paths are relative to src/) :

  • longhand.ts: defines the basic class to model longhand properties;
  • property/*.ts (part of): individual longhand properties, one per file;
  • longhands.ts: wraps all longhand properties in a nice bundle and export convenient types;
  • shorthand.ts: defines the basic class to model shorthand properties, depends on the names of longhands as defined in previous file;
  • property/*.ts (part of): individual shorthand properties, one per file;
  • shorthands.ts: wraps all shorthand properties in a nice bundle and export convenient types;
  • style.ts: expose the actual API to manipulate the properties.

Development

To add a new property, create a file in src/property to define the property, then import the file and add the property to the const in longhands.ts or shorthands.ts.

FAQs

Package last updated on 22 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc