Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NativeScript/NativeScript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: NativeScript/NativeScript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: refs/pull/11674/head
Choose a head ref
  • 7 commits
  • 11 files changed
  • 2 contributors

Commits on Nov 24, 2026

  1. fix(core): replace previous inline declarations when assigning view.s…

    …tyle
    
    Assigning an inline style string merged into the previous inline
    declarations. Like the web's cssText, a new string now replaces them:
    properties the previous string set and the new one omits are unset and
    fall back to the stylesheet value (or the default/inherited value).
    edusperoni committed Nov 24, 2026
    Configuration menu
    Copy the full SHA
    0d3852d View commit details
    Browse the repository at this point in the history
  2. test(core): cover every registered shorthand in inline style replacement

    Table-driven over margin, padding, gap, transform, background,
    border-color, border-width, border-radius, font, flex-flow, flex and
    android-content-inset: dropping the shorthand unsets every longhand,
    falls back to the stylesheet longhands, and changing its value moves each
    longhand at most once. Also covers shorthand/longhand order within one
    string, narrowing a shorthand to one of its longhands, a shorthand that
    expands to fewer longhands, and unexpanded shorthand values.
    edusperoni committed Nov 24, 2026
    Configuration menu
    Copy the full SHA
    180eaa2 View commit details
    Browse the repository at this point in the history
  3. fix(core): keep var() and calc() in local style values current

    A local string value holding var() or calc() is now substituted before it
    is converted, so style.marginTop = 'calc(2 + var(--t))', view.marginTop =
    'var(--t)' and style.margin = 'var(--m)' no longer throw. The specified
    expression is kept on the style together with the css variables its
    substitution read. On every cascade pass the kept expressions whose
    variables changed are substituted again, and a value is written only when
    its substitution changed.
    
    Any other local write to the property, including a reset or a shorthand
    write that omits the longhand, releases the kept expression, so a later
    code write wins over later cascade passes.
    edusperoni committed Nov 24, 2026
    Configuration menu
    Copy the full SHA
    dfc41a6 View commit details
    Browse the repository at this point in the history
  4. feat(core): serialize typed style values back to css

    Add a valueSerializer option to CssProperty, InheritedCssProperty and
    CssAnimationProperty, with serializeCssValue as the default: colors as
    rgb()/rgba(), lengths, percentages, gradients, shadows, strokes and lists.
    box-shadow and clip-path get their own serializers.
    
    Keep a registry of style properties by css name, and local-value
    accessors that also see the local slot of animated properties.
    edusperoni committed Nov 24, 2026
    Configuration menu
    Copy the full SHA
    6b2debc View commit details
    Browse the repository at this point in the history
  5. feat(core): inlineStyle, attributeStyleMap, computedStyleMap and getC…

    …omputedStyle
    
    view.inlineStyle reads and writes the local values as css strings: the
    specified expression for var()/calc() values, the serialized typed value
    otherwise, and '' when there is none. Assigning its cssText replaces every
    local value of the view.
    
    view.attributeStyleMap and view.computedStyleMap() expose the typed local
    and computed values by css name. getComputedStyle(view) returns a live,
    read-only declaration of canonical computed strings.
    
    ShorthandProperty takes a valueSerializer to compose its longhands;
    transform has one.
    edusperoni committed Nov 24, 2026
    Configuration menu
    Copy the full SHA
    2934037 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2026

  1. Configuration menu
    Copy the full SHA
    b85b064 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe6bb82 View commit details
    Browse the repository at this point in the history
Loading