{"id":13743865,"url":"https://github.com/heyfrench/as3csslib","last_synced_at":"2025-05-09T02:31:45.685Z","repository":{"id":34945909,"uuid":"39020570","full_name":"heyfrench/as3csslib","owner":"heyfrench","description":"CSS3 parser, selector and style engine for ActionScript 3.0. ","archived":false,"fork":false,"pushed_at":"2015-07-13T20:04:02.000Z","size":2184,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-04T05:02:47.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kwrl/trondheim.kodeklubben.no","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heyfrench.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-13T15:28:33.000Z","updated_at":"2016-02-02T09:51:30.000Z","dependencies_parsed_at":"2022-09-18T08:42:17.989Z","dependency_job_id":null,"html_url":"https://github.com/heyfrench/as3csslib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfrench%2Fas3csslib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfrench%2Fas3csslib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfrench%2Fas3csslib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfrench%2Fas3csslib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heyfrench","download_url":"https://codeload.github.com/heyfrench/as3csslib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224802783,"owners_count":17372496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:00:58.607Z","updated_at":"2024-11-15T15:30:53.407Z","avatar_url":"https://github.com/heyfrench.png","language":"ActionScript","readme":"# Introduction\n\nThis library was originally written to add CSS3 selector and style support to ActionScript 3 projects. It is no longer maintained, though the selector engine and style matching are tested and very functional.\n\nThe documentation below is what was available on Google Code when the project went cold.\n\n# CSSContext\n\nThe CSS context object is used to configure the CSS engine by defining \nthe main object factory (`ICSSFactory`), CSS property definitions (`IPropertyManager`),\nand object-CSS views (`ICSSView`). Every CSS instance requires a context object.\n\n## Details\n\n`CSSContext` is the base implementation of `ICSSContext` and is the leanest configuration.\n\n`CSS3Context` is an implementation of `ICSSContext` that contains the property and shorthand\nmanagers specific to CSS3 (background, border, font, etc.).\n\n\nThe CSS context can be defined in one of two ways:\n\n```as3\nimport com.newgonzo.web.css.*:\n\n// set it once for all future CSS instances\nCSS.defaultContext = new CSS3Context();\nvar mycss:CSS = new CSS(\"p {color: #F00;}\");\n\n// set it on a per-insace basis (or override the default)\nvar mycss:CSS = new CSS(\"p {color: #F00;}\", new CSS3Context());\n```\n\n# CSSView\n\nA CSS view (`ICSSView`) is an object that acts as a bridge between your stylable data (XML, display list, etc.) and the CSS engine.\nEverything that the CSS engine needs to know about your data it gets from the view. \n\n## Details\n\nWhen the CSS engine attempts to style a node, it first gets a view for that node from the CSS context object. For example, if we're trying to\nget styles for some XML node, the CSS context will return an instance of `XMLCSSView`. Views exist for XML, DisplayObjects, and arbitrary object hierarchies.","funding_links":[],"categories":["File Formats"],"sub_categories":["CSS"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyfrench%2Fas3csslib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyfrench%2Fas3csslib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyfrench%2Fas3csslib/lists"}